Why Is There a Lock (Padlock) Icon on Some Files and Folders in Windows 7?

Ever wondered why there is a lock icon overlay appearing for some of your files and folders, as in the image below:

And for some folders:

I had a reader ask about this recently. Upon searching the web I found the explanation I needed, from Raymond Chen’s blog. The lock (padlock) overlay icon appears for files/folders which are private, but located under a non-private directory. Per Raymond Chen [MS]:

A private item is an item where the only user account with access is you.¹ You create one of these, for example, by going to the sharing wizard and saying Share with: Nobody. To avoid clutter, the overlay is shown only when there is a transition from non-private to private. (Otherwise you’d have a lock overlay on everything in your Documents folder, for example.)

¹Even though you are the only user account, there can still be access granted to groups and non-user accounts such as the Administrators group and the SYSTEM account.

Checking the properties of a file with padlock symbol and viewing the Security tab, it looks like this:

Tip: Quickly Make a File or Folder Private in Windows 7

If you quickly want to make a file or folder private, right-click on a file/folder, click Share with and choose Nobody. This displays that file or folder with padlock symbol, if they’re not already contained in a private folder.

Check out our other articles on Icon Overlays.

About the author

Ramesh Srinivasan founded Winhelponline.com back in 2005. He is passionate about Microsoft technologies and has a vast experience in the ITeS industry — delivering support for Microsoft's consumer products. He has been a Microsoft MVP [2003 to 2012] who contributes to various Windows support forums.

13 thoughts on “Why Is There a Lock (Padlock) Icon on Some Files and Folders in Windows 7?

  1. I simply went to the “Include in Folder” button at the top of the folder, and placed them back into the original folder. The locks disappeared.

  2. Just delete the registry key:


    and the lock icons are gone.

  3. Thank you so much for this! I’ve been trying to figure this out for ages, and you made it so easy.

  4. I’ve successfully fixed my locked files. They were not only locked, my admin account couldn’t even see them. As IrfanView has put my wallpapers into some sort of virtual folder, because it hadn’t had proper rights to store it where I told it to. So the files were actually in the following directory:
    Only one user had access to his own virtual directory, that added files “virtually” to a public folder. Hence this user has seen the files’ icons with a lock, and no other user has seen these files at all. Check out the VirtualStore folder if you have similar problems.

  5. is it possible to remove this feature? can I authorize MYSELF once and forever to have all MY files on MY computer without any padlock?

  6. I had this issue with desktop icons. Turned out my Desktop folder had been marked as read-only.

    One other change happened while troubleshooting. I had uninstalled QuickBooks and some QB user had remained. I removed that user from having any access to my desktop.

  7. Unfortunately, Raymond Chen’s understanding is incomplete. In Windows 7 Professional x64 I have the lock icon overlaid on several folders which are not private and to which more than one user and group have access.

    Furthermore, a web search on this topic reveals many postings from Microsoft employees (MSFT) and MVPs that offer varying theories for the lock overlay.

    It appears that this is yet another Microsoft mystery that no one can explain conclusively.

    Finally: The explanation provided in this blog post seems to mix ACEs (access control entries) with network sharing.

  8. And to remove the padlock icon you can share it using the Sharing Wizard and unshare it using Advanced Sharing Permissions. The Sharing Wizard is so useless in Windows Vista/7.

Comments are closed.