远程重置本地管理员密码

Ric*_*est 5 windows-server-2003 windows-server-2008 password

回到 Windows 2000,我记得能够使用MS KB 272530 中的以下命令在远程工作站上重置和更改本地管理员密码:

The following .bat file will change the local administrator password to newpass 
on the \\pc1, \\pc2, and \\pc3 computers: 

cusrmgr.exe -u Administrator -m \\pc1 -P newpass
cusrmgr.exe -u Administrator -m \\pc2 -P newpass
cusrmgr.exe -u Administrator -m \\pc3 -P newpass 
Run Code Online (Sandbox Code Playgroud)

但是,此命令在 Windows 2003 或 2008 中似乎不起作用。

是否有一种新方法可以让我像 cusrmgr 命令一样更改远程工作站上的本地管理员密码?

Ric*_*est 8

找到答案:

PsTools 下载中的 PsPasswrd.exe。

效果很好:-)

http://technet.microsoft.com/en-us/sysinternals/bb897543.aspx