What Is Netdom Utility
NETDOM is a utility for renaming computers in a domain. The utility is a graphical interface of the built-in NETDOM command utility, which is part of the Windows Server 2003-2008 utilities. The application allows you to get a list of computers on the network and automatically rename it to the specified name.
Despite its simple interface, this program is a powerful administration tool, especially when the use of new graphical administrative utilities has not yet become automatic. Most important are the ability to view role carriers, transfer workstations and servers between domains, and manage trust relationships between domains. This program is worth using.
Rename a Computer in a Domain Remotely Using Netdom Command
To rename computers in a domain remotely, you need:
- Renamed computer must be turned on.
- On the local computer (if you will rename computers from your workstation, and not from the server) the netdom.exe program must be installed.
- If you are going to rename computers from the CSV file then you need PowerShell.
Now you can proceed to rename the computer:
- Go to the folder with the utility netdom.exe

Execute the Netdom
command:
netdom renamecomputer old_computer_name / newname: new_computer_name / user: domain_name \ admin_name / password: domain_admin_user_password / user: local_administrator / passwordo: local_local_administer_password / reboot: time_in_seconds_to_automatic_reloading

If you need to rename computers according to the list from the CSV file, then:
- Create the rename.csv file in the c: \ temp folder

- Write to this file a list of computers in a text editor without spaces between commas, in the format:
Machine1,Computer1OldName,NewName
Machine2,Computer2
Old_computer_name, new_computer_name
- Create the file rename.ps1 with the following contents:
Import-Csv $csvfile | foreach {$csvfile = “C:\temp\rename.csv”
$oldName = $_.OldName;
$newName = $_.NewName;
Write-Host “Renaming computer from: $oldName to: $newName”
netdom renamecomputer $ oldName / newName: $ newName / userd: domain_name \ administrator_name / passwordd: domain_administrator_password / usero: local_administrator / passwordo: local_administrator_password_old_computer / reboot: time_in_seconds_to_auto_reboot
}
Then run this script.
Detailed Syntax of Command netdom
Renaming is done under a domain account.
Command syntax:
netdom renamecomputer computer /newname: new_computer_name /userd:[ domain_name \] administrator_name [/passwordd:[ password | *]] /usero:[ domain \] local_administrator> [/passwordo:[ password | *]] [/reboot[: time ]] [{/help | /?}]
Sometimes it is enough to enter:
netdom renamecomputer computer / newname: new_ computer_name / userd: [ domain_name \] administrator_name / passwordd: [ password ]
More details:
renamecomputer
— key for renaming;computer
— computer before renaming;/ newname: new_computer_name —
desired computer name after renaming (no quotes are needed!);/ userd: domain_name \ administrator_name —
here you must put the name of the domain administrator;/ passwordd: * —
leave exactly as written, in fact, this key determines the wildcard character when entering the password;/ usero: local_administrator —
here you must enter the username of the local administrator (or repeat the domain entry, if he has administrator rights on the local machine);/ passwordo: *
— local administrator password.
Consider using Action1 to rename a computer in a domain network if:
- You need to perform an action on multiple computers simultaneously.
- You have remote employees with computers not connected to your corporate network.
Action1 is a cloud-based platform for patch management, software deployment, remote desktop, software/hardware inventory, endpoint management and endpoint configuration reporting.