Groups | Blog | Home
all groups > dotnet security > august 2005 >

dotnet security : Change a windows user's password with C#?



MadBison NO[at]SPAM gmail.com
8/9/2005 2:22:04 AM
Hello

I have gathered some code for changing a windows users password, but I
need a bit more info.

I want to change the password on several Winsows 2003 Server machines.
None of them are in a domain.

It appears that the WinNT directory services provider does not work on
Windows 2003 Server. I get a security message. It used to work fine on
Windows 2000 Server.

I understand that the LDAP Provider will not work unless the server is
part of a domain. Is this correct?

Is there any way forward for me given I have Windows 2003 Server
machines without a domain, and want to programatically change their
passwords?

Thanks
David
Dominick Baier [DevelopMentor]
8/9/2005 6:39:20 AM
Hello MadBison@gmail.com,

i am not sure if WinNT is not working anymore. But you should be able to
set a password via WMI.

Have a look at the SDK and the win32_account class. There is also a WMI newsgroup
on this server.

HTH

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

[quoted text, click to view]


AddThis Social Bookmark Button