Windows – Renaming computers via command prompt

powershellwindows 7windows 8

I am the system admin for a small business (120 employees) and I am looking at an easy way to rename all of the computers in the office to a more uniform naming convention.

I have tried playing with the "netdom renamecomputer" line in command prompt but that doesn't seem to work at all. Possibly because are not on a Group Policy. We set our computers up using a WORKGROUP and then have our employees connect to work servers using Remote Desktop connections.

Is there a Powershell tool or a program that i can download to help me rename all the computers in our network?

P.S. we have mostly Win7 machines but recently we have added about 20 Win8 machines (in case that matters)

Best Answer

I haven't used this myself, but a quick google brings this command back a lot

WMIC ComputerSystem where Name=COMPUTERNAME call Rename Name=NewName

If the computer name has dashes or other special characters you need to quote the computer name

WMIC ComputerSystem where Name="COMPUTER-NAME" call Rename Name=NewName

Source

Related Question