Script below is a simple code snippet to change or reset a password in Windows using command line and does it automatically. It needs to be run using an elevated command prompt. Check out this link on how to open an elevated command prompt: http://quickbytesstuff.blogspot.sg/2014/10/open-elevated-command-prompt.html Or in a Windows server or a domain controller, if the account logon has administrative rights then just open a command prompt and run the code below. The script below can be called or run via a batch file script. Microsoft Knowledge base link below discusses on how to use the "net use" command line, to change the password of the user. Change password via command line: http://support.microsoft.com/kb/149427 But if there's a need to change the password automatically, then there is a need to tweak the command line and use some other scripting command to automate the process. Command line, batch file and VBScript are legacy tools, but still...
Make the world a better place by sharing knowledge, ideas and anything that you can give that comes from the heart.