Re: Automating creating of a GPO



To be clear. There is a published API for setting policy values in GPOs..
This uses the IGroupPolicy interface
(http://msdn2.microsoft.com/en-us/library/aa374235.aspx). The software
installation extension of Group Policy does not have a published API.

--
Mike Stephens
Technical Writer, Group Policy

This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send e-mail directly to this alias. This alias is for
newsgroup purposes only.


"Roger Abell [MVP]" <mvpNoSpam@xxxxxxx> wrote in message
news:OxKOWAWQHHA.1200@xxxxxxxxxxxxxxxxxxxxxxx
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: Group Policy Connundrum - Stick with it, its confusing!!!
    ... Configuration object of the GPO (vs. ... Group Policy Connundrum - Stick with it, ... Small Business Server Internet Connection Firewall ...
    (Security-Basics)
  • Re: Set GPO for specific user group
    ... Click on the domain name in Group Policy Management, select the GPO and then click the arrow to the left to move it to the top of the list ... Filtering: Denied ...
    (microsoft.public.windows.server.sbs)
  • Re: GPO Question
    ... Group Policy Processing ... As described earlier in this paper, Group Policy is processed in the ... Local Group Policy Object, ... Any domain-based GPO may be enforced by using the Enforce ...
    (microsoft.public.win2000.group_policy)
  • Re: group policy preferences
    ... Microsoft Windows XP Operating System Group Policy Result tool v2.0 ... GPO: ShockwaveTest ... GPO: Default Domain Policy ...
    (microsoft.public.windows.server.active_directory)
  • Re: Group Policy Timeout on one server in an OU.
    ... inheritance of that login script and placed myself in the OU. ... On Error GoTo 0 ... Group Policy Information Hub: ... Group Policy Management solutions athttp://www.sdmsoftware.com ...
    (microsoft.public.windows.group_policy)