Windows:ResetLocalPassword

From Nigel's Wiki
Revision as of 21:09, 14 April 2017 by Nelgin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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