Suppose there is a user account named testuser
on a windows machine and it belongs to the Users
group and the Users
group only. The current password of testuser
is known. The question is, how to change the password of testuser
in a command line prompt (or powershell) on another windows machine in the same LAN? It would be even better if the old/new passwords can be provided in an interactive manner (i.e. can be hiddenly keyed in when asked, instead of explicitly provided as a command line argument).
Tools/Utilities I tried so far mainly provide the ability to remotely "reset" the password of a user account (requiring admin rights but not current password). What I really want is to "change" the password of a user account (requiring current password but not admin rights). The latter can be done in Windows GUI by "CTRL+ALT+DEL" (by providing "hostname\username" in the user name field). I'm just searching for an equivalent approach in command line prompt.