Using Command Prompt (CMD) to Change Your Computer Name

by Eric Wyatt
(last updated December 14, 2020)


I discussed elsewhere that your computer has two names associated with it—your account name and the computer's name. In another article, I talked about possible reasons why someone might want to rename their computer. In that article, I went over how you can change your computer name using PowerShell. PowerShell is not the only way you can change your computer's name, however. You can also use Command Prompt (CMD), and all you need is a simple command to easily make the change.

To use Command Prompt for this task, you will need to run it as an Administrator. To do this, start by pressing the Windows key and typing (without quotes) "CMD." Do not press Enter yet; Windows should show you a few options on the screen. Either right-click on the Command Prompt search result and choose "Run As Administrator" or press Ctrl+Shift+Enter. Regardless of the approach, Command Prompt launches in Admin mode. You will be able to tell it is in Admin mode if the resulting Command Prompt window shows "\Windows\system32>" as the prompt.

Next, enter the command below and press Enter. You need to change the last part of the command, "Computer-Name" to what you want your computer's name to be:

wmic computersystem where name="%computername%" call rename name="Computer-Name"

Once the command has finished, close the Command Prompt window and restart your machine for your name change to take effect.

Please remember that if you are part of a network administered by an IT administrator, they may not allow you to change your computer's name. If that is the case, contact your system administrator to see if they can assist you.

 This tip (13811) applies to Windows 10.

Author Bio

Eric Wyatt

Eric Wyatt is a swell guy (or so his friends tell him). He is a formally trained designer and branding expert, bringing a wide range of skills to his Tips.Net articles. ...


Navigate File Explorer Without a Mouse

Navigating Windows 10 File Explorer with your mouse is easy. As easy as using your mouse might be, using keyboard ...

Discover More

Turning on Inactive Window Scroll

Have you ever needed to scroll through an inactive window while keeping another window active? This tip will show you how ...

Discover More

Performing a Factory Reset

Executing a factory reset is the final option if your computer is not working correctly. This tip shows you how to reset ...

Discover More
More WindowsTips

Grouping Tiles in the Start Menu

Arranging tiles into groups can make finding and starting your apps quicker. Discover how easy it is to group tiles in ...

Discover More

Picking a Desktop Icon Size

Are the icons on your desktop displayed at the right size for your preference or needs? Windows provides three different ...

Discover More

Removing an Update

Windows installs updates automatically by default. If you want to remove an update, this tip tells you how.

Discover More

FREE SERVICE: Get tips like this every week in WindowsTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.


If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is one more than 7?

2020-12-15 18:20:07

Bill Jeffrey

I recently changed the name of my Windows 10 computer from (let's say) JEFF-123 to JEFF-ABC. It was easily done from Start -> Control Panel -> System. However, the name of my computer appears to be resident in some additional place(s), and they didn't get the memo on the change. And sadly, one or more of those places seem to involve my computer's location on my local network. Did the name change described in this TIP intend to pick up all those places? Is there a list of places where the computer name resides? Any and all info would be welcome.


Newest Tips

FREE SERVICE: Get tips like this every week in WindowsTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.