WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: jkjk12 on August 28, 2014, 02:11:23 PM

Title: set local policy settings?
Post by: jkjk12 on August 28, 2014, 02:11:23 PM
On a Windows 7 machines if you do start\run gpedit.msc you of course get to your local group polices.  Can WinBatch manipulate and turn on/off settings within gpedit.msc?  If so what command(s) do that? 
Title: Re: set local policy settings?
Post by: td on August 28, 2014, 02:41:47 PM
The following applies to Windows 7 too:

http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/How~To+Modify~Local~Group~Policy.txt (http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/How~To+Modify~Local~Group~Policy.txt)

Then there is always running the secedit utility from one of the Run* function or ShellExecute:

https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sag_secedittopnode.mspx?mfr=true (https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sag_secedittopnode.mspx?mfr=true)
Title: Re: set local policy settings?
Post by: jkjk12 on August 29, 2014, 06:35:01 AM
thanks but that does not fix the issue.  I can't find the corosponding GPO setting on the domain policies, it only seems to be in the local policy, that is why I wanted to know if WinBatch could manipulate the local policies.
Title: Re: set local policy settings?
Post by: td on August 29, 2014, 07:01:00 AM
You need to review the article pointed to by the first link again.  The 'local policy' is stored in the registry of the targeted system.  Changing the local policy involves changing the registry and that is what that article demonstrates.

A brief discussion of local vs domain policy can be found here:

http://technet.microsoft.com/en-us/library/cc775702(v=ws.10).aspx (http://technet.microsoft.com/en-us/library/cc775702(v=ws.10).aspx)