How to enable Show (Unhide) Hidden File and Folder option disabled after virus attack

Method 1

If you ever faced such problem when your computer had a virus which ultimately disabled “show hidden file and folders” option, then you don’t need to format or restore your setting. I have a trick which can enable show hidden files and folder to its original state.

There are few viruses that prevent us from viewing the hidden files and folders. If you enable “Show hidden files and folders” option from folder option it doesn’t show hidden files and reverts back to “Do not show hidden files and folders”. If you desperately try command prompt to enable hidden files then it takes long time because you cannot unhide all files at once and vice versa. To enable show hidden files option please follow simple steps.

Note: We are going to edit registry entry, so don’t experiments with this tool, only follow what is mentioned here otherwise your computer may respond strangely and I take no responsibility. I have applied this trick to 3 PCs and was successful on 3 computers which had same problem.

Here is how fix show hidden files and folders option:

  • Click on Start button
  • Click Run
  • Type “regedit” without quotes in the box and press Enter.

Run Prompt

It should open “Registry Editor”, now do following steps:

Go to the following registry key:


You will find tree type navigation on left side pane, click on the + sign on text mention on above path means first click on + sign of “HKEY_LOCAL_MACHINE” then on “SOFTWARE” then on “Microsoft” and so on until you find values provided in below screen shot.

Registry Value Screenshot

Note: If you are a newbie then I would suggest you to back old entries before you make changes. To backup registry simply right click on “SHOWALL” name on left side then click “Export”, give a suitable name and save.

You only need to change or check two registry keys.

  1. “CheckedValue” value should be 1.
  2. “DefaultValue” value should be 2.

Don’t close “Registry Editor” now, go to folder option and try to unhide files and folders. It should work now and you can close registry editor.

Important: According to my Poll result, i can see that many people are unable to solve their problem using my method. I request them to update their anti-virus first then do a system scan. If you find any virus then remove them, and then you should apply my method. If your system contains virus and you apply this method, it won’t work. Because viruses changes this again to hidden mode.

Method 2

If above steps seems to be difficult then there is shortcut method which any one can do. Download a registry patch created by me and double click it, press “Yes” then “OK” and you are done.

 Zip file is password protected.

Password = rajkishor09

If you are unable to follow this method then please drop comments and I will try my best to solve your problem. Thank you for reading me.

Vote for better.

Did this help you?

See results without voting

More by this Author

Comments 49 comments

Bakht Riaz 7 years ago

Thanks Raj,

I m from Pakistan,and i appreciat your skills in registry editor programing , please dear brother, if you sent me the day today registry editor keys means tweaks , so this will solve my tribulations.

Your Brother

Bakht Riaz Student of M.Sc Computer Science

Shravan 7 years ago

i was clueless about the problem... now im relieved... thank u so much Raj Kishore....

Shaun 7 years ago

i have back off software for my bar to watch my till i got a doggle for my licence key its usb but when i install the doggle to my pc i cant find the drive its like hide some were wood you think it wood be

Aurelio 7 years ago

Very good tools my brother. From Brazil.


Hasnain 7 years ago

thank you sooooooooooooooooooooooooo much! you have solved my problem! God bless YOU!

stormskeep profile image

stormskeep 7 years ago

Who needs the help desk. We got computer specialist right here on hubpages!

Fadi 7 years ago

Thanx a lot man

i have tried many registry solutions and by far this was the best.

Ravin 7 years ago

Thanks for this tweak. But what will one do if the registry editor has also been disabled by the virus along with task manager.. It would be so nice if you could provide the fix for these issues too, please..............

greyzame 7 years ago

Thank you som uch Sir, you really helped me a lot of this're really the best....tnx for helping people likes us.....Hope you could posed also how to SOLVE this king of problem using "regedit" (services.exe is missing)

KMST profile image

KMST 7 years ago from Dhaka, Bangladesh

Good info. You could copy-paste the reg file into the body as well.

Can you give some light on the issue when "FOLDER OPTION" is missing under Tools menu of Windows explorer?

eugene 7 years ago

it worked, tnx a lot

Hassan 7 years ago

thamk you so much. i down loaded the registry edit patch and worked fine.

Adnan 6 years ago

thanks for the tweak... it works.. thanks a lot

vaibhav 6 years ago

this is the best solution i got........

save my system profile image

save my system 6 years ago from United Kingdom - London

Yes, It work fine with my PC as well. But I observe some risk while performing and you have to be very careful at time. But your solution for the problem is awesome.

Mr. Jamir 6 years ago

Thank you, Rajkishore, for the wonderful....It works perfectly fine for my PC! You resolved my issue without me spending even a single penny!!!

Thank you & God bless!!

Dipankar Bhagawati 6 years ago

Thanx a lot.

This has been a great problem for me. But now I know to solve. Thanx a lot.

faisal 6 years ago is best solution

Conan Hughes 6 years ago

Nice post. I didn't bother using the Registry though in case I mess something up. I normally show hidden files through the Folder Options method.

Anyway, I encountered a virus which hid files (and also made them system files) and disabled changing their attributes. I had to resort using the attrib command at the command prompt.

akhlaque 6 years ago

thankx this is very usefull

Naveen 6 years ago

Thanks very much bro' it was very useful.. it helped a lot

Jayakumar Pochayil 6 years ago

Thanks a lot dear.Its very useful.

Dilshika 6 years ago

Thanks brother... it wrkd perfectly.. all the best

melvin 5 years ago

thanks a lot bro it is useful thanks again and god bless ^_^

thasli 5 years ago

Not working for me

ruth 5 years ago


Pandu 5 years ago

thans for the info bro but i couldn't resolve my problem I've a prob in which the check box for hidden option in folder properties is disabled but not able to sort out any way 2 fix it

plz if u could hepl me

Mohammad Ikram Ali 5 years ago

Thank you brother Raj, i solved the problem by following 2nd method. I want to know this shortcut method will create problem for my PC sometimes or what? I am asking because in first method you have shown long method to follow and later on you have mentioned about the second method. Anyway, thanks a lot for your support.

Mohammad Ikram Ali

Indian Institute of Technology Guwahati

Assam: India

vks 5 years ago

i dont have the folder key in the advanced

sabya 5 years ago

thanks bro

Iago18 5 years ago


Firstly I would like to thank you for the time and effort you have put into this post.

Unfortunately, I have tried both solutions and neither have worked for me. I know I have/had a virus on the computer. I also believe I have removed it. However, it appears that this virus has not affected the Registry as the values were as they should be.

If you can offer any light on the problem, I'd be most grateful.

Kind Regards,


josh 5 years ago

thank you sooooo effin much

Genry 5 years ago

have problem on hidden folders done by a virus "win32.sality",it hides the folders and replaces it with an application that is named the same as the hidden folder, i used the command prompt to show the hidden folders but i cannot show all of the hidden folders , what should i do?

Harkeerat 5 years ago

Bro, dear bro,

what an awesome reg key.

Thanx, u solved it in a giffy...


Jaune 5 years ago

THANK YOU SO MUCH FOR THIS!!! RELIEF that my folders aren't gone forever! THank you!

Miku 5 years ago

It did not solve my problem... tried both of the Methods, but still... i cant unhide the folders.. Please help me.. T______T

Marlo 5 years ago

Hey brother, i tried the both of the methods but still i cannot unhide my folders. i just returning to do not show hidden files, folders or drive

king solymon hossain 4 years ago

thank u so much brother......

thnag 4 years ago

thnx man it work

sam 4 years ago

Thank you very really works

Deepak Soni 4 years ago


Deepak 4 years ago

i used you reg patch

it work

but somehow the options flipped

when i select show hiddedn files it doesnot display my files

but when i select do not show it displaysall my files

funny strange

Lax 3 years ago

my data is not changed at all.. its exactly what is should be.. 1 and 2 respectively.. but the hidden folder still cant be enabled, ehats the problem... is it due to a virus?? thanks !!

Bimal 3 years ago

Thanks, the note has helped me a lot...!!

pokyo 3 years ago

same here with lax can you update this pls? already done with system scan, values are correct in showhidden registry but still show hidden in folder options reverts back to hidden.. -_____-

Please Help Sir.. Thanks.

abrar 3 years ago

that was really amazing dude ,ue reg tweak woked like charm...

Surya 3 years ago

Thanks brother... it wrkd perfectly.. all the best.......

Hex 3 years ago

Thx man, really did helped me by showing my hidden folder.

MQuasar69 2 years ago

where I see the file or folder hidden in windows with the activation key to my original product microsoft office that comes with the new computer?

    Sign in or sign up and post using a HubPages Network account.

    0 of 8192 characters used
    Post Comment

    No HTML is allowed in comments, but URLs will be hyperlinked. Comments are not for promoting your articles or other sites.

    Click to Rate This Article