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?

Thanks.
cP6uHIT ManagerAsked:
Who is Participating?
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

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer]
"DisableThumbnailsOnNetworkFolders"=dword:00000001
"DisableThumbsDBOnNetworkFolders"=dword:00000001

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

0

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?
Thanks.
0
Adam LeinssServer SpecialistCommented:
That should enable the policy.  Did you try running gpupdate /force after running the batch file?
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

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.

Thanks.
0
David Johnson, CD, MVPOwnerCommented:
it isn't a policy change it is a registry patch... registry patches can be applied using group policy
0
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.
0
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?
0
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.
Thanks.
0
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.
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.