Quantcast
Channel: Group Policy forum
Viewing all articles
Browse latest Browse all 19997

Programatically query / set local group policy settings

$
0
0

Hi

I want to programatically (script / command line) access (get value, set value and enable/disable) some settings that are contained within a Windows 7 local group policy.

I can access and modify these via gpedit.msc, in particular the setting is

Local Computer Policy > Computer Configuration > Administrative Templates > Network > DNS Client > DNS Suffix Search List

The machine is not on a domain.  The reason that I need to change this programatically is because I change corporate networks frequently and need to be able to change these options and turn them on and off.

Thanks in anticipation.

Cheers
Paul


Viewing all articles
Browse latest Browse all 19997

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>