Quick Links

If you log in to Windows with a Microsoft account, the Windows 10 sign in screen shows the name and email address for the last user that signed in. It's convenient, but if you use your computer in public or leave it unattended, you might not want people being able to see that personal information. Here's how to hide it.

The lock screen itself does not show your sign in information, but with just a click or tap, anyone can reveal the sign in screen that does. By default, the sign in screen shows your name and email address (or username if you're not using a Microsoft account) and whatever picture you've associated with your account. If this is information you'd rather not have passers-by privy to, we've got the fix.

Hide Your Email Address With a Simple Setting

If you don't mind people seeing your user name and picture, but just want to hide your email address from the sign in screen, the Windows 10 Anniversary Update finally added a way to do just that. Fire up Settings by pressing Windows+I. On the main Settings screen, click "Accounts."

wls_a

On the Accounts screen, click "Sign-in options" on the left-hand side.

wls_b

On the right-hand side, scroll down toward the bottom and turn off the "Show account details (e.g. email address) on sign-in screen" option.

wls_c

That setting will remove your email address from the sign in screen, but leave your name and picture in place. If you want to also remove your name and picture, you'll need to dive into the Registry or--if you have Windows 10 Pro or Enterprise--use the Group Policy Editor. Read on to see how that all works.

Home Users: Hide Extra Personal Information on the Sign In Screen by Editing the Registry

If you have Windows 10 Home, you will have to edit the Windows Registry to make these changes. You can also do it this way if you have Windows 10 Pro or Enterprise, but just feel more comfortable working in the Registry. (If you have Pro or Enterprise, though, we recommend using the easier Group Policy Editor, as described in the next section.)

Related: How to Backup and Restore the Windows Registry

Standard warning: Registry Editor is a powerful tool and misusing it can render your system unstable or even inoperable. This is a pretty simple hack and as long as you stick to the instructions, you shouldn’t have any problems. That said, if you’ve never worked with it before, consider reading about how to use the Registry Editor before you get started. And definitely back up the Registry (and your computer!) before making changes.

To get started, open the Registry Editor by hitting Start and typing “regedit.” Press Enter to open Registry Editor and give it permission to make changes to your PC. In the Registry Editor, use the left sidebar to navigate to the following key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

In the list of items on the right, find the dontdisplaylastusername value and double-click it.

wls_reg_lastusername

Set the value to 1 in the "Value data" box and then click OK.

wls_reg_lastusername_value

Next, you're going to create a new value inside the System key. In the left pane, right-click the System folder icon and choose New > DWORD (32-bit) Value. Name the new value DontDisplayLockedUserID.

wls_reg_lastuserid

Now, you’re going to modify that value. Double-click the new DontDisplayLockedUserID value and set the value to 3 in the “Value data” box.

wls_reg_lastuserid

Click OK, exit Registry Editor, and then restart your computer to see the changes. When you sign back in, you should see no user picture or name. You'll have to type your user name (or email address if you're using a Microsoft account) and password to log in every time.

wls_hidden_logon

If you change your mind and want to show this information on your login screen again, follow the same instructions, but set both the dontdisplaylastusername and DontDisplayLockedUserID values to 0.

Download Our One-Click Registry Hack

wls_hacks_folder

If you don’t feel like diving into the Registry yourself, we’ve created two downloadable registry hacks you can use. One hack hides personal info from the sign in  screen and the other restores the default settings and shows that info again. Both are included in the following ZIP file. Double-click the one you want to use, click through the prompts, and then restart your computer.

Logon Screen Personal Info Hacks

Related: How to Make Your Own Windows Registry Hacks

These hacks are really just the System key, stripped down to the two values we described above, and then exported to a .REG file. Running the "Hide Personal Info at Logon" hack changes the dontdisplaylastusername value to 1. It also creates the DontDisplayLockedUserID value and sets it to 3. Running the "Show Personal Info at Logon" hack sets both values back to 0.  And if you enjoy fiddling with the Registry, it’s worth taking the time to learn how to make your own Registry hacks.

Pro and Enterprise Users: Hide Extra Personal Information on the Login Screen with Local Group Policy Editor

If you’re using Windows 10 Pro or Enterprise, the easiest way to hide your name and picture on the sign in screen information is by using the Local Group Policy Editor. It's a pretty powerful tool, so if you've never used it before, it’s worth taking some time to learn what it can do. Also, if you’re on a company network, do everyone a favor and check with your admin first. If your work computer is part of a domain, it’s also likely that it’s part of a domain group policy that will supersede the local group policy, anyway.

In Windows 10 Pro or Enterprise, hit Start, type gpedit.msc, and press Enter. In the Local Group Policy Editor, in the left-hand pane, drill down to Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options. On the right, find the “Interactive Logon: Display user information when the session is locked” item and double-click it.

wls_gpedit

On the drop-down menu in the window that opens, choose "Do not display user information" and then click OK.

wls_hide_username

Back in the same folder in the Local Group Policy Editor, find the "Interactive logon: Do not display last user name" item and double-click it.

wls_gp_loginname

In the window that opens, select Enabled and then click OK.

wls_hide_lastname

Exit the Local Group Policy Editor and restart your computer to test the changes. If at any time you want to show the user information on the login screen again, just follow the same procedure and reverse the two changes you made.

And there you have it! If you'd rather not have your personal info shown on the login screen and don't mind typing your username or email address each time you log in, it's an easy change to make.