Can a .bat file be used to edit group policy?

0

I'm setting up a wsus for a local college, and I'm looking into ways that are more effect for updating the Group policy on the computers so that they update via the wsus. Manually doing every one is quite a pain. Also, these will be client computers, so I'll need a .bat to revert to default when they're done.

Hellreaver

Posted 2015-07-09T22:55:03.560

Reputation: 263

Answers

1

Can't see the file you linked. However all settings/changes in group policy are stored in registry so you can make a snapshot of registry before and after modifying the group policy, comparing them and finding the necessary keys. In this way you can use a .reg file to apply change across all computers.

A useful tool: regshot

Another option is to use process monitor to monitor the change made by group policy(mmc.exe) and find the corresponding keys.

Chris.C

Posted 2015-07-09T22:55:03.560

Reputation: 1 038

http://paste.ubuntu.com/11852388/ – Hellreaver – 2015-07-09T23:23:22.050

Would it work across multiple operating systems? If I were to use the regshot registry file on both Windows 10 and Vista, would it mess either of them up? – Hellreaver – 2015-07-09T23:24:06.507