How to Change Your Computer Name (PC Name) in Windows 11 and 10

Every Windows computer has a name, sometimes called the device name or PC name. It’s how your computer shows up on your home network, to your phone over Bluetooth and in your Microsoft account.

If you didn’t choose a name when you set the PC up, Windows made one up for you, something like DESKTOP-7GH2KQP. That’s no help at all when you’re trying to work out which computer is which.

When you install Windows 11 you’re given the option to name your PC, but it’s easy to skip. Windows 10 doesn’t even ask, it just assigns a name automatically.

In this guide I’ll show you how to change your computer name in Windows 11 and Windows 10, what Windows will and won’t let you call it, and what to do when it refuses the name you’ve typed.

The Short Version

  1. Press Windows key + I to open Settings.
  2. Click System, then About.
  3. Click Rename this PC.
  4. Type a new name using only letters, numbers and hyphens. No spaces, and 15 characters or fewer.
  5. Click Next, then Restart now.

How to Find Your Computer Name

Before you change it, it’s worth checking what your PC is called now. There are a few quick ways to find your computer name.

At the Top of Windows 11 Settings

Press Windows key + I to open Settings. In Windows 11 your PC name is at the top of the page, with a small Rename link underneath it.

The computer name at the top of Windows 11 Settings, with the Rename link underneath it.
Your PC name is at the top of Settings in Windows 11.

On the About Page

In both Windows 11 and Windows 10, go to Settings, System, About. Your computer name is shown next to Device name.

In the examples below you can see that the Windows 10 PC has an automatically created name, DESKTOP-PMLCI5P. That really doesn’t give you any idea which computer it actually is.

The Windows 11 PC, on the other hand, has a friendly name that’s instantly recognisable, janepc.

The About page in Windows 10 showing the automatic device name DESKTOP-PMLCI5P.
A device name like “DESKTOP-PMLCI5P” is difficult to remember.
The About page in Windows 11 showing the device name janepc.
But something like “janepc” is easy.

With the hostname Command

Click the Start button, type cmd and open Command Prompt. Type this command and press Enter:

hostname

Windows shows your computer name on the next line. It works in PowerShell and Terminal too.

How to Change Your Computer Name in Windows 11

Renaming your PC in Windows 11 takes about a minute, plus a restart. You need to be signed in with an administrator account, which on a home PC is usually the account you set it up with.

Open About Your PC

Click the Start button and type about. Then click About your PC (System settings) in the results.

Searching for About your PC in the Windows 11 Start menu to change the computer name.
Type “about” in the Start menu in Windows 11.

Click Rename This PC

The About page opens with your current PC name at the top. Click the Rename this PC button on the right.

If you’d rather, the Rename link at the top of Settings opens exactly the same box.

The Rename this PC button highlighted on the About page in Windows 11.
Click Rename this PC.

Type Your New Computer Name

In the box that opens, type the new name for your computer and click Next.

You can use letters, numbers and hyphens, up to 15 characters. No spaces and no other symbols. For example, dave-pc is fine but dave pc won’t work because there’s a space in it.

The new computer name dave-pc typed into the Rename your PC box.
You can use letters, numbers and hyphens.

Restart Your PC

Windows asks you to restart. Click Restart now, or Restart later if you’re in the middle of something and want to save your work first.

The new name doesn’t take effect until the PC has restarted. Until then, Windows and the rest of your network still see the old one.

The Restart now and Restart later buttons shown after renaming a PC in Windows 11.
Restart to finish changing the name.

How to Change Your PC Name in Windows 10

The steps in Windows 10 are almost identical.

  1. Click the Start button and type about, then click About your PC.
  2. Under Device specifications, click Rename this PC.
  3. Type the new name and click Next.
  4. Click Restart now.
Searching for About your PC in the Windows 10 Start menu.
Type “about” in the Start menu in Windows 10.
The Rename this PC button marked on the About page in Windows 10.
Click Rename this PC in Windows 10.

Computer Name Rules: What Windows Will Accept

Windows is fussy about computer names because they have to work on networks, including some very old networking standards. A name that works will:

  • Use only letters (A to Z) and numbers (0 to 9)
  • Use hyphens if you want to separate words, ideally in the middle, as in jane-laptop
  • Be 15 characters or fewer
  • Have no spaces, no underscores, no full stops and no symbols such as ! @ # or &
  • Not be only numbers, so 1234 won’t do

Capitals don’t matter. Windows treats DAVE-PC and dave-pc as the same name, and some places show it in capital letters whatever you typed.

For Example

living-room-pc is 14 characters, so it’s fine.

living-room-computer is 20 characters, which is too long. Shorten it to something like lounge-pc.

One or More of the Characters You Typed Won’t Work

If you see this message when renaming your PC, you’ve almost certainly typed a space or a symbol. A space is the usual culprit, because it’s so natural to type one between two words.

Delete what you typed and try again, using a hyphen instead of a space. Nothing has changed yet, so there’s no harm done.

The error message One or more of the characters you typed won't work when renaming a PC.
Spaces and symbols aren’t allowed.

What Should You Name Your Computer?

The best computer name is one you’ll recognise instantly in a list. Short and obvious beats clever. A few ideas that work well:

  • Who uses it: jane-laptop, dave-pc, kids-pc
  • Where it lives: study-pc, kitchen-laptop
  • What it is: dell-desktop, surface-laptop
  • Numbered: family-pc-1, family-pc-2

Quick Tip

My advice is to use a first name or a room, not your full name. Your PC name can be seen by other devices on the same Wi-Fi and by nearby phones when you pair over Bluetooth, so there’s no need to give away more than you have to.

Where Your New Computer Name Shows Up

Once you’ve restarted, the new name appears everywhere Windows identifies your PC. These are the places you’re most likely to notice it.

On Your Home Network

Other computers in the house will see your PC by its new name. Open File Explorer and click Network to see every computer that’s visible.

The renamed computer showing up on the home network in File Explorer.
That’s Dave’s computer alright.

This is where a clear name really pays off. If you’re setting up a home network to share files between PCs, or connecting with Windows Remote Desktop, you’ll pick the right computer first time.

Your Bluetooth Name

In Windows, your Bluetooth name is the same as your computer name. When you pair a phone, headphones or speaker, the new name is what appears on the other device.

So if you’ve been looking for a way to change the Bluetooth name of your PC, renaming the computer is how you do it.

In Your Microsoft Account

If you sign in with a Microsoft account, your PC is listed under your devices at account.microsoft.com/devices, which is also where Find my device looks.

That list can take a while to catch up with the new name. It’s only a label, so nothing stops working in the meantime.

Other Ways to Rename a Computer

Settings is the easiest way for most people. These two methods do exactly the same job, and they’re handy if Settings won’t cooperate.

Using System Properties

This is the old way of renaming a PC, and it still works in Windows 11 and Windows 10.

  1. Press Windows key + R to open the Run box.
  2. Type sysdm.cpl and press Enter.
  3. On the Computer Name tab, click Change.
  4. Type the new name in the Computer name box and click OK.
  5. Click OK on the message about restarting, then click Close.
  6. Click Restart Now.
The Computer Name/Domain Changes box in System Properties with a new computer name typed in.
The old System Properties way still works.

Using PowerShell

If you’re comfortable typing a command, PowerShell can rename your computer in one line.

  1. Right-click the Start button and click Terminal (Admin). In Windows 10 it’s called Windows PowerShell (Admin).
  2. Click Yes when Windows asks for permission.
  3. Type the command below, replacing dave-pc with your own name, and press Enter.
Rename-Computer -NewName "dave-pc" -Restart

Your PC restarts straight away, so save your work first. If you’d rather restart later, leave -Restart off the end.

Why the Old wmic Command No Longer Works

Lots of older guides, and some AI answers, tell you to rename your PC by typing a wmic command into Command Prompt. On an up-to-date Windows 11 PC that won’t work, because Microsoft removed the WMIC tool from Windows 11 in 2026. All you’ll get is this:

'wmic' is not recognized as an internal or external command,
operable program or batch file.

Use Settings or the PowerShell command above instead. They do the same job.

Computer Name or Account Name?

A lot of people looking to change the name on their computer actually mean the name on the sign-in screen. That’s your account name, and it’s a different thing from the computer name.

Changing one doesn’t change the other. How you change your account name depends on how you sign in.

  • Microsoft account: the name comes from your Microsoft account. Sign in at account.microsoft.com, open Your info and choose Edit name. Microsoft says it can take up to 24 hours to show everywhere.
  • Local account: open Control Panel, click User Accounts, then User Accounts again, then Change your account name.

Neither method renames your user folder, so your files stay exactly where they are. If you’re not sure which kind of account you have, my guide to Windows user accounts explains the difference.

Troubleshooting

Rename This PC Is Greyed Out

Renaming a computer needs administrator rights. If the button is greyed out or does nothing, sign in with an administrator account and try again. You can check which kind of account you’re using in my user accounts guide.

If it’s a work or school laptop, your organisation may have locked the name. Only their IT team can change it.

The Old Name Is Still Showing After Renaming

The new name only takes effect after a restart. If you clicked Restart later, the old name stays until you do.

Make sure you choose Restart from the power menu rather than Shut down. Because of a feature called Fast Startup, shutting down and switching back on isn’t always a full restart. I explain why in how to turn your computer off properly.

Other Computers Still See the Old Name

Other PCs on your network can hang on to the old name for a while. Give it a few minutes, then refresh the Network view in File Explorer.

If it’s still wrong, restart the other computer. Your router may also keep listing the old name in its device list until the PC reconnects, and restarting the router clears that.

Two Computers Have the Same Name

It’s easy to do by accident, for example by calling two laptops laptop. It causes confusion on the network, so give one of them a different name using the steps above.

Frequently Asked Questions

Q: Is it safe to change my computer name?
A: Yes. Your files, programs and settings aren’t touched. The only things affected are shortcuts on other computers that connect to this one by its old name, such as a shared folder, which may need reconnecting.

Q: Will changing my computer name delete anything?
A: No. Renaming your PC changes its label and nothing else.

Q: Do I have to restart after renaming my computer?
A: Yes. The new name only takes effect after a restart. Use Restart rather than Shut down so it definitely applies.

Q: How long can a computer name be?
A: 15 characters or fewer. Use letters, numbers and hyphens only.

Q: Can a computer name have spaces?
A: No. Use a hyphen instead, so dave-pc rather than dave pc. A space is the most common reason for the “characters you typed won’t work” message.

Q: Why is my PC called DESKTOP followed by random letters?
A: That’s the name Windows creates automatically when you don’t choose one during setup. Laptops sometimes get LAPTOP followed by random letters instead. You can change it at any time.

Q: Is the device name the same as the computer name?
A: Yes. Windows calls it Device name on the About page and PC name in other places, but it’s the same thing.

Q: Does changing my computer name change my user name?
A: No. Your account name, the one on the sign-in screen, is separate and is changed in a different place.

Q: Can I change my computer name back?
A: Yes. Follow the same steps and type the old name. You’ll need to restart again.

Summary

Changing your computer name takes a minute and a restart. Settings, System, About, Rename this PC, and you’re done.

On a home network, having all your computers show a clear, descriptive name makes connecting to the right PC so much simpler. The same goes for your Bluetooth devices and your Microsoft account.

If you’re new to Windows, my free Beginner Course takes you through the basics one step at a time.

5 Easy Steps to Setting Up a Home Network
Connect your computers and share files between them.

How to Install Windows Without a Microsoft Account
Install Windows 10 or Windows 11 using a local account instead of a Microsoft account.

How to Create a New User Account in Windows
Give everyone in the house their own account on the same PC.

Publisher has gone from Microsoft 365 and Office 2024.

A Publisher file being converted to a PDF and a Word document.

How to open your .pub files without it, save them as PDF and get them into Word, free, with or without Publisher.

You can find this and other related step by step guides in – At Home Computer Guides

Written by Jeff Porter. I’ve been fixing Windows PCs since 2010 and I’m CompTIA Network+ certified. More about me

Scroll to Top