此工作站和主域间的信任关系失败

最近将一台虚拟机从VMWare迁移到VirtualBox后出现计算机账号认证失败的问题。
参考How to: FIX: the trust relationship between this workstation and the primary domain failed
页面末尾提供的方法,在失联的Windows域工作站或服务器上打开PowerShell,执行:

$computer = Get-WmiObject Win32_ComputerSystem 
$computer.UnjoinDomainOrWorkGroup("AdminPW", "AdminAccount", 0) 
$computer.JoinDomainOrWorkGroup("Domain", "DomainAdminPW", "DomainAdminAccount", $null, 3) 
Restart-Computer -Force

其中AdminAccount和AdminPW用本机的管理员账号和密码替换,Domain用将加入的Windows域的名称替换,DomainAdminAccount和DomainAdminPW用域管理员账号和密码替换。
本机名称应已在域控制器进行登记。
域控制器和工作站的操作系统都是Windows Server 2008 R2,验证有效。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章