Skip to content

Changing The System Name (Domain and non Domain computer account)

Netdom renamecomputer %computername% /NewName:new-name /UserD:domain-username /PasswordD:*

Netdom doesn’t currently provide a way to rename a non-domain joined computer.

It is a bit of a hassle to join and unjoin from a domain just to rename the computer.

WMI is the solution to this one. Using WMIC you can rename the computer using:

wmic computersystem where name=”%computername%” rename name=”new-name”

The one limitation to this is that it must be run while logged on with the default administrator account. You must also REBOOT for the changes to take effect

 If you want to view if this is successful just use “systeminfo” and if should display the computer name for you

Example Shown, I renamed my system before joining to my domain.

Changing the system name via WMIC   System Info of changed name

No comments yet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

You may use basic HTML in your comments. Your email address will not be published.

Subscribe to this comment feed via RSS

Follow

Get every new post delivered to your Inbox.