Thursday, May 25, 2006

Exploring GPMC Scripts

It is worth exploring the scripts provided with the GPMC to save some time documenting and automating the backup of GPO's. Open a command prompt in the C:\Program Files\GPMC\Scripts folder and explore in the lab.

A great example is producing a report to document all of your GPO's. This command will generate an XML and HTML report of all of you GPO's. Very useful for documentation or passing on to people that do not have access to GPMC.

cscript getreportsforAllgpos.wsf c:\Reports

How about this script to schedule a regular backup of GPO's

cscript BackupAllGPOs.wsf c:\Backup

Dave