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.

Sign up and earn $1000 a day ⋙

Leave a Comment

How to fix “Well Need Your Current Windows Password” error on Windows 10/11

How to fix “Well Need Your Current Windows Password” error on Windows 10/11

Are you getting the “We'll need your current Windows password one last time” error? This annoying pop-up can prevent you from getting things done.

Quickly fix Unmountable Boot Volume error on Windows 10/11

Quickly fix Unmountable Boot Volume error on Windows 10/11

The Unmountable Boot Volume error occurs due to some installed software conflicting with the operating system or due to the computer suddenly shutting down,... In the article below, WebTech360 will guide you through some ways to fix this error.

How to Fix Clipboard History Error in Windows 11 Latest Update

How to Fix Clipboard History Error in Windows 11 Latest Update

If you use Clipboard History to store data for later use, there is a small chance that the data will remain empty no matter what you try.

How to remove Copilot and other AI features in Windows

How to remove Copilot and other AI features in Windows

If you don't care about having extra bloatware on your system, there are ways to remove or disable Windows Copilot on Windows 11.

Why is the laptop battery percentage estimate never accurate?

Why is the laptop battery percentage estimate never accurate?

Most laptop users have encountered a situation where Windows shows 2 hours of battery life left, then five minutes later it jumps to 5 hours or even 1 hour. Why does this time jump around like that?

10 Windows 11 settings to maximize laptop battery life

10 Windows 11 settings to maximize laptop battery life

Laptop batteries degrade over time and lose capacity, resulting in less battery life. But after tweaking some deeper Windows 11 settings, you should see a significant improvement in battery life.

Microsoft: PCs running Windows 11 21H2/22H2 will be forced to update to 23H2 next month

Microsoft: PCs running Windows 11 21H2/22H2 will be forced to update to 23H2 next month

Windows 11 version 21H2 is one of the major original releases of Windows 11 that began rolling out globally on October 4, 2021.

Microsoft spams Copilot QR codes on Windows 11 lock screen to lure users

Microsoft spams Copilot QR codes on Windows 11 lock screen to lure users

The year 2023 saw Microsoft betting heavily on artificial intelligence and its partnership with OpenAI to make Copilot a reality.

How to Disable User Accounts on Windows 11

How to Disable User Accounts on Windows 11

You can disable User Accounts so that others can no longer access your computer.

Buying a Windows laptop is harder than ever

Buying a Windows laptop is harder than ever

Is the NPU different enough to delay purchase and wait for the PC Copilot+ to become mainstream?

How to turn on and off battery saving mode on Windows 11 laptop

How to turn on and off battery saving mode on Windows 11 laptop

Windows 11's Battery saver mode is a feature designed to extend laptop battery life.

Microsoft Launches New Sticky Notes App for Windows 11

Microsoft Launches New Sticky Notes App for Windows 11

After keeping things the same for years, the Sticky Note update in mid-2024 changed the game.

How to fix IRQL NOT LESS OR EQUAL error on Windows

How to fix IRQL NOT LESS OR EQUAL error on Windows

The IRQL NOT LESS OR EQUAL error is a memory-related error that typically occurs when a system process or driver attempts to access a memory address without proper access permissions.

6 Ways to Copy File and Folder Paths in Windows 11

6 Ways to Copy File and Folder Paths in Windows 11

Paths are the locations of files or folders in Windows 11. All paths include the folders you need to open to get to a specific location.

Compare Windows 10 and Windows 11

Compare Windows 10 and Windows 11

Windows 11 has officially launched, compared to Windows 10 Windows 11 also has many changes, from the interface to new features. Please follow the details in the article below.