以本地管理员身份登录$ComputerName
Windows Server 2008 R2 SP1
这个脚本:
$admin=[adsi]("WinNT://" + $ComputerName + "/administrator, user")
$admin.psbase.invoke("SetPassword", $Password)
$admin.psbase.CommitChanges()
在本地运行抛出异常:Exception calling "Invoke" with "2" argument(s):"The network path was not found"