|
-
Sep 20th, 2006, 04:46 PM
#1
Thread Starter
Junior Member
can someone explain user accounts for me?
I have been tryin to look for a long time now..I cant figure out how to code something that will do this:
List all the user accounts on the computer,
change passwords on the accounts
-
Sep 20th, 2006, 05:54 PM
#2
Re: can someone explain user accounts for me?
You can list accounts using the Win32_UserAccount WMI class through the System.Management namespace. Gigemboy's signature has some useful WMI stuff. That class doesn't offer a property or method to set the password though. This isn't a big shock really. I'd not be surprised to learn that Windows doesn't offer a way to programmatically change user passwords. Letting any old application do that could be a bit dangerous.
-
Sep 20th, 2006, 05:59 PM
#3
Re: can someone explain user accounts for me?
Nope, MS do provide a NetUserChangePassword API to change password's of user accounts.
-
Sep 21st, 2006, 08:01 AM
#4
Re: can someone explain user accounts for me?
I agree that it's dangerous and I've always wondered why it exists at all.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|