Script to change local Group Policy

I have about twenty five computer that are not on a domain but are on the same workgroup. I need to change to local group policy on all the machines to lock deny removable storage all policy. So i need a script i can run in the background that will login to gpedit.msc with admin rights, change the polices with out me being there and with kicking the user off the machine.
miamitech305Asked:
Who is Participating?

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

x
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.

McKnifeCommented:
This can be set via registry. Name the exact policy and setting, please.
miamitech305Author Commented:
See attached
LGP.jpg
McKnifeCommented:
The registry key is  HKLM\Software\Policies\Microsoft\Windows\RemovableStorageDevices\{53f5630d-b6bf-11d0-94f2-00a0c91efb8b} Deny_Execute is the key and value for the top one. I suggest you look up the rest in the GPO reference excel sheet: https://www.microsoft.com/en-us/download/details.aspx?id=25250

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
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.