JAEN

PowerShell

Rename-Computer

CautionRename a computer

Rename-Computer -NewName <name> -Restart

Renames the machine; pass -DomainCredential on domain members. Standard kitting automation.

Examples

  • Rename-Computer -NewName PC-2F-014 -DomainCredential corp\admin -RestartRename and reboot

Syntax

Rename-Computer -NewName n [-DomainCredential cred] [-Restart]

Before you run it

Needs a reboot; mind references to the old name.

Related commands

The same reference, with no signal at all

Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store