Our forums are currently in maintenance mode and the ability to post is disabled. We will be back up and running as soon as possible. Thanks for your patience!



Scripting Group Policy options

By alxcsby ·
I have a script that I've picked up from MS to create a GP administrative templat that allows me to block USB Storage (and others, if necessary).
I'm planning on editing it to also block SD cards, but otherwise, I'm leaving it as is.

Once that's installed (care of an xcopy bat), it adds a template in the GPEdit.msc console with the option to select radio buttons for "enabled" or "disabled" for each storage device in the script.

My question is as follows:
Is there a script or a bat file that could be used to configure those options, once they're added to GP. I.E. "Double-click this file to enable USB storage." "Double-click this file to disable USB storage."

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -

Perhaps I am misunderstanding

by IC-IT In reply to Scripting Group Policy op ...

But if the policy is either enabled or disabled wouldn't that enable/disable the device?

Collapse -

it's group policy

by CG IT In reply to Perhaps I am misunderstan ...

While the default refresh is 90 minutes [give or take a few] and you can force and update from the command line [thus create a script to do it] your doing something that really isn't what was intended group policy to do.

Related Discussions

Related Forums