Page 1 of 1

Using a batch file to edit Gpedit settings.

Posted: 01 Aug 2011 15:22
by countryboy
I know the basics of making a batch file in regards that they can only be made by using cmd commands. well I have to edit the GPedit.msc on 82 computers at work and I don't feel like doing them manually.

They are running XP Pro SP3 and I was wondering if there was a way of me being able to do a batch file that opens the gpedit.msc, add a script in the logon section of the user configuration, save the changes and closes the program.

i can do basic batch files but it has been a while since i have done one this advance and i have gotten rusty.

my main problem is that i do not know if gpedit.msc can be edited from the command line, all the articles i have read says that i will have to go through the GUI control to change the settings.

can any1 help?

Re: Using a batch file to edit Gpedit settings.

Posted: 02 Aug 2011 07:47
by Ed Dyreen
'
i will have to go through the GUI control to change the settings.
Then you will have to escape to a language that can handle GUI.
I advise AutoIT ( it's free, BASIC &extremely powerfull ).

Code: Select all

MouseClick ( $MouseButton, $x, $y )