You will need to install the AD Toolkit or any of the MS Suites that include the NETDOM tool or run from a domain controller.
In our domain we have some machines named by user etc (I didn’t set it up that way, but they like it and it helps “personalise” their work experience.) If a staff changed occurred, the old techs would have to set up the new PC in AD with appropriate permissions, take the old PC off the domain, reboot, rename the pc, reboot, add the pc to the domain, and reboot again.
This tool makes renaming a PC in a domain a one-step process. It changes the name on the PC and in AD, then reboots the machine in 10 (or however many) seconds. No need to open the AD console, physically touch, or remote in to the old PC. The EU is warned with a popup and countdown to reboot.
This name change can be achieved by running the following from a command prompt:
netdom renamecomputer OLDPCNAME /newname:NEWPCNAME /userd:domain\adminaccount /passwordd:password /reboot:10
Note the double ‘d’ for the password parameter, it is needed.
More Info here: