如何使用带有 -u 参数的 pspasswd

如何使用带有 -u 参数的 pspasswd

我想使用 pspasswd 实用程序更改 LAN 上所有计算机的密码。我在 Google 上搜索后发现以下内容会有所帮助

pspasswd \\* -u AdminUserName -p AdminPassword Username NewPassword

但是当我执行此命令时我得到以下输出

PsPasswd v1.23 - 本地和远程密码更改器版权所有 (C) 2003-2010 Mark Russinovich Sysinternals - www.sysinternals.com

PsPasswd 更改本地或远程系统上的密码。

本地帐户的用法:pspasswd [\[computer[,computer,[,...]]|@file] [-u 用户名 [-p 密码]]] 帐户 [NewPassword] 域帐户的用法:pspasswd 域\Account [NewPassword]

 computer    Computer or computers on which the local account exists. If
             you omit the computer name, the local computer is assumed.
             If you specify a wildcard (\\*), PsPasswd runs the
             command on all computers in the current domain or workgroup.
 @file       PsPasswd will change the password on the computers listed
             in the file.
 -u          Specifies optional user name for login to remote computer.
 -p          Specifies optional password for user name. If you omit this
             you will be prompted to enter a hidden password.
 Domain      Specifies name of the domain of the target account.
 Account     Specifies name of the account for password change.
 NewPassword New password. If omitted a NULL password is applied.

我似乎没有发现语法上是否有错误。如果有人能找出问题所在,请指正。

相关内容