Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am an student and the computers at school are configured via a group policy to set hidden files to hidden. I can undo that by manually changing this in the menus however this gets really frustrating after that 1000th time (so to speak).

Is there a program or does someone know a batch file that can do this for me with a single click?

share|improve this question
1  
To clarify - you currently have a group policy that sets your hidden files to hidden, and you are tired of manually unchecking the box each time? –  Jared Harley Aug 28 '09 at 21:11
1  
I'm referring to the computers at my school. I'm an ICT student and I need to work with hidden folders every now and then. Thing is, not all students are ICT students, so not all people need them. They expect as to know where the setting can be manipulated. –  KdgDev Aug 28 '09 at 23:09
add comment

2 Answers 2

up vote 1 down vote accepted

There is no such policy, but here is registry setting and registry settings can be enforced through GPO with Administrative templates.

This is the registry key:

User Key: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
Value Name: ShowSuperHidden
Data Type: REG_DWORD (DWORD Value)
Value Data: (0 = Hide Files, 1 = Show Files)

This article explains how to create custom adm template: http://support.microsoft.com/kb/323639 "How to create custom administrative templates in Windows 2000"

And this article explains how to use adm templates with GPO: http://www.petri.co.il/adding_new_administrative_templates_to_gpo.htm


Here is an ADM template I have used in the past:

CLASS USER
CATEGORY "System"
CATEGORY "Folders Files"
POLICY "Hide\Show Hidden Files"
EXPLAIN "This setting will allow for you to set the show and hide files and folders by default Keep in mind that this information will be stored in cleartext in the systems registry."
KEYNAME "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced"

PART "SetThis" NUMERIC REQUIRED TXTCONVERT
VALUENAME "Hidden"
MIN 1 MAX 2 DEFAULT "2"
END PART

END POLICY
END CATEGORY
END CATEGORY


  • Save the text with an ".adm" extention and place it somewhere.
    ( We save our custom ADM's here: C:\WINDOWS\inf\ADM Templates )
  • Create a GPO called "HiddenFiles" then open it up and add this template to your GPO
  • Right click the "Administrative Templates" -> View -> Filtering -> "Only show policy settings that can be fully managed"
  • Then go into your "User Configuration" -> Administrative Templates -> System -> Folders Files -> "Hide\Show Hidden Files"

The only catch with using unmanaged ADM's is they need to be reversed not disabled when you want to remove them from your system.

If you set ( Hidden = 1 )
You will need to set ( Hidden = 0 )


Some Quoting from here: http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Windows_2003_Active_Directory/Q_23056271.html

[1]: "How to create custom administrative templates in Windows 2000" http://support.microsoft.com/kb/323639

share|improve this answer
add comment

This is actually pretty easy, it just takes a little setup.

First, you'll want to create a registry key to set the "Show Hidden Files" option to true. Create a new file called "show.reg" and put the following text into it:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] "Hidden"=dword:0000000

Place the file wherever you want to keep it (such as My Documents) and make note of it's location.

Then, on your desktop, create a new shortcut. In the path to the shortcut, put in:

regedit.exe /s c:\users\ path to file \show.reg

The /s command for regedit.exe suppresses the notifications regedit normally shows.

Once you've done this, you should be able to just double-click the shortcut and your hidden files will show up. You may have to refresh your Explorer window (press F5) to get the hidden files to show.


If you want to hide the files again with the same method, follow the instructions above, but use a new registry file called "hide.reg" with the following:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] "Hidden"=dword:0000002

Make sure you call the "hide" registry file in the shortcut:

regedit.exe /s c:\users\ path to file \hide.reg

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.