3

How does one rename machines in an AD domain using Powershell?

2
  • And the down vote was for?
    – leeand00
    Aug 2, 2016 at 15:21
  • 2
    Can'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".
    – EEAA
    Aug 3, 2016 at 16:50

1 Answer 1

7

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.)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .