I am looking for a simple method to modify a local user’s properties in windows 7 using a simple c# application.
I am not familiar with many of the Windows system libraries and am looking to accomplish each of the following tasks:
- Enable/Disable a local user account in windows.
- Change the password of a local user account in windows.
Some example code and an simple explanation of what the code does would be very helpful.
Edit:
I will have administrative access to the machine when this program is going to be run.
If you have access this will give you access to what you need.
Here is a link to the docs..
http://msdn.microsoft.com/en-us/library/system.directoryservices.directoryentry.aspx