Jump to content

Rename computer via command line?


Recommended Posts

Does anyone know if it's possible to rename a computer via the command line or registry file?

I want to rename the computers I install onto at the "cmdlines" section of Windows Setup.

At the moment, I have 4 registry keys:

[HKLM\SYSTEM\CurrentControlSet\Control\ActiveComputerName]
"ComputerName"="??"

[HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName]
"ComputerName"="??"

[HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"Hostname"="??"
"NV Hostname"="??"

I would prefer to be able to change the computer name at the command prompt though as doing it via the registry seems a little dirty to me.

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...