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
| Step | What to do |
|---|---|
| 1 | Open Start > Settings > System > About |
| 2 | Select Rename this PC |
| 3 | Type the new name and select Next |
| 4 | Select Restart now or Restart later |
Step-by-step: rename your PC in Settings
- Open the Settings app.
- Go to System > About.
- Select Rename this PC.
- Enter the new name, then select Next.
- 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.
- Open Start > Settings > System > About again.
- Look at the device name near the top of the page.
- 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.
| Rule | Detail |
|---|---|
| Length | 1 to 15 characters; Windows does not permit computer names longer than 15 characters |
| Safe characters | Letters A to Z and numbers 0 to 9; a hyphen is also allowed in the middle of a name |
| First character | Letter or number |
| Last character | Not a hyphen or a period |
| Spaces | Not valid in a DNS host name, so avoid them |
| Characters to avoid | Comma, tilde, colon, exclamation point, @, #, $, %, caret, ampersand, apostrophe, parentheses, braces and underscore |
| Blocked in NetBIOS names | Backslash, 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.
| Practice | Why it helps |
|---|---|
| Use a name that is easy to remember | You can spot the PC quickly in lists and settings |
| Describe the owner or purpose | For example a short name for the room or the person who uses it |
| Give every computer a unique name | Two PCs with the same name are hard to tell apart on a network |
| Stick to ASCII letters, numbers and hyphens | Other characters can fail on DNS servers that are not made by Microsoft |
| Do not rely on upper or lower case | Names 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 typed | Problem | Try instead |
|---|---|---|
| Living Room PC | Contains spaces | LivingRoom-PC |
| Kids_Laptop | Underscore is not valid in a DNS host name | KidsLaptop |
| Office-Desktop-Upstairs | More than 15 characters | Office-Desk-2F |
| 12345678 | All-numeric names are not allowed for domain members | PC-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 happens | What to try |
|---|---|
| The PC name is invalid | Shorten the name to 15 characters or fewer |
| Name rejected with symbols | Use only letters, numbers and hyphens |
| Old name still shows after rename | Restart the PC, then check System > About |
| Cannot find Rename this PC | Open ms-settings:about from the Run box |
Related Windows 11 guides
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.