How does one rename machines in an AD domain using Powershell?
-
And the down vote was for?– leeand00Aug 2, 2016 at 15:21
-
2Can't speak to the other dv, but mine was due to the fact that you didn't show any evidence whatsoever that you tried to research this on your own before coming here. The command needed to do this was the first result for a search on "powershell rename computer".– EEAAAug 3, 2016 at 16:50
Add a comment
|
1 Answer
Rename-Computer -NewName 'NewComputer' -ComputerName 'OldComputer' -Restart
For further reading, 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.)