TechBuzzPro

How to Rename Your Computer in Windows 10

· 5 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Renaming your Windows 10 computer is quick: open Settings > System > About, click “Rename this PC,” type the new name, and restart. You can also do it from Control Panel > System > Advanced system settings > Computer Name tab, or with the hostname command in Command Prompt (run as administrator). The change takes effect after a reboot. You need an administrator account, and the name must follow Windows naming rules: up to 15 characters, no spaces or special characters like \ / : * ? " < > |, and it cannot be all numbers. This guide walks through the Settings method first, then the alternatives, and covers what to do when the rename fails.

What You'll Need

  • A Windows 10 PC you can sign in to with an administrator account.
  • The new name ready — 15 characters or fewer, letters, numbers and hyphens only is safest.
  • A few minutes to restart, since the change only applies after a reboot.

Note: menu labels can differ slightly by Windows 10 version (Home vs Pro) and by region, but the paths below are the standard ones.

Step-by-Step

  1. Open Settings. Press Win + I or click Start > Settings (the gear icon).
  2. Go to System > About. In the left sidebar click System, then scroll to the bottom and click About. (On some builds it is Settings > System > About.)
  3. Click “Rename this PC.” Under “Device specifications” or “PC name,” click the Rename this PC button. A small dialog opens.
  4. Type the new name. Enter a name that is 15 characters or fewer and uses only letters, numbers and hyphens. Avoid spaces and symbols. Click Next.
  5. Restart when prompted. Windows asks you to restart now or later. Choose Restart now to apply the change immediately; otherwise the old name stays until the next reboot.
  6. Verify the change. After signing back in, open Settings > System > About again and check “PC name.” You can also open Command Prompt and run hostname to see the current name.

Alternative method — Control Panel: Press Win + R, type sysdm.cpl, press Enter. On the Computer Name tab click Change, type the new name, click OK, then OK again and restart. This is the classic path and works on all Windows 10 editions.

Alternative method — Command Prompt: Open Command Prompt as administrator (search “cmd,” right-click, Run as administrator). Type wmic computersystem where name="%computername%" call rename name="NewName" and press Enter. Replace NewName with your chosen name. Restart to apply. This is handy for scripts but easy to mistype, so the Settings method is safer for most people.

Common Mistakes

  • Using spaces or symbols. Windows rejects names with spaces, backslashes, slashes, colons, asterisks, question marks, quotes, angle brackets or pipes. Stick to letters, numbers and hyphens.
  • Exceeding 15 characters. The NetBIOS limit is 15 characters; longer names may be truncated or cause network discovery issues. Keep it short.
  • Not restarting. The new name does not take effect until you reboot. If you skip the restart, Settings may still show the old name.
  • Using a standard account. You need administrator rights. If the Rename button is greyed out or you are prompted for a password you do not have, sign in with an admin account.
  • Renaming a domain-joined PC carelessly. On a work or school PC joined to a domain, renaming can break network access or require IT approval. Check with your administrator first; the option may be blocked by policy.
  • Confusing the PC name with the user account name. Renaming the computer does not change your Microsoft account or local username, and vice versa.

Tips

  • Pick a name that identifies the machine and its owner, like DESKTOP-ALEX or LAPTOP-OFFICE. Avoid personal data such as full addresses.
  • If you use OneDrive or network shares, note that the old name may appear in mapped drive paths. After renaming, reconnect any shares that used the old name.
  • On a laptop that joins different networks, a unique name avoids conflicts with other devices named DESKTOP-XXXXX.
  • You can check the current name anytime with hostname in Command Prompt or by looking at Settings > System > About.
  • If you plan to join a domain, rename the PC before joining, not after, to avoid extra reboots.

Troubleshooting

The Rename button is missing or greyed out. You are likely signed in with a standard account or the PC is managed by an organization. Sign out and sign in with an administrator account. If it is a work PC, contact IT — group policy may block renaming.

“The specified name is not valid” error. Check for spaces, symbols or a name longer than 15 characters. Also ensure the name is not all numbers and does not start or end with a hyphen.

The name did not change after restart. Confirm you clicked Restart now and not Shut down (fast startup can sometimes skip the rename). Do a full restart via Start > Power > Restart. Then recheck Settings > System > About.

Network shares or printers stopped working. Devices that referenced the old computer name need updating. Reconnect the share or printer using the new name, or remove and re-add it.

Domain-joined PC shows an error about the domain. Do not force it. Contact your IT administrator; renaming a domain member may require disjoining and rejoining, which they should handle.

Command Prompt method fails with “Access denied.” You did not open Command Prompt as administrator. Close it, reopen with Run as administrator, and try again.

Frequently Asked Questions

Does renaming my PC affect my files or user account?

No. Renaming changes only the computer’s network name. Your files, installed programs and user account remain unchanged.

Can I use spaces in the computer name?

No. Windows does not allow spaces or most special characters. Use letters, numbers and hyphens, up to 15 characters.

Do I have to restart after renaming?

Yes. The new name applies only after a restart. Until then, the old name remains active on the network.

Will renaming break my Wi-Fi or internet?

No. The name is for identification on networks. Your connection settings stay the same, though shared folders or printers that used the old name may need reconnecting.

Can I rename a work or school computer?

Only if your organization allows it. Domain-joined or managed PCs often have the option blocked by policy. Ask your IT administrator before attempting it.

What is the maximum length for a Windows 10 computer name?

15 characters for NetBIOS compatibility. Longer names may work in some contexts but can cause issues with older network tools, so keep it to 15 or fewer.