Windows:ResetLocalPassword

From Nigel's Wiki
Jump to navigation Jump to search

Just a note for something I use at work. If a local Windows user gets changed and we can no longer login, then connect with gss and use the following powershell commands

 $Computername = $env:COMPUTERNAME
 $Username="T......."
 $objuser=[ADSI]"WinNT://$Computername/$Username"
 $objuser.setpassword("yourtotallysecretpasswordhere")
 $objuser.setinfo

This will reset the PW then you can login via HPSA