Quick answer: Go to Start > Settings > System > About, select Rename this PC, type the new name and select Next. Windows then asks whether to restart now or later; the new name takes effect once the PC restarts. Stick to letters, numbers and hyphens, with no spaces. Renaming the PC doesn’t touch your user account name, your files or your apps.
In this guide
Applies to: Windows 11. Microsoft’s Rename Your Windows Device page uses the same steps for Windows 10, which reached end of support on October 14, 2025. This guide is about the computer name, the label other devices and your Microsoft account see. To change the name shown on the sign-in screen, see how to change your user name in Windows instead.
Why bother? Microsoft gives three reasons: telling apart several devices linked to one Microsoft account, hiding details a default name can give away about the device or its owner, and letting organizations follow a consistent naming scheme. A factory name such as DESKTOP followed by a string of random characters is hard to pick out in a list of network computers or Bluetooth devices.
Rename your PC in Settings
These are the steps Microsoft lists for renaming a Windows device:
- Select Start and open Settings (or press Windows key + I).
- Go to System > About.
- Select Rename this PC.
- Type the new name and select Next.
- Choose Restart now to apply it right away, or Restart later to keep working and pick it up at the next restart.
Save open documents before choosing Restart now, since Windows closes everything as it restarts. Until the restart, the About page and other devices on your network may still show the old name.
Shortcut: in recent Windows 11 versions, the top of the main System page in Settings may also show the device name with a Rename link that opens the same dialog. If you don’t see it, use the About page.
Pick a name Windows will accept
Microsoft’s documentation for the Rename-Computer command spells out the rules for a standard computer name. The same limits are worth following whichever method you use:
- Use letters (A to Z, upper or lower case), numbers (0 to 9) and hyphens.
- Leave out spaces and periods. Use a hyphen to separate words, as in Office-Laptop.
- Don’t use only digits. A name such as 2026 is rejected; Laptop-2026 is fine.
- Keep it to 63 characters at most.
In practice, a name of 15 characters or fewer is the safer choice. Some older network features read only the first 15 characters of a computer name, so two long names that start the same way may look identical to them. It also helps to give each PC on your network a different name, because two devices with the same name can confuse file and printer sharing.
Rename from System Properties
Windows 11 still includes the older System Properties dialog, which some people prefer. Microsoft’s rename page doesn’t cover this route, so treat the labels below as a guide; they can vary slightly between versions.
- Press Windows key + R, type sysdm.cpl and press Enter.
- On the Computer Name tab, select Change.
- Type the new name in the Computer name box and select OK.
- Confirm the restart prompt, close the dialog and restart when you’re ready.
The same dialog shows whether the PC belongs to a workgroup or a domain. On a work PC that’s joined to a domain, a rename here usually asks for an account that has rights on the domain, so it’s a job for your IT admin rather than something to try on your own.
Rename with PowerShell
If you set up PCs often, or want to rename one without clicking through Settings, the Rename-Computer cmdlet does it in one line. Microsoft’s reference page says it renames the local or a remote computer, one computer per command, and that it’s only available on Windows.
- Right-click Start and choose Terminal (Admin). Changing the computer name is a system change, so an administrator window is the safe bet; the label may read Windows PowerShell (Admin) on some versions.
- Run the command below, replacing Office-Laptop with your new name:
Rename-Computer -NewName "Office-Laptop" -Restart
The -Restart switch restarts the PC as soon as the rename is done, so save your work first. Leave it out if you’d rather restart yourself later; Microsoft notes that a restart is often required for the change to take effect. -Force skips the confirmation prompt.
For a PC joined to a domain, Microsoft says explicit credentials are required, which you pass with -DomainCredential followed by a domain account that has permission, for example Domain01\Admin01. If the PC then has trouble talking to the domain, see error 0x0000232B RCODE_NAME_ERROR when joining a domain for the DNS checks.
What changes when the name changes
- Your files, apps and settings stay as they are. Only the computer’s label changes.
- Your user name doesn’t change. The sign-in screen and your user folder keep their names. That’s a separate setting covered in how to change your user name in Windows.
- Other PCs see the new name. After the restart, the PC should show under its new name in File Explorer’s Network view on other computers, though it can take a few minutes to refresh. If it doesn’t appear at all, work through network computers not showing in File Explorer.
- Saved paths that use the old name may break. A drive mapped on another PC to a share on this one, written as \\OLDNAME\folder, points at a name that no longer exists. Remove it and map it again with the new name, as shown in how to map a network drive.
- Your Microsoft account device list. The device list in your Microsoft account may keep showing the old name for a while before it updates.
Can’t rename the PC: what to check
Match what you see to the rows below.
| What you see | Possible cause | What to try |
|---|---|---|
| Windows won’t accept the new name | It has a space, a period or another character outside letters, numbers and hyphens, or it’s all digits | Use only letters, numbers and hyphens, and include at least one letter |
| Rename this PC can’t be selected, or asks for a password | You’re signed in with a standard account | Sign in with an administrator account, or ask the PC’s owner to rename it |
| Rename is blocked on a work or school PC | The PC is managed by your organization or joined to a domain | Ask your IT admin; check which organization manages it in Access work or school |
| About still shows the old name | The PC hasn’t restarted since the rename | Restart (not shut down and start) the PC |
| Another PC still lists the old name | Its network view hasn’t refreshed yet | Wait a few minutes, refresh the Network view, or restart that PC |
| Shared folders or mapped drives stopped working | They still point at the old computer name | Map the drive again using the new name |
Restart, not shut down. If Fast startup is on, shutting down and switching the PC back on isn’t always the same as a full restart, so use Start > Power > Restart to be sure the new name loads.
Check the account type. To see whether you’re an administrator, open Settings > Accounts; your account type is listed under your name. On a family PC, the person who set it up may need to make the change.
Related guides
- How to change user name in Windows 10 (local or Microsoft account)
- Network computers not showing in File Explorer: how to fix it
- How to map a network drive in Windows 10 (and Windows 11)
- Access work or school in Windows 11 and 10: add, check and disconnect accounts
- Error 0x0000232B RCODE_NAME_ERROR when joining a domain: how to fix it
Leave a Reply