Tuesday, May 5, 2009

GPMC Scripts - List All GPO's

I had the need to create a list of all GPO's on a domain. I found something new... when you install GPMC under C:\Program Files\GPMC\Scripts there is a whole bunch of scripts that you can run to perform different tasks that are not part of the GPMC console.

The script I used in this instance to create a list of all GPO's in a text file was ListAllGPOs.wsf.

cscript ListAllGPOs.wsf > c:\list.txt

If you have Windows Server 2008, these scripts are not included with group policy management console - However you can manually download them from here:

http://www.microsoft.com/downloads/details.aspx?FamilyId=38C1A89B-A6D2-4F2A-A944-9236999AEE65&displaylang=en

On Windows Server 2008 the scripts are installed to the following directory:

C:\Program Files\Microsoft Group Policy\GPMC Sample Scripts\

I found this blog by a guy named Garry who has gone through and created a brief description of what each of these Scripts in the C:\Program Files\GPMC\Scripts directory does. Well worth checking out, the link is:

http://wmug.co.uk/blogs/1972/archive/2006/05/01/39.aspx

No comments:

Post a Comment