Rename Your Windows 11/10 PC: Every Method + Greyed Out Fix

Logeshwaran
—

To rename your PC in Windows 11, go to Settings > System > About and click the “Rename this PC” button, type your new name, and restart. But here is the counterintuitive part nobody explains: the PC name limit is 15 characters, and the reason is NetBIOS — a networking protocol from the 1980s that Windows still carries for backward compatibility with older file-sharing systems. If you type a longer name, Windows accepts it, shows it in Settings, and then silently truncates it on the network — your PC called “JOHNS-OFFICE-COMPUTER” appears as “JOHNS-OFFICE-COM” to every other device, and shared folders that used the full name stop resolving. This is why renaming a PC is not just a label change — it is a network identity change that affects file sharing, printer discovery, and domain trust.

⚡ Quick Answer

• Rename (Settings) → Win + I → System → About → Rename this PC → type name → restart

• Rename (PowerShell) → Rename-Computer -NewName "OFFICE-DESK-01" -Restart (run as Administrator)

• Rename (domain-joined PC) → sysdm.cpl → Computer Name tab → Change → enter domain admin credentials

Rules: 15 characters max, letters + numbers + hyphens only, no spaces. Full detail: Settings method · domain method · PowerShell · naming rules · fix grayed out.

The PC name is not a label — it is a network identity. When your laptop shows up on the home network, when a printer shares to “DESKTOP-PC7X2K,” when a domain controller authenticates a machine account — that is the PC name doing the work. Renaming it changes how every other device on the network finds and references this computer. On a home Wi-Fi, that means shared folders and network printers re-learn the new name. On a corporate domain, that means the Active Directory database is updated — a process that requires domain admin credentials and, if done wrong, breaks the trust relationship that lets the PC log in.

Jake’s customer this week was a small-business owner with four office computers, all named variations of “DESKTOP” followed by random letters that Windows generates during setup. Nobody could tell which shared folder belonged to which machine. The fix was simple — rename each PC to something human-readable (“OFFICE-RECEPTION,” “OFFICE-DESIGN-01”) — until Jake reached the fourth computer and the “Rename this PC” button was grayed out. It was joined to a company domain, and the domain, not Windows, controlled its name. Jake called Ethan. Ethan’s first question: “Is that machine domain-joined? Because the Settings rename only works for workgroup PCs. Domain machines need the advanced method — and domain admin credentials.”

What Your PC Name Actually Is (and Why 15 Characters)

Windows generates a PC name during setup — something like “DESKTOP-PC7X2K” or “LAPTOP-9F3M2Q” — by combining the device type with a random string. This name is the computer’s identity on the network. Other PCs use it to find shared folders, printers, and remote desktop connections. Domain controllers use it as the machine account name in Active Directory. You use it to identify which computer is which when five laptops are on the same Wi-Fi.

The 15-character limit comes from NetBIOS — a networking standard from the early 1980s that defined computer names as exactly 16 bytes, with the 16th reserved for a service identifier. That leaves 15 characters for the actual name. Windows has carried this limit through every version since Windows NT, not because the modern networking stack needs it (DNS supports 63 characters per label), but because file sharing, printer discovery, and some legacy applications still fall back to NetBIOS names when DNS is unavailable. The truncation is silent: Windows accepts your 25-character name in Settings, displays it, and then uses only the first 15 characters on the network. Devices that connected to “JOHNS-OFFICE-COMPUTER” can no longer find it, because the network name is now “JOHNS-OFFICE-COM.”

“So if I type a name longer than 15 characters, Windows doesn’t warn me?” Jake asked.

“It doesn’t stop you, and it doesn’t show an error,” Ethan said. “The name works locally — Settings shows the full thing. But the network name is truncated, and shared resources that used the full name break. It’s one of those Windows behaviors that’s been inherited from three decades of backward compatibility, and the fix is simple: keep the name to 15 characters and the problem never exists.”

🙋‍♂️ Jake's Reality Check

"The business owner’s four computers — three renamed fine, the fourth is grayed out. Is he stuck with DESKTOP-whatever forever?"

The straight answer. No, but the fourth computer is domain-joined, which means the domain controller owns its identity. The Settings rename button is grayed out because renaming a domain PC requires updating the machine account in Active Directory — a domain-level operation, not a local one. The fix is the “advanced” rename method (below), which prompts for domain admin credentials and updates both the local name and the domain account. If the business owner doesn’t have domain admin credentials, he needs whoever manages the domain to rename it for him.

Rename Your PC in Windows 11 (The Settings Method)

This is the modern method — fast, built into Settings, and works for workgroup PCs (the default for home and small-business machines that are not on a domain):

  1. Open Settings (Win + I).
  2. Click System in the left sidebar, then scroll down and click About.
  3. Next to the current PC name (shown under “Device specifications” → “Device name”), click the “Rename this PC” button.
  4. Type your new name in the dialog. Windows checks it against the naming rules (covered below). If the name is valid, the button turns blue; if it’s invalid, you see an error message explaining why.
  5. Click Next. Windows tells you a restart is required.
  6. Click Restart now (or restart later — the rename takes effect on the next reboot).
  7. After the restart, the new name appears in Settings, on the network, and in any app that referenced the PC by name.

On Windows 10, the same method works: Settings → System → About → “Rename PC.” The interface is slightly different but the process and the restart requirement are identical.

✅ Why this is the default method

It is the fastest path (30 seconds plus a restart), it validates the name before accepting it, and it works on all editions of Windows 11 and Windows 10 — Home, Pro, Education, and Enterprise. For any PC that is not on a domain, this is the only method you need. The other methods exist for edge cases: domain-joined machines, scripted deployments, and situations where the Settings UI is unavailable.

Rename via the “Advanced” Option (Domain-Joined PCs)

The “Rename this PC (advanced)” option opens the old System Properties dialog — the same one from Windows 7 and earlier. It is the only method that works correctly for domain-joined machines, because it updates both the local computer name and the Active Directory computer account in one operation:

  1. Press Win + R, type sysdm.cpl, and press Enter. (Or: right-click This PC → Properties → “Rename this PC (advanced)” link, or Settings → System → About → “Rename this PC (advanced)” if the link appears.)
  2. The System Properties dialog opens on the Computer Name tab. You see the full computer name and the domain or workgroup membership.
  3. Click the Change… button.
  4. In the Computer Name/Domain Changes dialog, type the new name in the “Computer name” field.
  5. If the PC is domain-joined, Windows prompts for domain admin credentials to update the Active Directory computer account. Enter a username and password that has permission to rename computer objects in the domain.
  6. Click OK. Windows validates the name, updates the local machine, and contacts the domain controller to rename the computer account.
  7. Click OK to close the dialogs, then restart when prompted.

The critical difference from the Settings method: the advanced rename notifies the domain controller and updates the computer’s account in Active Directory. If you use the Settings rename on a domain-joined PC (when it’s not grayed out), the local name changes but the domain account does not — and the trust relationship breaks. The next time the PC tries to authenticate to the domain, it fails, because the domain is looking for the old name and the PC is presenting the new one. The fix is renaming back to the original name or re-joining the domain.

For workgroup PCs, the advanced method also works — it just skips the domain credential prompt and renames locally. It is functionally equivalent to the Settings method for non-domain machines, but with an older interface.

Rename via PowerShell and the Command Line

For scripted renames, deployment tools, or when the Settings UI is unavailable, the command line method works on all editions:

PowerShell (Recommended)

# Rename the PC and restart immediately
Rename-Computer -NewName "OFFICE-DESK-01" -Restart

# Rename without restarting (rename takes effect on next reboot)
Rename-Computer -NewName "OFFICE-DESK-01"

# Rename a remote PC (requires WinRM enabled on the target)
Rename-Computer -ComputerName "OLD-NAME" -NewName "NEW-NAME" -Restart

# Rename with domain credentials (for domain-joined PCs)
Rename-Computer -NewName "OFFICE-DESK-01" -DomainCredential DOMAIN\AdminUser -Restart

Run PowerShell as Administrator (right-click Start → Terminal (Admin)). The -Restart parameter is optional but convenient — it reboots the PC immediately after the rename is staged. Without it, the rename applies on the next manual restart. The -DomainCredential parameter accepts a PSCredential object or prompts for one if not provided.

Command Prompt (Legacy)

:: Rename via WMIC (deprecated but functional)
wmic computersystem where name="%computername%" rename "NEW-NAME"

:: Restart to apply
shutdown /r /t 0

The wmic tool is deprecated by Microsoft and may be removed in future Windows versions. The PowerShell Rename-Computer cmdlet is the supported replacement and offers more options (remote rename, domain credentials, restart control).

What Happens on the Network When You Rename

Renaming a PC is a network event, not just a local one. Understanding what re-learns the new name (and what breaks) helps you decide when to rename and what to fix afterward:

  • Shared folders — if other computers mapped a drive to \\OLD-NAME\Shared, the mapping breaks because the old name no longer resolves. They need to re-map to \\NEW-NAME\Shared. Homegroup-style discovery (File Explorer → Network) re-discovers the new name automatically within minutes.
  • Network printers — a printer shared from the renamed PC is still shared, but the network path changes. Other computers that added the printer by the old path (\\OLD-NAME\Printer) need to re-add it by the new path. The printer itself doesn’t need to be reinstalled on the host PC.
  • Remote Desktop connections — saved RDP files (.rdp) that reference the old name stop connecting. Update the computer name in the RDP file or in the Remote Desktop connection settings.
  • Domain trust — on a domain-joined PC, the computer account in Active Directory must be renamed at the same time (the advanced method handles this). If the domain account is not updated, the PC cannot authenticate to the domain on next boot — it presents a name the domain controller doesn’t recognize.
  • DNS and DHCP — on a network with a DNS server (typically a domain environment), the PC’s DNS record updates automatically after the rename and restart. On a home network without DNS, discovery uses broadcast protocols that re-learn the new name within minutes.

The practical takeaway: rename PCs during a maintenance window (not during the workday when people are actively connected to shared resources), and communicate the new name to anyone who uses file shares or remote connections to that machine. The renaming itself is instant; the re-learning is the part that takes a few minutes and occasionally requires manual intervention on the other computers.

The Naming Rules: What Makes a PC Name “Invalid”

Windows validates PC names against a set of rules derived from DNS and NetBIOS requirements. If your name violates any of these, you get the “The PC name is invalid” error:

Rule Valid Invalid Why
Maximum 15 charactersOFFICE-DESK-01OFFICE-DESK-COMPUTER-01 (23 chars)NetBIOS truncates beyond 15; network name differs from display name
Letters, numbers, and hyphens onlyHOME-LAPTOP-2HOME LAPTOP 2 (spaces)DNS and NetBIOS don’t support spaces
No special charactersDESIGN-STUDIODESIGN_STUDIO! (underscore, exclamation)Only alphanumerics and hyphens are allowed
Can’t be all numbersPC-1234512345NetBIOS requires at least one letter
Can’t start or end with a hyphenPC-LAPTOP-LAPTOPDNS labels can’t begin or end with a hyphen

The practical advice: stick to short, lowercase names with hyphens and numbers — office-desk-01, home-laptop, design-pc. They are easy to type, easy to remember, easy to reference in scripts and network paths, and they never trigger a validation error. The 15-character limit is the only rule that silently bites rather than showing an error — everything else is caught by the validation before you can click Next.

When “Rename this PC” Is Grayed Out (And How to Fix It)

The “Rename this PC” button being grayed out or missing is the second-largest search cluster in this topic. The causes are specific:

Symptom Cause The fix
Rename button grayed outPC is domain-joined — the domain controls the nameUse the advanced method (sysdm.cpl) with domain admin credentials
Rename button missing entirelyPC is Azure AD / Microsoft Entra ID joined (not local)The name is managed by the Entra ID tenant; use the advanced method or contact the IT admin
Rename button grayed out, not domain-joinedWindows S Mode or a Group Policy restrictionCheck Group Policy (gpedit.msc) under Computer Configuration → Administrative Templates → System → “Prohibit PC name change” (or use the Registry equivalent)
Rename works but name reverts after restartA management tool (Intune, SCCM) is enforcing the nameThe device management policy overrides local renames; change the name in the management tool
“The PC name is invalid” errorName violates the naming rules (spaces, special characters, too long, all numbers)Use letters, numbers, and hyphens only; keep it under 15 characters; include at least one letter
Rename button available but clicking does nothingUI rendering glitch after a Windows updateRestart the PC, or use the PowerShell Rename-Computer cmdlet instead

And the when-nothing-works paragraph: if the rename button is grayed out, the advanced method also fails, and PowerShell returns an access-denied error, the PC’s name is being controlled by a management layer you cannot see from Settings. Run dsregcmd /status from an elevated Command Prompt to check whether the PC is Azure AD/Entra joined, domain joined, or workgroup-joined. The output’s “AzureAdJoined” and “DomainJoined” lines tell you which identity system owns the computer account. If both show “NO,” the PC is workgroup-joined and the local rename should work — if it doesn’t, check Group Policy or third-party management software.

Renaming the User Account vs. Renaming the PC (They Are Different Things)

A significant number of searches conflate two different operations: renaming the PC (the computer’s network name) and renaming the user account (the name shown on the login screen and in the user profile folder). They are completely separate:

  • PC name — the network identity. What other computers see. Changed in Settings → About → “Rename this PC” or via PowerShell. Affects file sharing, domain membership, and network discovery.
  • User account name — the display name shown at the login screen and in the Start menu. Changed in Settings → Accounts → Your info → “Edit name” (for Microsoft accounts) or via netplwiz (for local accounts). Affects sign-in and file ownership, not network discovery.

The user profile folder (C:\Users\John) is a third thing entirely — it does not change when you rename either the PC or the user account. Renaming the profile folder requires creating a new profile and migrating data, or editing the registry (which Microsoft does not recommend). The mismatch — user renamed but folder still shows the old name — is cosmetic and harmless; Windows maps the folder correctly regardless of the display name.

The IT Admin Corner: Renaming PCs at Scale

For administrators managing fleets of domain-joined machines, the rename is an Active Directory operation, not a local one. The PowerShell method with domain credentials:

# Rename a remote domain-joined PC
Rename-Computer -ComputerName "OLD-PC-NAME" `
    -NewName "NEW-PC-NAME" `
    -DomainCredential "DOMAIN\AdminUser" `
    -Force -Restart

# Rename multiple PCs from a CSV file
Import-Csv "computers.csv" | ForEach-Object {
    Rename-Computer -ComputerName $_.OldName `
        -NewName $_.NewName `
        -DomainCredential (Get-Credential) `
        -Force -Restart
}

The -Force parameter suppresses the confirmation prompt (useful for batch operations). The -DomainCredential parameter accepts a PSCredential object or prompts for one if not provided. The rename updates the Active Directory computer account and the local machine simultaneously — no separate domain-side step is needed.

For Intune-managed devices, the computer name can be set during Autopilot enrollment (as part of the device name template in the enrollment profile) or changed post-enrollment through a device configuration profile. The Intune device name is separate from the Entra ID device object name — check the Intune admin center → Devices → All devices for the current name and rename options.

✅ The naming convention, compressed

For a fleet: [location]-[role]-[number] — e.g., NY-RECEPTION-01, NY-DESIGN-02, LA-OFFICE-03. It is under 15 characters, it sorts alphabetically by location and role, and it tells you which machine is which without a lookup table. For a home network: home-desktop, home-laptop, home-media — simple, lowercase, no truncation, no confusion.

Frequently Asked Questions

How do I rename my PC in Windows 11?

Settings → System → About → “Rename this PC” → type the new name → restart. For domain-joined PCs, use the advanced method: Win+R → sysdm.cpl → Computer Name tab → Change → enter domain admin credentials.

Why is “Rename this PC” grayed out in Windows 11?

The PC is domain-joined or Azure AD/Entra ID joined. The domain or the Entra tenant controls the computer’s identity, and Windows prevents a local rename from breaking the trust relationship. Use the advanced method (sysdm.cpl) with domain admin credentials, or contact the IT administrator.

How do I rename my PC using PowerShell?

Open PowerShell as Administrator and run: Rename-Computer -NewName "NEW-NAME" -Restart. For domain-joined PCs, add -DomainCredential DOMAIN\AdminUser. For remote PCs, add -ComputerName "REMOTE-PC".

What is the maximum length for a PC name in Windows 11?

15 characters, enforced by NetBIOS for backward compatibility. Windows accepts longer names in Settings but silently truncates them to 15 characters on the network, which can break file shares and network paths that used the full name.

What characters are allowed in a PC name?

Letters (A-Z, a-z), numbers (0-9), and hyphens (-). No spaces, no underscores, no special characters. The name can’t be all numbers, can’t start or end with a hyphen, and must contain at least one letter.

Does renaming my PC require a restart?

Yes. The rename is staged immediately but takes effect on the next restart. You can restart immediately (the Settings app offers this) or continue working and restart later — the new name applies either way.

Can I rename a domain-joined PC without domain admin credentials?

No, not properly. The domain controller owns the computer account, and renaming it requires updating that account in Active Directory. Without domain admin (or delegated rename) credentials, the rename either fails or breaks the domain trust relationship. Contact the IT administrator who manages the domain.

What is “Rename this PC (advanced)” in Windows 11?

It opens the old System Properties dialog (sysdm.cpl) on the Computer Name tab. This is the method that handles domain-joined machines correctly — it prompts for domain admin credentials and updates the Active Directory computer account along with the local name. For workgroup PCs, it is functionally equivalent to the Settings method.

Why does my PC name change back after I rename it?

A management tool is enforcing the name. Intune, SCCM, or a Group Policy is setting the computer name as part of a device policy, and it overrides any local rename. Change the name in the management tool’s policy, not on the local machine.

Is renaming my PC the same as renaming my user account?

No. The PC name is the computer’s network identity (what other devices see). The user account name is your display name on the login screen. They are changed in different places (Settings → About vs. Settings → Accounts) and affect different things (network discovery vs. sign-in).

How do I rename my PC from the command line?

PowerShell: Rename-Computer -NewName "NEW-NAME" -Restart. Command Prompt: wmic computersystem where name="%computername%" rename "NEW-NAME" (deprecated). Both require an elevated session (run as Administrator).

Will renaming my PC break anything?

On a home network: shared folders and network printers need to be re-discovered using the new name, but nothing breaks permanently. On a domain: using the wrong method (Settings instead of advanced) can break the domain trust. On Azure AD/Entra: the device object needs to be updated. Always use the advanced method for managed PCs.

How do I find my current PC name in Windows 11?

Settings → System → About → “Device name.” Or open a Command Prompt and run hostname. Or press Win+Pause (opens System → About). Or right-click This PC → Properties. All four show the same name.

Can I rename a PC that is joined to Azure AD / Microsoft Entra ID?

Not from the local Settings app — the rename button is grayed out because the Entra ID tenant manages the device identity. Use the advanced method (sysdm.cpl) if you have local admin rights and the tenant allows local renames, or contact the Entra ID administrator to rename the device object.

Does renaming my PC change my user profile folder?

No. The user profile folder (C:\Users\YourName) stays the same when you rename the PC or the user account. The folder name is set when the account is created and does not follow subsequent renames. The mismatch is cosmetic and harmless.

How often can I rename my PC?

As often as you want — there is no limit or cooldown. Each rename requires a restart, and domain-joined machines generate a new Active Directory event each time. Frequent renames on a domain are noisy for the IT team but functionally harmless. On a home network, the only cost is re-learning the new name on other devices.

📚 Keep Reading

  • PC “doesn’t meet requirements” for Windows 11? The TPM and CPU checks that block the upgrade — and the four legitimate ways past them.
    The requirements fix →
  • Windows switched to the wrong language? The four separate language settings, the login screen fix, and the Single Language trap.
    The language guide →
  • Windows notifications driving you crazy? The five hidden notification types, the master-toggle trap, and the Do Not Disturb rules nobody explains.
    The notifications guide →
  • Someone can use your camera before login? The lock screen camera policy, the Group Policy, and the Registry fix.
    The lock screen camera guide →
  • Want to learn AWS without paying a cent? The complete series from S3 to security services — every post free, in reading order.
    The full AWS library →

Revision note. Updated September 2026, covering Windows 11 25H2 (build 26200.9445) and Windows 10 22H2. The PC rename methods (Settings, sysdm.cpl, PowerShell) have been stable across all Windows versions. The 15-character NetBIOS limit is a permanent architectural constraint, not a version-specific behavior. If you have been staring at a grayed-out rename button and wondering what you did wrong, take heart: you did nothing wrong — your PC is managed by a domain or an Entra ID tenant, and now you know exactly which method reaches the switch that Settings won’t show you.

Related