此工作站和主域間的信任關係失敗

最近將一臺虛擬機從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,驗證有效。

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