[gptalk] Re: Scripting GPO

  • From: "Darren Mar-Elia" <darren@xxxxxxxxxx>
  • To: <gptalk@xxxxxxxxxxxxx>
  • Date: Mon, 22 Oct 2007 10:04:09 -0700

Thanks for that Ian. It sounds like you are using GPMC APIs for most of the
GPO object stuff and then looking to automate the process of adding packages
to GPSI? And from your previous emails, it sounds like you're getting close,
so I think it will be worthwhile to some people. Over the years, I've had
folks ask about automating package creation and as you've discovered, its
do-able if not a bit complex.  

 

So, yes I think there would be general list interest in posting this if you
want to. 

 

Darren

 

From: gptalk-bounce@xxxxxxxxxxxxx [mailto:gptalk-bounce@xxxxxxxxxxxxx] On
Behalf Of Northwood, Ian
Sent: Monday, October 22, 2007 9:45 AM
To: gptalk@xxxxxxxxxxxxx
Subject: [gptalk] Re: Scripting GPO

 

Hmmm....maybe I should turn it into a commercial product, since it's
generating so much interest...

 

Just so we're clear, this script has been designed to streamline our MSI
deployment process. I'm mouse-agnostic and regard 50-odd clicks to add an
MSI to a GPO as tantamount to torture. So, it:

 

- parses the name of the folder containing the application's MSI

- gets the UNC name for the folder

- creates the group which will contain the application's users

- creates the GPO

- links the GPO to our testing GPO

- removes 'Authenticated Users' from the linked GPO

- adds the application group (and others unique to our environment) to the
linked GPO

- sets appropriate permissions for the added groups

 

Ultimately, it will then add the MSI to the linked GPO. This is the part
which is not working at present. It will.

 

Given its quite specific nature, it may not have universal appeal. Having
said that, most areas of functionality are contained in a Sub or Function so
it could probably be re-purposed.

 

If I do decide to post it, there will be a delay while I edit out
client-specific code. Still interested? 

 

  _____  

From: gptalk-bounce@xxxxxxxxxxxxx [mailto:gptalk-bounce@xxxxxxxxxxxxx] On
Behalf Of Larry.Trimble@xxxxxxxxxxxxxxxxxx
Sent: 22 October 2007 17:14
To: gptalk@xxxxxxxxxxxxx
Subject: [gptalk] Re: Scripting GPO

I would agree that we would all be interested.

 

  _____  

From: gptalk-bounce@xxxxxxxxxxxxx [mailto:gptalk-bounce@xxxxxxxxxxxxx] On
Behalf Of hans straat
Sent: Monday, October 22, 2007 11:09
To: gptalk@xxxxxxxxxxxxx
Subject: [gptalk] Re: Scripting GPO

 

I think the entire GPO community here would be interested :)
 




 


  _____  


From: darren@xxxxxxxxxx
To: gptalk@xxxxxxxxxxxxx
Subject: [gptalk] Re: Scripting GPO
Date: Mon, 22 Oct 2007 06:49:15 -0700

I'd like to see it as well!

 

 

 

From: gptalk-bounce@xxxxxxxxxxxxx [mailto:gptalk-bounce@xxxxxxxxxxxxx] On
Behalf Of Northwood, Ian
Sent: Monday, October 22, 2007 3:19 AM
To: gptalk@xxxxxxxxxxxxx
Subject: [gptalk] Re: Scripting GPO

 

Yes, it is possible and I have a script which does that very thing.  The
only thing it can't yet do, which the GPExpert Scripting Toolkit can do
(amongst many other things), is add MSIs to GPOs which, given that this was
the driving force behind the script's creation, is a bit of a blow! :)
However, I am *this* close to sorting that.

 

Your requirements may be different though so, if you'd like, I can send it
to you. In its current state, it could be edited to suit practically any
purpose GPO-wise.

 

 

  _____  

From: gptalk-bounce@xxxxxxxxxxxxx [mailto:gptalk-bounce@xxxxxxxxxxxxx] On
Behalf Of Charles P. Killmer
Sent: 19 October 2007 18:24
To: gptalk@xxxxxxxxxxxxx
Subject: [gptalk] Scripting GPO

Good afternoon everyone

 

New to the group, and hoping you can help.  Is it possible to, not only
create and link a GPO through script, but also populate it with settings?

 

Thanks for any help you can provide.

 

 

 

Charles Killmer
720 St Germain. Suite 200
Saint Cloud, MN 56303
Phone: 320.251.4700 x107
Toll Free : 877.797.4700 x107
Fax: 320.251.5030
http://www.netgainhosting.com <http://www.netgainhosting.com/> 
charlesk@xxxxxxxxxxxxxxxxxx

cid:image001.gif@01C599D3.64FF2880


cid:image002.gif@01C599D3.64FF2880

 

 Confidentiality Notice: This e-mail message, including any attachments, is
covered
 by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, and is
for 
 the sole use of the intended recipient's. It may contain confidential
and/or legally
 privileged information. Unauthorized review, use, disclosure or
distribution is 
 prohibited. If you are not the intended recipient, please contact the
sender by reply 
 e-mail and destroy all copies of the original message.

 


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________


Liverpool Victoria Friendly Society Ltd. Registered in England and Wales.
Registered Office: County Gates Bournemouth England, BH1 2NF, No.61 Coll.
Financial Services Authority Register number 110035. 

This email (and any attachments):

- is for its intended recipients only and may contain confidential and /or
legally privileged information. If received in error, any use of this email
is prohibited. Please delete it (and any copies) and notify us on +44(0)1202
292333, ext. 4044. 

- is believed to be free of any virus or other defect but internet
communications cannot be guaranteed to be secure or error free and we do not
accept any liability for any loss or damage from their receipt or use. 

Opinions expressed in this email are not necessarily those of the Society. 
LV= and Liverpool Victoria are trade marks of Liverpool Victoria Friendly
Society Limited and LV= and LV= Liverpool Victoria are trading styles of the
Liverpool Victoria group of companies.
LV= reserves the right to monitor and inspect emails sent to and by its
employees.

To find out more about us please visit: www.lv.com <http://www.lv.com/>  
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________


Liverpool Victoria Friendly Society Ltd. Registered in England and Wales.
Registered Office: County Gates Bournemouth England, BH1 2NF, No.61 Coll.
Financial Services Authority Register number 110035. 

This email (and any attachments):

- is for its intended recipients only and may contain confidential and /or
legally privileged information. If received in error, any use of this email
is prohibited. Please delete it (and any copies) and notify us on +44(0)1202
292333, ext. 4044. 

- is believed to be free of any virus or other defect but internet
communications cannot be guaranteed to be secure or error free and we do not
accept any liability for any loss or damage from their receipt or use. 

Opinions expressed in this email are not necessarily those of the Society. 
LV= and Liverpool Victoria are trade marks of Liverpool Victoria Friendly
Society Limited and LV= and LV= Liverpool Victoria are trading styles of the
Liverpool Victoria group of companies.
LV= reserves the right to monitor and inspect emails sent to and by its
employees.

To find out more about us please visit: www.lv.com <http://www.lv.com/>  
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

Other related posts: