User Tools

Site Tools


computing:windows:rename_pc

This is an old revision of the document!


Change Windows Hostname

  • 'netdom' is for machines on an AD domain
  • Use quotes around 'newname'
  • Reboot afterwards

CLI

wmic computersystem where caption='currentname' rename 'newname'
netdom renamecomputer %COMPUTERNAME% /Newname "NEW-NAME"

Windows 2008/2012:

netdom renamecomputer "$env:COMPUTERNAME" /Newname "NEW-NAME"

Then reboot to activate the new hostname:

shutdown -r -t 0
computing/windows/rename_pc.1523383321.txt.gz · Last modified: 2018/04/10 12:02 by gcooper