GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Metrix187/paws-off-my-gdid: view, back up, rotate, and reissue the windows device id microsoft won't let you turn off ♡

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/ISSUE_TEMPLATE
.github/ISSUE_TEMPLATE
 
 
assets
assets
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
gdid.cmd
gdid.cmd
 
 
gdid.ps1
gdid.ps1
 
 

Repository files navigation

gdid ♡

a soft little tool for the windows device id you can't turn off. look at it, back it up, move it, without setting your registry on fire.

the gdid menu: a status readout showing both device ids, then the numbered interactive menu

example output — those ids are fake, yours never leave your machine ♡


Here's the part nobody mentions when you first sign into Windows with a Microsoft account.

Somewhere in that setup, quietly, Windows stamps your machine with a name tag. It's called the GDID (Global Device Identifier), a persistent per-device id that rides along on telemetry, the Store, activation, and push notifications. It doesn't roll when you clear cookies. It doesn't reset when you reinstall an app. It just... follows the machine around. You never picked it. You were never asked.

Most people had no idea it existed until July 2026, when it surfaced in an FBI criminal complaint against an alleged hacker and everyone went "wait, what id?" Microsoft confirmed it's real, and confirmed the uncomfortable bit: you can't fully turn it off. You can limit what it captures. You can rotate what your device presents. There's no off switch.

So this is the next best thing. If you can't delete the name tag, you can at least swap it for a fresh one now and then, carefully, with a full backup, knowing exactly what changed. That's all gdid is: a gentle way to look at yours, save it, and move it. Every step logged out loud, every key it touches saved first, everything reversible. You should be able to trust something with your registry, and this one shows all its work. >w<


quickstart

git clone https://github.com/Metrix187/paws-off-my-gdid
cd paws-off-my-gdid

Easiest first: double-click gdid.cmd and you get a menu. That's the whole thing, honestly. It prefers pwsh (PowerShell 7) and falls back to Windows PowerShell 5.1, so it works on a stock machine.

Prefer to type? Start by looking, never touching:

# see what your device currently reports, changes nothing
.\gdid.ps1 -Status

# print the exact plan for a real reissue, touch nothing (no admin prompt either)
.\gdid.ps1 -Reissue -DryRun

# the real thing (asks for admin, backs up first)
.\gdid.ps1 -Reissue

First time? Run -Status, then -Reissue -DryRun and read the plan it prints. Once you're comfortable, drop the -DryRun. Start with -Status. always start with -Status :3


what it can do

mode what happens admin? signs you out?
(no args) / double-click gdid.cmd interactive menu no no
-Status both LIDs, token DeviceId count, your linked Microsoft account, admin state, whether the box is domain/AzureAD-managed, and your backup count no no
-Backup snapshot every relevant registry key to backups\<timestamp>\ no no
-Rotate gentle, local-only spoof of the HKCU LID plus its matching Token DeviceIds. no sign-out. see the caveat below no no
-Reissue the real one, clears the SYSTEM device-registration keys and makes Windows re-register for a fresh server-issued GDID yes (self-elevates) yes, until you re-auth
-Set <16 hex> set a specific LID locally no no
-Remove delete the HKCU LID value; Windows regenerates one on its own no no
-Restore [-File x] re-import the newest backup (or one you name with -File) and bounce the services yes (bounces services) maybe
-DryRun (alias -WhatIf) print the exact plan, change nothing, never trigger elevation no no
-Force skip the prompts / override the managed-box guard. use with intent — —

rotate vs reissue, the one thing worth understanding

There are two ids, and they live in different places:

  • the per-user LID in HKCU\SOFTWARE\Microsoft\IdentityCRL\ExtendedProperties (value name LID)
  • the SYSTEM device-registration LID over in the HKU\.DEFAULT hive, the one the wlidsvc identity service keeps and reports up to Microsoft

-Rotate only touches the first one. It's quiet, reversible, needs no admin. The catch: Microsoft's servers still know your old id, so they can re-sync it right back onto you. Think of rotate as a local costume, not a new identity. It's a nudge, not a reset.

-Reissue touches the second one, the one that gets reported to Microsoft. That's the id that matters, and that's why reissue is the real move.


the reissue, step by step

Because you deserve to know exactly what a tool is doing before it touches HKU\.DEFAULT:

  1. backs everything up first. Every key it's about to change goes to backups\<timestamp>\ before a single write. always.
  2. clears the SYSTEM device-registration keys: PushNotifications\<lid>, DeviceInfo\DeviceVersionRepresentation, DeviceIdentities\S-1-5-18, and the matching .DEFAULT Token entries.
  3. stops, then starts wlidsvc + WpnService so Windows re-registers the device from a clean slate.
  4. polls up to 120 seconds waiting for Microsoft to hand back a fresh, server-issued GDID.
  5. bounces cdpsvc + CDPUserSvc* so the Connected Devices Platform picks up the new identity.

Heads up: this signs you out of the Store, Xbox, OneDrive, Microsoft 365, and Teams until you sign back in. That's not a bug, it's the device genuinely re-registering. Keep your passwords handy. ♡


the safety story

I wrote this because the existing tool for the job made me nervous, so the guardrails are the whole point. Poking your registry blind is how you end up reinstalling Windows at 3am.

  • it backs up before it breaks. Every key it will touch is snapshotted to backups\<timestamp>\ before any change. All of it undoable with -Restore.
  • -DryRun is honest. It prints the real plan and changes nothing, and it won't trigger the UAC elevation, so you can preview a reissue without reaching for admin.
  • the managed-box guard. If your machine is domain-joined, AzureAD-joined, or enterprise-enrolled, reissue refuses to run unless you pass -Force. Reissuing on a managed box can break SSO / AD sign-in, and that's a bad afternoon I'd rather you not have. If this is your work laptop, read that twice. :3
  • loud logging. Every step prints [ok] or [!!]. No swallowed errors, no SilentlyContinue quietly hiding a failed write. If something breaks you'll see which thing, not a silent shrug.

If a reissue ever goes sideways:

.\gdid.ps1 -Restore

grabs your newest backup, re-imports it, and bounces the services. Pass -File if you want a specific snapshot instead of the latest.


being honest with you

This does not make you anonymous. I need you to hear that plainly.

Microsoft still holds your old id server-side, tied to your account. Rotating or reissuing changes what your device presents from here on. It does nothing retroactive, and it unlinks you from exactly none of the history already logged against the old id. If someone's already tied that id to your name, a shiny new one doesn't undo it.

What this buys you is a clean break in the forward direction, on your terms, with a paper trail you control. That's a real and useful thing. It just isn't a magic invisibility cloak, and anyone who tells you a registry edit makes you a ghost is selling something. Use it because you'd rather your machine stop carrying one permanent, unchangeable serial around, not because you think it makes you disappear. It won't. ♡


why a rewrite (prior art)

This is a safer rewrite of gd03gd031/Windows-GDID-Changer. That script does the same server reissue, and credit where it's due, it's what showed me the mechanism worked. But:

  • no backup, so if it breaks something there's no undo
  • -ErrorAction SilentlyContinue on everything, so every failure is invisible
  • no dry-run; you find out what it does by letting it do it
  • it only warns about managed machines in its readme instead of checking, so nothing stops you breaking SSO on a work laptop
  • HKCU only, so it never sees the SYSTEM-side registration that gets reported

gdid adds backup + restore, a real dry-run, the managed-box guard that inspects the box, honest per-step error reporting, the CDP service handling, and awareness of both hives instead of just the user-side one. Same core idea, a lot more care around it. If you just want the value flipped and you like living dangerously, the original is fine. If you'd rather be able to walk it back, stay here.


requirements

  • Windows 10 or 11
  • PowerShell 5.1 or 7 (the .cmd launcher sorts this out for you)
  • -Reissue needs admin, and -Restore needs it too since it bounces services. Both self-elevate, so just say yes to the prompt. Everything else runs fine as plain you.

Further reading, if you want the background and not just my word for it:

  • ghacks: Microsoft confirms the GDID can't be disabled, documented in the FBI filing
  • windows latest: you can't fully disable the GDID, but these settings limit what it captures

a small ask before you run it

Read the code. It's one PowerShell file and it touches your registry. You should never run something like that on trust alone, not mine and not anyone's. -DryRun is right there so you can watch it think before it acts. Take it slow. ♡


made with care by sky (@Metrix187) · MIT licensed · do whatever you like with it, just don't blame me if you -Force past the guard on your work laptop and lock yourself out of AD. I warned you twice. >w<

About

view, back up, rotate, and reissue the windows device id microsoft won't let you turn off ♡

Topics

device-idgdidmicrosoft-accountpowershellprivacytelemetrywindowswindows-11

Resources

Readme
License
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.