Enable Local Windows Policy

Can I enable specific local windows group policy (in this case "Turn off the display of thumbnails and only display icons on network folders") using a batch file? What is the actual command required to create this batch file?

cP6uHIT ManagerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David Johnson, CD, MVPOwnerCommented:
Import the registry key
Windows Registry Editor Version 5.00


Open in new window

reg add hkcu\software\policies\microsoft\windows\explorer\DisableThumbnailsOnNetworkFolders /t REG_DWORD /v 1
reg add hkcu\software\policies\microsoft\windows\explorer\DisableThumbsDBOnNetworkFolders /t REG_DWORD /v 1

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
cP6uHIT ManagerAuthor Commented:
I created the registry key mentioned above and ran the file.
It showed up in the windows registry (added and enabled) but never enabled the specific policy.
I also rebooted the system, no change.

Is there a simple windows batch file that would directly enable the policy instead of using the local group policy editor?
Adam LeinssServer SpecialistCommented:
That should enable the policy.  Did you try running gpupdate /force after running the batch file?
The 7 Worst Nightmares of a Sysadmin

Fear not! To defend your business’ IT systems we’re going to shine a light on the seven most sinister terrors that haunt sysadmins. That way you can be sure there’s nothing in your stack waiting to go bump in the night.

cP6uHIT ManagerAuthor Commented:
The registry key is there, set to 1.
Ran the gpupdate /force cmd, computer and user policies got updated.
Rebooted pc, the policy is still set to "not configured". No change.

David Johnson, CD, MVPOwnerCommented:
it isn't a policy change it is a registry patch... registry patches can be applied using group policy
Adam LeinssServer SpecialistCommented:
OK...you're right, this does not work via a reg hack.  When I use Procmon to monitor the registry, it is putting the value when set from gpedit.msc from here:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Group Policy Objects\{4B789685-A962-472B-B737-11C3DCA30C84}User\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]

So there is no way of setting this locally from what I can see through an automated way.
Adam LeinssServer SpecialistCommented:
Actually, to bounce off what David said...this might actually still be doing the job, but since it's not a GPO per se, but a registry hack...it may not show up in GPEDIT.MSC as a toggle...after running the reg hack did you go and verify if thumbnails are still being created?
cP6uHIT ManagerAuthor Commented:
The thumbnails are not being created/displayed.
I guess the registry hack worked, but did not toggle the setting under group policy editor.

It is good enough for me, no thumbnails no windows warnings when trying to rename or delete files.
Adam LeinssServer SpecialistCommented:
I think policies are back from the Windows 9x days since I don't think GPOs existed back then, so there's probably legacy code in explorer.exe that still honors them.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 7

From novice to tech pro — start learning today.