|

How To Change Your PC Name In Windows 11 (2026)

Every Windows 11 PC has a device name, and the default one is usually a random string such as DESKTOP followed by letters and numbers.

You can replace it with something you recognize, and the change takes about a minute in Settings.

This guide shows the exact steps, the naming rules that cause the “PC name is invalid” error, and what happens after the restart.

Quick answer: how to rename your PC

StepWhat to do
1Open Start > Settings > System > About
2Select Rename this PC
3Type the new name and select Next
4Select Restart now or Restart later

Step-by-step: rename your PC in Settings

  1. Open the Settings app.
  2. Go to System > About.
  3. Select Rename this PC.
  4. Enter the new name, then select Next.
  5. Choose Restart now or Restart later.

These are the steps on Microsoft’s “Rename your Windows device” page, which lists Windows 11 and Windows 10 together.

Because the last screen offers a restart, save your work before you pick Restart now.

Open the About page faster

Microsoft gives a shortcut for the same page: type ms-settings:about into the Run box or the address bar of File Explorer.

That opens System > About directly, so you can go straight to Rename this PC.

What to expect after the restart

Microsoft’s page does not describe what happens after the restart, so check the result yourself.

  1. Open Start > Settings > System > About again.
  2. Look at the device name near the top of the page.
  3. Confirm it shows the name you typed.

Naming rules for a Windows PC name

Microsoft’s rename page does not list naming limits, but Microsoft Learn documents them for Windows computer names.

RuleDetail
Length1 to 15 characters; Windows does not permit computer names longer than 15 characters
Safe charactersLetters A to Z and numbers 0 to 9; a hyphen is also allowed in the middle of a name
First characterLetter or number
Last characterNot a hyphen or a period
SpacesNot valid in a DNS host name, so avoid them
Characters to avoidComma, tilde, colon, exclamation point, @, #, $, %, caret, ampersand, apostrophe, parentheses, braces and underscore
Blocked in NetBIOS namesBackslash, slash, colon, asterisk, question mark, quotation mark, less-than, greater-than and vertical bar

Microsoft’s best practice is to use only letters, numbers and hyphens, and to avoid relying on upper or lower case to carry meaning.

How to choose a name you will not regret

Microsoft Learn lists a few best practices that apply to home PCs as well as offices.

PracticeWhy it helps
Use a name that is easy to rememberYou can spot the PC quickly in lists and settings
Describe the owner or purposeFor example a short name for the room or the person who uses it
Give every computer a unique nameTwo PCs with the same name are hard to tell apart on a network
Stick to ASCII letters, numbers and hyphensOther characters can fail on DNS servers that are not made by Microsoft
Do not rely on upper or lower caseNames are not case-sensitive in practice

Microsoft Learn also says Windows DNS supports Unicode, but other DNS systems may not, so plain English letters are the safest choice.

If you see “The PC name is invalid”

The most common cause is a name that is too long.

In one Microsoft Q&A thread, a user’s 18-character name was rejected, and the accepted advice was that 15 characters is the maximum.

Name you typedProblemTry instead
Living Room PCContains spacesLivingRoom-PC
Kids_LaptopUnderscore is not valid in a DNS host nameKidsLaptop
Office-Desktop-UpstairsMore than 15 charactersOffice-Desk-2F
12345678All-numeric names are not allowed for domain membersPC-12345678

The examples in the first two columns are illustrations of those rules, not names Microsoft recommends.

Can a name be all numbers?

For a PC that is a member of an Active Directory domain, no, because Microsoft says all-numeric names are blocked by a DNS restriction.

That rule is aimed at work and school PCs, but a name with at least one letter avoids the problem on any PC.

Hyphens and other punctuation

A hyphen is accepted inside a name, but it cannot be the first or last character.

Other punctuation causes trouble in DNS host names, which is why Microsoft’s guidance is to stay with letters, numbers and hyphens.

If your PC still runs Windows 10

The same steps work, because Microsoft’s page lists both versions under the same instructions.

Microsoft’s page also notes that support for Windows 10 ended on October 14, 2025, and recommends moving to Windows 11.

If you are still deciding, read how to enroll in Windows 10 Extended Security Updates.

Does the new name show up in your Microsoft account?

Microsoft’s account page for managing devices says a device you add to your account can take up to 24 hours to appear in the list at account.microsoft.com/devices.

It does not state when a renamed PC updates there, so give it time before you assume the rename failed.

If you stop using a PC, the same page says to sign in at account.microsoft.com/devices, select Remove device, confirm the check box and select Remove.

Quick troubleshooting table

What happensWhat to try
The PC name is invalidShorten the name to 15 characters or fewer
Name rejected with symbolsUse only letters, numbers and hyphens
Old name still shows after renameRestart the PC, then check System > About
Cannot find Rename this PCOpen ms-settings:about from the Run box

If you are tidying up a PC, you may also want to switch to a local account on Windows 11.

You can also change how your desktop looks with dark mode, theme and wallpaper settings.

Another quick change is setting your default browser.

Sources

Leave a Reply

Your email address will not be published. Required fields are marked *