Sign in to follow this  
Followers 0
Devilname

How to change local group policy?

4 posts in this topic

#1 ·  Posted (edited)

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

Edited by Devilname

Share this post


Link to post
Share on other sites



#2 ·  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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0