posts - 4237, comments - 3946, trackbacks - 370

Disclaimer

This was my personal weblog originally hosted by UgiDotNet, written mostly in Italian.

This blog is now part of my new site:
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 employers.

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.