posts - 4238, comments - 3946, trackbacks - 370

My Links

News



Subscribe Subscribe

image image image





This is my personal weblog. These postings are provided 'AS IS' with no warranties, and confer no rights. The views expressed on this weblog are mine alone and do not necessarily reflect the views of my employer.

Licenza Creative Commons

Tag Cloud

Archives

Post Categories

How to change a user's Windows 2000/XP password

Mi capita spesso di doverlo fare e ogni volta devo cercarlo...

<code>

using System.DirectoryServices;

...

DirectoryEntry myDirectoryEntry;
myDirectoryEntry = new DirectoryEntry(@"WinNT://MyDirectoryServer/MyUsername,User");

myDirectoryEntry.Invoke("setPassword", "MyNewPassword");
myDirectoryEntry.CommitChanges();

</code>

Fonte: How to change a user's Windows 2000/XP password

 

Print | posted on giovedì 6 gennaio 2005 01:46 |

Feedback

Gravatar

# re: How to change a user's Windows 2000/XP password

ccc
23/09/2006 01:47 | qwerty
Comments have been closed on this topic.

Powered by:
Powered By Subtext Powered By ASP.NET