Changing the computer name remotely in Domain Controller (DC)

Here is the translation of your text into English:

Changing the Computer Name Remotely on Active Directory (AD)

In an Active Directory (AD) environment, you can use the following method to change a computer’s name.

Changing the computer name using PowerShell command

To change the computer name with a PowerShell command in AD, follow the steps below:

  1. Open PowerShell as an administrator.
  2. Type the following command and press Enter:
   Rename-Computer -ComputerName "OldName" -NewName "NewName"

This command will change the name of the computer named “OldName” to “NewName.”

Example:

Rename-Computer -ComputerName PC01 -NewName PC02 -DomainCredential DOMAINNAME\USER -Force -PassThru

HasSucceeded OldComputerName           NewComputerName
------------ ---------------           ---------------
True         PC01                      PC02
WARNING: The changes will take effect after you restart the computer PC01.

See also  Xiaomi Robot Vacuum Sensor Error: How to Fix It?

Leave a Comment