Home XP Commands
XP Syntax

PsPasswd (part of PsTools - download PsPasswd)

Change account password

Syntax
      pspasswd [[\\computer[,computer[,..] | @file 
         [-u user [-p passwd]]] Username [NewPassword]

Options:

   computer   The computer on which the user account resides. Default=local system 

   -p passwd  Specify a password for user (optional). Passed as clear text.
              If omitted, you will be prompted to enter a hidden password.

   -u user    Specify a user name for login to remote computer(optional).

   @file      Execute the command on each of the computers listed in the file.

   Username   Name of account for password change.

 NewPassword  The new password, If ommitted a NULL password is applied.

This tool allows administrators to create a batch file that will run against multiple computers to perform a mass change of the administrator password.

Examples:

Change the password for user JDoe on \\workstation64

pspasswd \\workstation64 jdoe password567

Related Commands:

NET USER

Equivalent Linux BASH command:

passwd - Modify a user password



Back to the Top

Simon Sheppard
SS64.com