Команда netdom вводится одной строкой.
netdom renamecomputer computername /newname:new_computername /userd:domain\UserName /passwordd:* /usero:domain\UserName /passwordo:* /force /reboot:Time in seconds
 
После ввода нужно ввести два раза пароль к указанным пользователям, затем будет вопрос - нужно подтвердить, чтобы переименовать.
 
  • /userd - пользователь для подключения к домену, членом которого является компьютер
  • /usero - пользователь домена для подключения к компьютеру (должны быть права локального администратора на компьютере) 
  • /force  - позволит выполнить переимнование и перезагрузку без подтверждения.
 Пример. Переименовать компьютер comp1 в comp2:
 netdom renamecomputer comp1 /newname:comp2 /userd:domain\UserName /passwordd:* /usero:domain\UserName /passwordo:* /reboot:60
Type the password associated with the object user:
 
Type the password associated with the domain user:
 
This operation will rename the computer comp1
to comp2.
 
Certain services, such as the Certificate Authority, rely on a fixed machine
name. If any services of this type are running on comp1,
then a computer name change would have an adverse impact.
 
Do you want to proceed (Y or N)?
y
The command completed successfully.