Software & OS

Hidden Files and Folders Control Panel: Show Them on Windows

To show hidden files and folders on Windows 11, open File Explorer and select View, then Show, then Hidden items. On Windows 10, go to View, then Options, then Change folder and search options, open the View tab and select Show hidden files, folders, and drives.

People often search for this as "hidden files and folders control panel", because older guides sent you through Control Panel's Folder Options. Microsoft's current instructions for both Windows versions start from File Explorer instead, and I could not confirm a Control Panel route in Microsoft's documentation, so this article sticks to the steps Microsoft publishes.

Show hidden files and folders on Windows 11

These are the steps from Microsoft Support for Windows 11:

  1. Open File Explorer from the taskbar.
  2. Select View, then point to Show.
  3. Select Hidden items.

The change takes effect right away. Hidden items now appear in every folder you open, not only the one you were in. To turn it off, open the same menu and select Hidden items again.

Show hidden files and folders on Windows 10

Windows 10 uses an options dialog rather than a menu toggle. Microsoft's steps:

  1. Open File Explorer from the taskbar.
  2. Select View, then Options, then Change folder and search options.
  3. On the View tab, under Advanced settings, select Show hidden files, folders, and drives.
  4. Select OK.

Despite the "folder" wording, this is a File Explorer option, not a per-folder setting that you set from the folder you opened it in. To hide the items again, return to the same tab and choose the option that does not show hidden files, folders and drives.

What "hidden" actually means

A hidden file is an ordinary file with the Hidden attribute set. The attribute does not encrypt anything, restrict who can open it, or move it somewhere else. It only tells File Explorer not to list the item by default. That is why you can still open a hidden folder by typing its full path into the address bar, even while hidden items are switched off. My article on showing the ProgramData folder uses that fact for one specific hidden folder.

When hidden items are shown, File Explorer displays them slightly faded, so you can still tell which ones carry the attribute. If an item looks faded and you did not expect it, that is the Hidden attribute at work.

Check a folder's hidden attribute with attrib

The attrib command displays, sets or removes attributes on files and directories. Run in Command Prompt with a path and no other parameters, it shows the attributes of that item. Add /d so it applies to directories:

attrib C:\Users\alex\AppData /d

Example output, which will differ on your PC:

     H        C:\Users\alex\AppData

An H in the left column means the Hidden attribute is set. The parameters in Microsoft's reference are +h and -h for the Hidden attribute, and +s and -s for the System attribute. For example, attrib -h followed by a path clears the Hidden attribute on that item, and attrib +h sets it.

Microsoft's page gives one warning that catches people out: if a file has the System or Hidden attribute set, you must clear that attribute before you can change any other attributes on it. If an attempt to set read-only on a hidden file appears to be ignored, clear Hidden first.

Use /s to apply a command to matching files in the current directory and all of its subdirectories. Be careful with that switch combined with -h. It would unhide every matching item underneath, including ones that other software hid on purpose.

List hidden files in PowerShell

PowerShell's Get-ChildItem skips hidden items by default. Microsoft's reference says that to get hidden items you use the -Force parameter. It allows the cmdlet to get items that otherwise can't be accessed by the user, such as hidden or system files, and it does not override security restrictions.

Get-ChildItem -Path C:\Test -Force

To list only the hidden items, use -Hidden:

Get-ChildItem -Path C:\Test -Hidden

Example output, from Microsoft's documentation style, with a hidden file marked by h in the Mode column:

Mode                LastWriteTime         Length Name
----                -------------         ------ ----
-a-h--        2/12/2019     15:52             22 hiddenfile.txt

The letters in the Mode column are l for link, d for directory, a for archive, r for read-only, h for hidden and s for system. That makes Mode a quick way to see the attributes of every item in a folder at once.

You can also filter by attribute. Get-ChildItem -Attributes Hidden returns only hidden items, and -Attributes H is the abbreviated form. To combine conditions, Microsoft documents ! for NOT, + for AND and , for OR, with no spaces between an operator and its attribute. To find hidden directories only, use -Attributes H+D.

Hidden files versus protected operating system files

Windows has two separate attributes here. Hidden is what the options above are about. System is a different attribute, and attrib and Get-ChildItem both treat the two as separate: attrib has +s and -s for System and +h and -h for Hidden, and Get-ChildItem has separate -Hidden and -System parameters. Microsoft's attrib page applies the same warning to both. The Microsoft Support steps cited here do not describe any other File Explorer option, so I am not covering one. If your Windows 10 dialog shows more options than described above, read their labels before changing them.

What you will see once hidden items are on

Showing hidden items does not add files. It reveals ones that were there all along, and many of them belong to software you use. Typical places include per-user application data and shared program data, which sit under the system drive. Treat anything you do not recognise as belonging to a program. Looking is harmless. Deleting a file in there can reset or break the program that owns it.

  • Open, don't edit. Opening a hidden folder to read its contents changes nothing.
  • Copy before changing. If you are troubleshooting a program and want to reset its settings, copy its folder to another location first.
  • Uninstall rather than delete. If a hidden folder belongs to a program you no longer use, remove the program from Settings and check whether anything is left.

If the setting does not stick or hidden items still do not show

  1. Refresh the window. Press F5 in the folder, or close and reopen File Explorer.
  2. Check the location. The item you want may be on a different drive or in a different user profile from where you are looking.
  3. Managed PC. On a work or school computer, an administrator can control folder view settings. If the option switches back or is greyed out, that is a policy, and only the administrator can change it. Opening the item by its full path in the address bar still works.
  4. Confirm the attribute. Run attrib on the item. If there is no H, the item is not hidden, and it may be missing for another reason, such as being in a different folder than you expect.

Frequently asked questions

Is the hidden files setting in Control Panel or File Explorer?
Microsoft's current instructions for Windows 11 and Windows 10 both start in File Explorer, not Control Panel. On Windows 11 it is View, then Show, then Hidden items. On Windows 10 it is View, then Options, then Change folder and search options, then the View tab.
Does showing hidden files change the files themselves?
No. The setting only changes what File Explorer lists. The Hidden attribute on each item stays as it was, and turning the option off hides those items from the listing again.
How do I show hidden files in PowerShell?
Add the -Force parameter to Get-ChildItem. Microsoft's reference says it gets items that otherwise can't be accessed by the user, such as hidden or system files. To list only hidden items, use the -Hidden parameter.
Why are hidden files and folders faded in File Explorer?
They keep their Hidden attribute even when you choose to show them. File Explorer draws them slightly faded compared with normal items so you can tell them apart.

Sources