Restore hidden folders in Windows when infected with virus

In many cases, it is often due to a virus attack that the hidden folders of the system cannot be displayed even when the “ Show hidden files and folders ” option in Folder Options is enabled. Some of the following methods will help to handle this problem.

It is possible that some malware has modified the settings in Windows to disable or prevent users from changing the show/hide files from Folder Options. We will try the following methods:

Restore the system

The most effective way is to restore your system. Restore using your system Restore, so that you can change the system registry. It is not harmful to your files. If you do not want, you can cancel.

Before restoring the system, you need to remember the date when the problem occurred to restore the system to an earlier date. To restore the system, do the following:

- Go to Start / All Programs / Accessories / System Tool / System Restore .

- Select “ Restore my computer to an earlier time ” then select Next .

- You will receive information on the date when the system can be restored. Select a date before your computer crashed and continue to Next .

- The system will restart and you will have to wait a few minutes for the restoration process to complete.

Restore hidden folders in Windows when infected with virus
Select the time to restore the system

Note : If you are using Kaspersky VirusGuard, you must disable the “ Enable self defense ” option in the program’s installation folder. Otherwise the recovery process will not work, and you will receive the message “ Restoration Incomplete ”.

Modify the Registry

- Go to Start / Run and type regedit . Navigate to the path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\
Advanced\Folder\Hidden\SHOWALL

- Find and delete the entry named CheckedValue and the value is 2 .

Restore hidden folders in Windows when infected with virus
Create DWORD in Registry Editor

Create a new DWORD, by right-clicking on the New / DWORD Value box , name it CheckedValue and enter its value number as 1. Run

the registry code

- Open Notepad and copy the code below into Notepad, then save this Notepad file to your computer with the name folderoption.reg .

Windows Registry Editor Version 5.00 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden] 

“Text”= “@shell32.dll,-30499” 

“Type”=“group” 

“Bitmap”=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\00,25,00,5c,00,73,00,79,00,73,00,74,65,00,6d,00,33,00,32,00,5c,00,53,00,\48,00,45,00,4c,00,4c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,34,00,00,\00 

“HelpID”=“shell.hlp#51131” 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\NOHIDDEN] 

“RegPath”=“Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced” 

“Text”=“@shell32.dll,-30501” 

“Type”=“radio” 

“CheckedValue”=dword:00000002 

“ValueName”=“Hidden” 

“DefaultValue”=dword:00000002 

“HkeyRoot”=dword:80000001 

“HelpID”=“shell.hlp#51104” 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL] 

“RegPath”=“Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced” 

“Text”=“@shell32.dll,-30500” 

“Type”=“radio” 

“CheckedValue”=dword:00000001 

“ValueName”=“Hidden” 

“DefaultValue”=dword:00000002 

“HkeyRoot”=dword:80000001 

“HelpID”=“shell.hlp#51105” 



- Close Notepad and double-click on this new file. Select Yes . A confirmation message will appear, click OK . Check the display of hidden folders again after performing the above 3 methods.

Leave a Comment

How to Use Windows 11 Quick Assist for Help

How to Use Windows 11 Quick Assist for Help

Discover how to use Windows 11 Quick Assist for seamless remote support. Learn step-by-step setup, troubleshooting, and tips to help friends or family with tech issues instantly.

Troubleshooting Windows 11 Dual Monitor Lag Fixes

Troubleshooting Windows 11 Dual Monitor Lag Fixes

Struggling with dual monitor lag on Windows 11? Discover proven troubleshooting fixes to eliminate stuttering, delays, and performance issues for seamless multi-monitor setups. Step-by-step guide inside.

How to Fix Windows 11 Startup Settings Blank Error

How to Fix Windows 11 Startup Settings Blank Error

Struggling with the frustrating Windows 11 "Startup Settings" blank error? Discover proven, step-by-step fixes to restore your boot options quickly and get your PC running smoothly again. No tech expertise needed!

How to Activate Windows 11 Enterprise with KMS

How to Activate Windows 11 Enterprise with KMS

Discover how to activate Windows 11 Enterprise using KMS effortlessly. This comprehensive guide covers everything from requirements to troubleshooting, ensuring seamless activation for your business needs.

How to Fix Windows 11 Kmode Exception Not Handled

How to Fix Windows 11 Kmode Exception Not Handled

Struggling with the dreaded KMODE EXCEPTION NOT HANDLED error on Windows 11? Discover proven, step-by-step fixes to resolve this blue screen nightmare quickly and get your PC running smoothly again. No tech expertise needed!

Troubleshooting Windows 11 Motherboard Driver Error Fix

Troubleshooting Windows 11 Motherboard Driver Error Fix

Struggling with Windows 11 "Motherboard" Driver Error? Discover proven troubleshooting steps to fix it fast and get your PC running smoothly again. Easy, step-by-step guide for beginners.

How to Fix Windows 11 Ping Spikes Over Wi-Fi Fixes

How to Fix Windows 11 Ping Spikes Over Wi-Fi Fixes

Struggling with ping spikes on Windows 11 over Wi-Fi? Discover proven fixes to stabilize your connection, reduce lag, and enjoy smooth gaming or streaming. Step-by-step solutions for instant results.

How to Recover Deleted Photos in Windows 11

How to Recover Deleted Photos in Windows 11

Accidentally deleted precious photos? Discover proven methods to recover deleted photos in Windows 11 effortlessly. Step-by-step guides, tools, and tips to restore your images safely.

How to Use Windows 11 Terminal Instead of CMD

How to Use Windows 11 Terminal Instead of CMD

Discover how to use Windows 11 Terminal instead of CMD for a modern, efficient command-line interface. Learn installation, setup, and tips to boost your productivity with tabs, themes, and more.

How to Activate Windows 11 Pro Without a Product Key

How to Activate Windows 11 Pro Without a Product Key

Discover safe, legitimate ways to activate Windows 11 Pro without a product key. Learn step-by-step methods using built-in tools and official Microsoft options to get your OS up and running smoothly. No risks, no hassle – just pure productivity.

Fixing Battery Drain During Hibernate in Windows 11

Fixing Battery Drain During Hibernate in Windows 11

Struggling with battery drain during hibernate in Windows 11? Discover expert fixes to preserve your laptop

How to Fix Windows 11 Input Lag for Valorant and CS2

How to Fix Windows 11 Input Lag for Valorant and CS2

Struggling with input lag in Windows 11 while playing Valorant or CS2? Discover proven, step-by-step fixes to restore smooth gameplay and boost your performance. Say goodbye to delays and hello to precision shots.

How to Fix Out of Memory Error in Microsoft Edge

How to Fix Out of Memory Error in Microsoft Edge

Struggling with the frustrating "Out of Memory" error in Microsoft Edge? Discover proven, step-by-step fixes to reclaim your browsing speed and stability. Updated with the latest tips for optimal performance.

How to Fix Windows 11 Google Drive Not Launching Fix

How to Fix Windows 11 Google Drive Not Launching Fix

Struggling with Google Drive not launching on Windows 11? Discover proven fixes to resolve the issue fast, from restarts to advanced troubleshooting. Get your cloud storage working seamlessly today!

How to Disable Gamebar Presence Writer for Performance

How to Disable Gamebar Presence Writer for Performance

Discover how to disable Game Bar Presence Writer on Windows to optimize gaming performance. Step-by-step guide to reduce lag, boost FPS, and enhance your setup for smoother gameplay. Essential tips for gamers in 2026.