[gptalk] Script to add multiple GPOs with different restricted groups

  • From: "Hendrikus Terwint \(SEDIRSI-Prestataire\)" <terwint.hendrikus.prestataire@xxxxxxxxxxxxxxxxxxxxxxxxx>
  • To: <gptalk@xxxxxxxxxxxxx>
  • Date: Wed, 16 Apr 2008 09:54:42 +0200

Hello everybody,


Could anyone put me on the right track for a script that:

·         Runs thru every child OU in the OU=Servers

·         Creates GPOs (GPO names built on child OU names)

·         Links the GPOs to the child OUs

·         Configures these GPOs with Restricted Groups

o   Different Restricted Groups for each GPO (group names built on child OU's 


I was thinking of using the gpmc script "CreateGPO.wsf", then dynamically 
modify a migtable file in order to import the appropriate Restricted Groups 
into the GPOs.... ?

Maybe Powershell could provide a solution?


Has anyone done this before?


Hendrikus TERWINT

Consultant Avanade France

hendrikus.terwint@xxxxxxxxxxx <mailto:hendrikus.terwint@xxxxxxxxxxx> 


Prestataire pour le compte de SEDI-RSI, site de Bagnolet

Tél. : 01 55 82 39 70


Other related posts: