How to Show Hidden Files in Windows 11 (4 Easy Ways + Pen Drive Fix)

You can show hidden files in Windows 11 from File Explorer in a few clicks. Windows hides some files and folders by default, such as the AppData folder and system files. Sometimes your own files are hidden too, for example after a virus on a pen drive. This guide shows every way to see them, how to unhide them for good, and what to do when they still do not show.

Quick answer: show hidden files in Windows 11

Open File Explorer (press Windows + E), click View → Show → Hidden items. Hidden files now appear with a faded icon. Click the same option again to hide them. This is the method Microsoft gives on its support page.

Method 1: Show hidden files in Windows 11 with File Explorer

  1. Press Windows + E to open File Explorer.
  2. In the top bar, click View.
  3. Hover over Show at the bottom of the menu.
  4. Click Hidden items. A tick appears next to it.

When you show hidden files in Windows 11 this way, the setting applies to every folder, not only the one you have open. It stays on until you turn it off.

Method 2: Windows Settings

  1. Press Windows + I to open Settings.
  2. Go to System → Advanced. On older Windows 11 versions this page is called For developers (under Privacy & security or System, depending on version).
  3. Under File Explorer, turn on Show hidden and system files.

This switch shows hidden files in Windows 11 and also protected system files. If you only want your own hidden files, Method 1 is cleaner.

Method 3: Folder Options (more control)

  1. Open File Explorer, click the three dots (…) in the top bar, then Options.
  2. Open the View tab.
  3. Under Hidden files and folders, select Show hidden files, folders, and drives.
  4. Optional: untick Hide protected operating system files (Recommended). Windows shows a warning. Click Yes only if you need to see system files.
  5. Click Apply, then OK.

While you are here, you can also untick Hide extensions for known file types. Seeing extensions such as .exe and .lnk helps you spot fake files on a pen drive.

Method 4: Command Prompt and PowerShell

These commands show hidden files in CMD and PowerShell as a list. They do not change anything.

In Command Prompt, go to a folder and list everything, including hidden and system files:

dir /a

List only hidden files:

dir /a:h

In PowerShell or Windows Terminal:

Get-ChildItem -Force

How to unhide files in Windows 11 permanently

Showing hidden items only changes what you see. The files are still marked “hidden”. To remove that mark from one file or folder:

  1. Turn on hidden items (Method 1) so you can see the file.
  2. Right-click the file or folder and choose Properties.
  3. On the General tab, untick Hidden.
  4. Click Apply. For a folder, choose Apply changes to this folder, subfolders and files, then click OK.

If the Hidden box is greyed out, the file is also marked as a system file. Use the attrib command in the next section.

How to show hidden files in pen drive or memory card

A common problem: you plug in a pen drive and see only shortcuts, or it looks empty but still shows space used. This often happens because malware (often called a “shortcut virus”) marked your real files as hidden and system files and added shortcuts that run the malware.

  1. Do not open the shortcuts.
  2. Open File Explorer, right-click the pen drive, choose Show more options → Scan with Microsoft Defender. Remove anything it finds.
  3. Note the drive letter (for example E:).
  4. Click Start, type cmd, right-click Command Prompt and choose Run as administrator.
  5. Run this command. Replace E: with your drive letter:
attrib -h -r -s /s /d E:\*.*
  1. Wait until the prompt returns. On a large drive this can take a few minutes.
  2. Open the drive again. Your files and folders should be visible. Delete the leftover shortcut (.lnk) files.
  3. Copy your files to the PC, then format the pen drive to make sure it is clean.

What the command does: -h removes “hidden”, -s removes “system”, -r removes “read-only”, /s includes all subfolders and /d includes folders too. See Microsoft’s attrib command reference.

Important: run this only on a pen drive, memory card or your own data folder. Never run it on C:\. Removing the system mark from Windows files can cause problems.

Practical examples

  • Find the AppData folder: turn on Hidden items, then open C:\Users\YourName. Or press Windows + R, type %appdata% and press Enter. That opens AppData\Roaming even with hidden items off.
  • Recover college files from a friend’s pen drive: scan with Microsoft Defender, run the attrib command, copy the files, then format the drive.
  • Clean up space: after showing hidden files, you may see large folders inside AppData from apps you removed. Check what a folder belongs to before deleting it.
  • Hide a private folder from casual view: right-click → Properties → tick Hidden. This is not security. Anyone who turns on Hidden items can see it.

Troubleshooting

Hidden items is on, but the file still does not show

  • The file may also be a system file. Untick Hide protected operating system files in Folder Options (Method 3), or use the attrib command on that folder.
  • Press F5 to refresh the folder.
  • If the file was in OneDrive, it may be online-only or not synced yet. Check the OneDrive icon in the taskbar.
  • The file might be deleted, not hidden. Check the Recycle Bin.

The setting turns itself off

This can happen on office PCs where the IT team controls Explorer settings through Group Policy. Ask them. On a home PC, run a full scan with Microsoft Defender, because some malware changes this setting.

attrib says “Access denied” or “Parameter format not correct”

  • Open Command Prompt as administrator.
  • Check the spacing and that the drive letter is right: attrib -h -r -s /s /d E:\*.*
  • If the pen drive is write-protected or failing, attrib cannot change it. Copy what you can and replace the drive.

The View menu has no “Show” option

The window may be too narrow. Maximise File Explorer, or use Folder Options (Method 3) instead.

Common mistakes

  • Deleting files just because they are hidden. Files such as desktop.ini, pagefile.sys and hiberfil.sys are needed by Windows.
  • Leaving protected system files visible. Turn that option back on when you are done, so they are not deleted by mistake.
  • Opening shortcuts on an infected pen drive. This can run the malware again.
  • Running attrib on the C: drive. Use it only on pen drives, memory cards or your own folders.
  • Thinking “Hidden” protects private files. Use a password-protected account or BitLocker (on supported editions) for real privacy.

Related: Fixes for a slow Windows 11 laptop and best free software for Windows 11.

FAQ

How do I show hidden files in Windows 11?

Open File Explorer, click View, then Show, then Hidden items. Hidden files appear with a faded icon.

Is there a keyboard shortcut to show hidden files?

Windows 11 has no single built-in shortcut for it. The quickest way is Windows + E to open File Explorer, then View, Show, Hidden items.

How do I show hidden files in pen drive?

Scan the drive with Microsoft Defender, then run attrib -h -r -s /s /d E:\*.* in Command Prompt as administrator, replacing E: with your drive letter.

Why can I not see the AppData folder?

AppData is hidden by default. Turn on Hidden items in File Explorer, or press Windows + R, type %appdata% and press Enter.

Is it safe to show hidden files?

Yes. Showing them only changes what you see. Problems come from deleting or editing system files, so leave files you do not recognise alone.

How do I hide hidden files again?

Open File Explorer, click View, then Show, and click Hidden items again to remove the tick.

Share this post:
WhatsAppFacebookXLinkedInTelegram
Scroll to Top