Yashar Khavan
Yashar Khavan

Reputation: 1645

Edit windows Group Policy from Command line (CMD)

I want to add some group policy and I need to added by batch file How can I edit windows Group Policy from windows command line?

Upvotes: 1

Views: 9435

Answers (1)

Andy Arismendi
Andy Arismendi

Reputation: 52577

Try importregpol.exe

http://blogs.technet.com/b/fdcc/archive/2008/05/07/lgpo-utilities.aspx

It will import whatever is in the pol file you specify. To make a pol file I blank the policy by remove machine and user then set the desired settings with the LGPO editor MMC and grab the pol files that are created.

Upvotes: 1

Related Questions