Hide your email address on the sign-in screen — via Microsoft Learn
With a Microsoft account, the sign-in screen can show your email address to anyone who looks at the PC. This policy stops account details being shown there and stops users turning that option back on.
Restart the computer
Group Policy
Open gpedit.msc (Pro, Enterprise and Education only) and go to:
Computer Configuration > Administrative Templates > System > Logon > Block user from showing account details on sign-in
Registry equivalent
Double-click a .reg file and confirm to merge it. Right-click → Edit first if you want to read it, which is always a good idea with any .reg file from the internet.
Apply
Windows Registry Editor Version 5.00
; Oddbyte.Me: Hide your email address on the sign-in screen
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System]
"BlockUserFromShowingAccountDetailsOnSignin"=dword:00000001Undo
Windows Registry Editor Version 5.00
; Oddbyte.Me: undo Hide your email address on the sign-in screen
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System]
"BlockUserFromShowingAccountDetailsOnSignin"=-Same thing from a command prompt
Run in an administrator Command Prompt or Terminal.
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v "BlockUserFromShowingAccountDetailsOnSignin" /t REG_DWORD /d 1 /fUndo:
reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v "BlockUserFromShowingAccountDetailsOnSignin" /fMicrosoft's security baseline checks for this value set to 1. Without the policy, each user can choose whether account details show (Settings → Accounts → Sign-in options).
Sources
- Policy CSP - ADMX_Logon: BlockUserFromShowingAccountDetailsOnSignin — by Microsoft Learn
- Windows security baseline — Block user from showing account details on sign-in — by Microsoft Learn
- Administrative Templates (.admx) for Windows 11 2025 Update (25H2) — ADMX policy definitions — by Microsoft
- Source reviewed
- 2026-11-02
- Link checked
- 2026-11-02
- Tested hands-on
- Not by Oddbyte.Me
Oddbyte.Me hasn't tried this on every Windows build, so keep the undo handy.