Link to home
Start Free TrialLog in
Avatar of Jerry Seinfield
Jerry SeinfieldFlag for United States of America

asked on

How to obtain a list of all GPOs and the details of their policies in WIndows 2008 R2 forest/domain

Hello Experts,

I would like to  obtain a list of all GPOs and the details of their policies in WIndows 2008 R2 forest/domain. Then need to export this list with details to a HTML page and/or cst/txt file

How can I accomplish this via Power shell and group policy management ?

Thanks in advance
Avatar of Mike Kline
Mike Kline
Flag of United States of America image

You can use the scripts that come with GPMC, you can download them here

http://www.microsoft.com/en-us/download/details.aspx?id=14536

More on the scripts here   http://gpfaq.se/scripts/gpmc-scripts/

Thanks

Mike
Avatar of Jerry Seinfield

ASKER

Can anyone from the Powershell team provide me with the scripts to obtain all GPO in a domain?

From PowerShell, I need to obtain a list of all GPOs and the details of their policies in WIndows 2008 R2 forest/domain. Then need to export this list with details to a HTML page and/or cst/txt file
use

get-gporeport -all domain yourdomainhere -reporttype -html -path c:\reports.html

Thanks

Mike
The term get-gporeport is not recognized as the name of a cmdlet. I am running from a WIndows 2008 R2 server

Any ideas on why I got the error above?

Any other suggestions is highly appreciated
Anyone from Power Shell team that can help me with my request please?

Any ideas Subsun?
ASKER CERTIFIED SOLUTION
Avatar of McKnife
McKnife
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I did import the module group policy, then run the command again issues. please see attached file
getgporeporterror.jpg
Any other suggestions?
no comments
Was it solved, your syntax-problem? What is the correct syntax, then?
I did not answer any further because I had no clue what was wrong and was hoping for Mike to come back in.