Your machine has a name like DESKTOP-4KJ8P2Q, you never chose it, and it turns up in places you did not expect.
It is on every network you join, on every Bluetooth pairing screen, in your Microsoft account device list, and on the screen of anyone trying to send you a file. Microsoft treats changing it as a security step, which surprises most people.
I read what this machine reports before writing, and the two registry values that decide whether a rename has actually taken effect.
Where the default name comes from
Worth knowing, because nobody remembers choosing it.
⭐ Microsoft documents the rename route and not the naming rules, so where the default comes from is ours: Windows setup generates DESKTOP- and seven characters. Some makers ship LAPTOP- instead.
⚡ You are never asked. Consumer setup offers no name field at all.
⚠️ I read this machine's name and it is not on that pattern. So it was renamed at some point. Yours probably was not.
⛔ The word before the hyphen is not a fact about your machine. Most laptops are called DESKTOP, because that is simply what setup writes.
Microsoft's own reason to change it
Three reasons published, and the middle one is the one nobody expects.
⭐ Microsoft states it on its rename page under Security: "default device names might provide hints about the device type or user, which could be a security risk".
⚡ The first reason is Organization: "if you use multiple devices with your Microsoft account, renaming them can help clearly identify and differentiate between them".
⚠️ The third is Management, for workplaces with a naming convention.
⛔ That security line is Microsoft's, not ours. A machine called after a person tells a stranger on the same Wi-Fi who owns it.
Who actually sees it
Five places, and the last one catches people out.
⚡ Every network you join. File sharing, printers and any device browsing the network.
⭐ Bluetooth pairing screens, on the phone or headphones you are pairing with.
⚠️ Your Microsoft account device list, at your account page online.
⛔ And the pairing screen when you move to a new PC. The old machine shows the new one's name and you have to recognise it.
The rename itself, in Microsoft's words
Four clicks, and one of them is the part people skip.
⭐ Microsoft's route: "In the Settings app on your Windows device, select System > About" then "Select Rename this PC".
⚡ Type the name and choose Next. Microsoft then offers "Restart now or Restart later".
⚠️ The restart is not optional, it is deferred. Until you take it, the old name is still the one on the network.
⛔ Microsoft's page gives no rules about length or allowed characters at all. ⚠️ Keep it short, plain and hyphen-free and you will not meet the limits it does not describe.
How to tell whether the rename actually took
Ours, and it is the check that settles the "I renamed it and nothing changed" complaint.
⚡ Windows keeps two copies of the name. One you set. One currently in use.
⭐ They live in the registry as ComputerName and ActiveComputerName. While a rename is waiting for a restart, they differ.
⚠️ The network name is stored twice too, as Hostname and NV Hostname, in the TCP/IP parameters. Same rule.
⛔ On this machine both pairs match, which is what no rename pending looks like. If yours differ, you have not restarted yet.
What a rename does not break
Four things people worry about, and none of them is a problem.
⭐ Your files are untouched. The name is a label, not a location.
⚡ Your Microsoft account is fine, and the device list updates when the machine next checks in.
⚠️ Installed programs do not care, with the rare exception of licences tied to a machine name.
⛔ Shared folders keep working, but anyone with a saved shortcut to the old name will need it again.
Picking one that is not a mistake
Four rules, and the first two are the ones that matter.
⚡ Do not use your own name. That is the exact hint Microsoft's security line is about.
⭐ We could not find a length rule on Microsoft's page. Keep it under fifteen characters anyway, which is the old NetBIOS limit.
⚠️ Letters, numbers and hyphens only. Never spaces. A space causes faults that are hard to trace.
⛔ And make it tell two of your own machines apart. That is the whole point when Bluetooth shows you a list.
Status: name state and rename mechanics read here 29 August 2026, on Windows 11 Home 25H2, against Microsoft's own rename guidance. ⛔ Nothing was renamed or changed, and the machine's actual name, its account name and every other identifier are withheld.
How do I change my PC name in Windows 11?
Microsoft's route is Settings, System, About, then Rename this PC. Type the new name, choose Next, then restart. Until you restart, the old name is still the one shown on the network and to anything pairing with you.
Why is my PC called DESKTOP with random letters?
Because Windows generated it at setup and never asked you. The prefix is a guess at your hardware type and the seven characters after it are random. Microsoft's own page treats leaving it as a small security matter, because a default name still hints at the device type.
Does renaming my PC delete anything?
No. The name is a label. Files, programs and your Microsoft account are unaffected. The only thing that breaks is a saved shortcut somebody else has to the old network name, and they can just use the new one.
I renamed my PC but it still shows the old name
You have not restarted. Windows stores the name twice, as the name you set and the name in use, and the second only catches up at a restart. Until then, everything on the network still sees the old one.
The Short Version
- Windows setup generates DESKTOP- plus seven characters, whatever the machine is.
- Microsoft lists changing it under Security, because a default name hints at the device.
- The name shows on every network, on Bluetooth pairing screens and in your account.
- Microsoft's route is Settings, System, About, Rename this PC.
- The restart is deferred, not optional. The old name is live until you take it.
- Windows keeps the name twice, and the pair differs while a rename is pending.
- On this machine both pairs match, which is what nothing pending looks like.
- Keep it under fifteen characters, no spaces, and never your own name.
Where to Next
Look at what your machine is called, in Settings, System, About.
If it is still the DESKTOP- default, change it, and pick something that is not your name.
Take the restart straight away rather than deferring it, or nothing on the network changes.
Then check your Microsoft account device list, because that is where the old name lingers longest.
And if a rename of yours broke a licence or a shared folder, tell me which program below. Nobody has published that list, and yours would start it.

Isaac Smith is the founder and editor of PC Glance, a website that covers computers, laptops, and technology. He is a tech enthusiast and a computer geek who loves to share his insights and help his readers make smart choices when buying tech gadgets or laptops. He is always curious and updated about the latest tech trends.