Using a batch file to edit Gpedit settings.

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
countryboy
Posts: 1
Joined: 01 Aug 2011 15:13

Using a batch file to edit Gpedit settings.

#1 Post by countryboy » 01 Aug 2011 15:22

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?

Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

Re: Using a batch file to edit Gpedit settings.

#2 Post by Ed Dyreen » 02 Aug 2011 07:47

'
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 )

Post Reply