Renaming computer via command prompt

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • maylortaylor
    New Member
    • Nov 2012
    • 72

    Renaming computer via command prompt

    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?

    EDIT: we have mostly Win7 machines but recently we have added about 20 Win8 machines (in case that matters)
  • maylortaylor
    New Member
    • Nov 2012
    • 72

    #2
    Found the answer somewhere else.

    Code:
    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

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

    Comment

    Working...