473,396 Members | 2,085 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

NT 4 User Accounts

Anyone,

I am trying to programmatically change user accounts in
Windows NT 4. I am using Microsoft Visual Basic .NET
2003. The two things I am trying to do are as follows.

1. Set the User Cannot Change Password Checkbox.
2. Select the Account Disabled Checkbox.

Can anyone tell me how to do this?

Thanks

Nov 20 '05 #1
9 2137
Nak
> I am trying to programmatically change user accounts in
Windows NT 4. I am using Microsoft Visual Basic .NET
2003. The two things I am trying to do are as follows.

1. Set the User Cannot Change Password Checkbox.
2. Select the Account Disabled Checkbox.


Hmm, forgive me, but one might question why?

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Nov 20 '05 #2
User Admin program maybe? Automated account creation and attribute setting?
Network Administration tool for network supervisors? Network Administration
tool for computer illiterates... the list goes on and on.

In response to his question, he may need to take a look at the Net* API's.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

"Maybe it's a game called 'Punish the User'"
"Nak" <a@a.com> wrote in message
news:eq*************@TK2MSFTNGP11.phx.gbl...
: > I am trying to programmatically change user accounts in
: > Windows NT 4. I am using Microsoft Visual Basic .NET
: > 2003. The two things I am trying to do are as follows.
: >
: > 1. Set the User Cannot Change Password Checkbox.
: > 2. Select the Account Disabled Checkbox.
:
: Hmm, forgive me, but one might question why?
:
: Nick.
:
: --
:
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
: "No matter. Whatever the outcome, you are changed."
:
: Fergus - September 5th 2003
:
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
:
:
Nov 20 '05 #3
Nak
> User Admin program maybe? Automated account creation and attribute
setting?
Network Administration tool for network supervisors? Network Administration tool for computer illiterates... the list goes on and on.


Right, an application for fu*king accounts up too maybe? Who knows, who
knows...

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Nov 20 '05 #4
On Tue, 16 Sep 2003 13:41:52 +0100, "Nak" <a@a.com> wrote:

¤ > User Admin program maybe? Automated account creation and attribute
¤ setting?
¤ > Network Administration tool for network supervisors? Network
¤ Administration
¤ > tool for computer illiterates... the list goes on and on.
¤
¤ Right, an application for fu*king accounts up too maybe? Who knows, who
¤ knows...

No need to act ignorant.

Requirements for these types of tools is not uncommon.
Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)
Nov 20 '05 #5
Nak
> No need to act ignorant.

Well thanks for the advice Mr Clement, I shall take your thoughts into mind.
Requirements for these types of tools is not uncommon.


Personally I am not bothered whether people ask for code to mess other
peoples systems up or not. But just recently someone was asking for "ideas"
on what they could do to play a joke on a work associate, I gave suggestions
and everyone else thought it was "bad", though he *only* wanted ideas.

Now when someone asks how you disable accounts via code I wouldn't have
thought that there would have been an influx of answers, as this is allot
more serious than playing a simple joke on a work associate. Personally I
couldn't, nor can I still see the point in making software to do this, so
no, I was not "acting ignorant", but thanks for your concern anyway.

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
"No matter. Whatever the outcome, you are changed."

Fergus - September 5th 2003
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Nov 20 '05 #6
On Tue, 16 Sep 2003 17:39:12 +0100, "Nak" <a@a.com> wrote:

¤ > No need to act ignorant.
¤
¤ Well thanks for the advice Mr Clement, I shall take your thoughts into mind.
¤
¤ > Requirements for these types of tools is not uncommon.
¤
¤ Personally I am not bothered whether people ask for code to mess other
¤ peoples systems up or not. But just recently someone was asking for "ideas"
¤ on what they could do to play a joke on a work associate, I gave suggestions
¤ and everyone else thought it was "bad", though he *only* wanted ideas.
¤
¤ Now when someone asks how you disable accounts via code I wouldn't have
¤ thought that there would have been an influx of answers, as this is allot
¤ more serious than playing a simple joke on a work associate. Personally I
¤ couldn't, nor can I still see the point in making software to do this, so
¤ no, I was not "acting ignorant", but thanks for your concern anyway.

Sometimes you need to provide access to your system to enable customers to manage their users that
work with your (typically web based) system. For obvious reasons you wouldn't necessarily want to
provide them with the standard set of tools. ;-)

Having an interface API (such as ADSI or System.DirectoryServices which will address the original
question) enables you to provide only those features required, thereby limiting the administrative
functionality that is actually available.
Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)
Nov 20 '05 #7
Absolutely Agree. I've written many a network admin tool for non-technical
users to easily manage accounts and etc.

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit

"Maybe it's a game called 'Punish the User'"
"Paul Clement" <Us***********************@swspectrum.com> wrote in message
news:js********************************@4ax.com...
: On Tue, 16 Sep 2003 17:39:12 +0100, "Nak" <a@a.com> wrote:
:
: ¤ > No need to act ignorant.
: ¤
: ¤ Well thanks for the advice Mr Clement, I shall take your thoughts into
mind.
: ¤
: ¤ > Requirements for these types of tools is not uncommon.
: ¤
: ¤ Personally I am not bothered whether people ask for code to mess other
: ¤ peoples systems up or not. But just recently someone was asking for
"ideas"
: ¤ on what they could do to play a joke on a work associate, I gave
suggestions
: ¤ and everyone else thought it was "bad", though he *only* wanted ideas.
: ¤
: ¤ Now when someone asks how you disable accounts via code I wouldn't have
: ¤ thought that there would have been an influx of answers, as this is
allot
: ¤ more serious than playing a simple joke on a work associate. Personally
I
: ¤ couldn't, nor can I still see the point in making software to do this,
so
: ¤ no, I was not "acting ignorant", but thanks for your concern anyway.
:
: Sometimes you need to provide access to your system to enable customers to
manage their users that
: work with your (typically web based) system. For obvious reasons you
wouldn't necessarily want to
: provide them with the standard set of tools. ;-)
:
: Having an interface API (such as ADSI or System.DirectoryServices which
will address the original
: question) enables you to provide only those features required, thereby
limiting the administrative
: functionality that is actually available.
:
:
: Paul ~~~ pc******@ameritech.net
: Microsoft MVP (Visual Basic)
Nov 20 '05 #8
I came across this thread when searching for information about how to change a user in my VB.Net code. Ideally I would like each clerk using my program to key in their user name and password and be authenticated before processing payments for a customer. The machine the clerks are using is at a front counter location and could be accessible to the general public. Assuming that I can do this then I would be able to save the clerk's user name with each payment transaction that the clerk processes.

I am hoping that there is an easy way to do this. Is the API interface (such as ADSI or System.DirectoryServices) the place for me to look?

Thanks,
Jean
Jun 12 '06 #9
I forgot to mention that the users all have accounts (user names / passwords) in Windows2000. I am also hoping that changing a user sign on does not disrupt my program or any other programs that are open. The front counter PC should only allow access to programs that all of the clerks would normally be able to access.

Thanks,
Jean
Jun 12 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: MLH | last post by:
I was running the following code while logged in as a user belonging only to the Users group. Set usrNew = .CreateUser(Me!UserID) 'The user ID is in a control on the form usrNew.PID =...
1
by: David Quinn | last post by:
Hello everyone, Can anyone explain the use of the two system accounts created when you install Visual Studio.NET and possibly help me with a SQL connection problem? I'm currently having some...
3
by: Dave | last post by:
If I have a name of a User Control in my project, how can I set an Object to that User Control? ie; I have a User Control, called "Accounts" in my project I tried the following code ...
9
by: webrod | last post by:
Hi all, how can I check a user/password in a LDAP ? I don't want to connect with this user, I would like to connect to LDAP with a ADMIN_LOG/ADMIN_PWD, then do a query to find the user and...
1
by: =?Utf-8?B?SnVsaWE=?= | last post by:
i cannot delete some user accounts on my laptop. i am the computer administrator and these accounts im trying to delete are limited accounts. i select delete account in the user accounts and it...
2
by: =?Utf-8?B?am1hZ2FyYW0=?= | last post by:
I'm trying to get a list of user accounts on the local computer - the same list you see when you are about to log in to Windows XP or Vista. This needs to work on a home computer (not connected to...
1
by: Michael Howes | last post by:
I would think this would be very, very easy but in the 50 searches I've done I haven't found anything. If our application requires login and that user/password be a local windows account or more...
1
patjones
by: patjones | last post by:
Good Evening: So, I wanted to learn a little about user accounts, because on of my databases has been put on a network drive, and I have a need to know who is entering what data into the...
3
by: shapper | last post by:
Hello, On my web site I have a property, Visitor, which is available for Anonymous users: public class Visitor { public CultureInfo Culture { get; set; } public List<GuidPolls { get; set;...
1
by: shaunhh | last post by:
Hi All, I am trying to use the user input in my form which is using a stored query. Here is the stored query: SELECT Accounts.balance, Accounts.transactionDate, ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.