WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

How To
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Scripting the Group Policy Management Console

 Keywords: GPO GPMC Group Policy Management Console COM

Scripting the Group Policy Management Console

The GPMC user interface is based on a set of COM interfaces that accomplish most of the operations performed by GPMC. These interfaces are available to Windows scripting technologies like WinBatch. For example, the following capabilities are scriptable using these interfaces: These interfaces are discussed in detail in the GPMC software development kit (SDK) located in the %programfiles%\gpmc\scripts\gpmc.chm help file on systems where GPMC has been installed. The contents of the GPMC SDK are also available in the Platform SDK.

GPMC comes with a number of sample scripts (written mostly in VBScript but some JScript) that form a toolkit of scripts that administrators can use to directly administer a Group Policy environment or as examples to build more elaborate management tools. The scripts are installed in the %programfiles%\gpmc\scripts directory.

Getting Started with GPMC Scripting: http://technet.microsoft.com/en-us/library/cc778529(v=ws.10).aspx

IMPORTANT: These GPMC interfaces don't let you read or configure individual policy settings within a GPO. For example, you can't create a script that enables the Remove Run from Start Menu Administrative Template policy within a GPO. This limitation is unfortunate. However, the GPMC interfaces still provide a level of automation that surpasses what has been available previously.


Article ID:   W17948
Filename:   Scripting the Group Policy Management Console.txt
File Created: 2013:01:04:09:15:26
Last Updated: 2013:01:04:09:15:26