Q

Disabling "Show hidden files and folders"

How do I prevent users from selecting 'show hidden files and folders' in the folder options?

As incredible as it might seem, Microsoft does not provide a group policy that disables the "Show Hidden Files" option.

This feature and the "Show Protected System Files" feature are controlled by three Registry entries under HKCU | Software | Microsoft | Windows | Current Version | Explorer | Advanced. They are: Hidden -- set to 1 to show and 0 to hide SuperHidden -- set to 1 to show and 0 to hide ShowSuperHidden -- set to 1 to permit showing and 0 to hide

You could put these three entries in a logon script, but users would be able to change the settings back. Here's the script, though, in case you're interested.

set regobj = CreateObject("Wscript.Shell")

regobj.regwrite "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedShowsuperhidden",0,"REG_DWORD"

regobj.regwrite "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedHidden",0,"REG_DWORD"

regobj.regwrite "HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerAdvancedSuperhidden",0,"REG_DWORD"

To prevent the user from changing this setting, you would need to fiddle with the security descriptor on the Advanced key. That's a little outside the scope of this forum.

 

This was last published in June 2001

Dig Deeper on Windows Disaster Recovery and Business Continuity

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchServerVirtualization

SearchCloudComputing

SearchExchange

SearchSQLServer

SearchWinIT

SearchEnterpriseDesktop

SearchVirtualDesktop

Close