Re: Automating creating of a GPO



There is no published API for setting policy values in GPOs.

Roger

"Donald Palmer" <DonaldPalmer@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8BFFC066-4741-489A-AFB9-8DEB5232352F@xxxxxxxxxxxxxxxx
I have a question on whether or not you can automate the creation of a GPO.
I am new to an enterprise environment and am working in a test lab. One
of
the tasks that I do repeatedly is to create and test the distribution of
.MSI
files via group policy. It is an easy task to accomplish manually but
when
you have a number of them to test it would be nice to just enter a couple
of
parameters and have the GPO created by itself.

I looked at the GPMC and there is a creategpo script but this creates an
empty GPO and I want to be able to pass through the parameters for
distibuting the .MSI file.

Please let me know if this is even scriptable in the first place. I am
assuming that it would be a matter of getting a script to make changes
inside
an .ADM file. Also, if it is possible, can I then use a script to set the
security permissions on the newly created GPO?

What ever information someone can provide would be appreciated.
--
Donald Palmer, MCSE


.



Relevant Pages

  • Re: Install Windows Patch via GPO
    ... I did gpresult on the PCs and the GPO is showing up now. ... Browse when you want to add a new script or put the ... only reply to Newsgroups ... Ethernet adapter Local Area Connection 1: ...
    (microsoft.public.windows.group_policy)
  • Re: would a GPO have been better?
    ... shortcut to everyone, and you only have to update it in one spot, and ... > file to all machines on the network with varying levels of success. ... > 2) The main operation I'm looking for the gpo to perform is just a file ... The login script is a WSH ...
    (microsoft.public.win2000.group_policy)
  • Re: Install Windows Patch via GPO
    ... the script name is the patchfile name? ... Choose Add and do not type "patch", click the browse button and then use the batch file which contains the commands. ... only reply to Newsgroups ... I did gpresult on the PCs and the GPO is showing up now. ...
    (microsoft.public.windows.group_policy)
  • Re: Setting scripts for workstations only
    ... How do I Block a GPO with User Policy, ... unless loopback processing is used. ... your script and change it to a login script, ...
    (microsoft.public.windows.group_policy)
  • Re: can a GPO do this for me?
    ... That is that a decision needs to be made as to whether a new ... The login script is a WSH ... I guess what I was looking for the GPO to do was provide ... >> file to all machines on the network with varying levels of success. ...
    (microsoft.public.win2000.active_directory)

Loading