OS/Window
파워쉘을 이용하여 강제로 AD조인 해제하기
gepp
2022. 12. 5. 16:38
If you are using Windows joined to Active Directory on your AWS EC2 server and you have configured SSM for it, you can move out of the domain by entering the following commands line by line.
$securePass = ConvertTo-SecureString "******" -AsPlainText -Force
$cred = New-Object System.Management.Automation.PSCredential ("Domain\User", $securePass)
Remove-Computer -Credential $cred -Force -Verbose