Jump to content

Recommended Posts

Posted (edited)

Hi,

Use the registry functions of autoit to set group policy settings..

If you have a look in windows\system32\GroupPolicy\Adm folder for the policy settings your trying to set..

Then open the appropriate *.adm file in a text editor to find the registry keys that the policy sets..

From there you can start writing your autoit script to suite what you need.

Cheers

Edit: If you know the policy and value your looking for you could also read a *.adm file into a variable and use stringreplace or regxp functions to edit the string the save the changes back to the policy..

Edited by smashly
Posted

  Devilname said:

Hi all, is there any way in which the local group policy settings can be changed using AutoIt??

I guess you can change and add status in net.exe

Start cmd and write "net localgroup"

I dont know if you are new with autoit but there is a function called _rundos

#include <process.au3>
_rundos("net localgroup <other parameters>")

-jaenster

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...