透過微軟的SysinternalsSuite套件工具
利用其中的PsPasswd工具,在Command命令列中執行指令與配合參數.
http://technet.microsoft.com/zh-tw/query/cc162490
PsPasswd 是簡單而有效的公用程式,其設計與 Net.exe 的一些功能雷同,但兼顧了可遠端處理及自動化的能力。
PsPasswd \\computer -u username -p password Username Newpassword
您可以指定電腦,也可以不指定電腦 (本機系統),或者將電腦指定為 \\*,如此一來,公用程式便會在目前網域中的所有電腦上執行。PsPasswd 只提供一個額外參數:@file 在文字檔案中指定的所有電腦上執行命令。再強調一次,這是非常基本的公用程式,但是可提供超強的多系統操作功能。
C:\SysinternalsSuiteTools>pspasswd /?
PsPasswd v1.22 - Local and remote password changer
Copyright (C) 2003-2004 Mark Russinovich
Sysinternals - www.sysinternals.com
Copyright (C) 2003-2004 Mark Russinovich
Sysinternals - www.sysinternals.com
PsPasswd changes passwords on a local or remote system.
Usage: pspasswd [\\[computer[,computer,[,...]|Domain]|@file] [-u Username [-p Pa
ssword]]] Username [NewPassword]
computer Direct PsPasswd to perform the command on the remote
computer or computers specified. If you omit the computer
name PsPasswd runs the command on the local system,
and if you specify a wildcard (\\*), PsPasswd runs the
command on all computers in the current domain.
@file PsPasswd will change the password on the computers listed in the file.
ssword]]] Username [NewPassword]
computer Direct PsPasswd to perform the command on the remote
computer or computers specified. If you omit the computer
name PsPasswd runs the command on the local system,
and if you specify a wildcard (\\*), PsPasswd runs the
command on all computers in the current domain.
@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.
指定可選的用戶名密碼。如果省略此,你將被提示輸入隱藏密碼。
Username Specifies name of account for password change.
NewPassword New password. If ommitted a NULL password is applied.
NewPassword New password. If ommitted a NULL password is applied.
PsPasswd \\computer -u Adminuser -p password ChagePWDUser Newpassword
PsPasswd @serverlist.txt -u Adminuser ChagePWDUser Newpassword
Adminuser 為對遠端連線PC具有管理員的權限的帳號
ChagePWDUser 為欲更換密碼的帳號
Newpassword 為欲更換的密碼
在執行指令的Windows上,如果登入的帳號對遠端連線PC具有管理員的權限時,則adminuser後方-p參數為錯誤密碼時也是會成功更換密碼的.
沒有留言:
張貼留言