How does one rename machines in an AD domain using Powershell?
Rename-Computer -NewName 'NewComputer' -ComputerName 'OldComputer' -Restart
For further reading, Get-Help Rename-Computer -Full
Get-Help Rename-Computer -Full
(You might need to specify the -DomainCredential explicitly, just test it and use the Get-Help if you get stuck.)
-DomainCredential
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
By posting your answer, you agree to the privacy policy and terms of service.
asked
today
viewed
103 times
active