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
Jerry SeinfieldAsked:
Who is Participating?
 
McKnifeConnect With a Mentor Commented:
Could it be that you missed to ->
Import-Module -Name grouppolicy
?
Without, the cmdlet is missing, yes.
0
 
Mike KlineCommented:
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
0
 
Jerry SeinfieldAuthor Commented:
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
0
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

 
Mike KlineCommented:
use

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

Thanks

Mike
0
 
Jerry SeinfieldAuthor Commented:
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
0
 
Jerry SeinfieldAuthor Commented:
Anyone from Power Shell team that can help me with my request please?

Any ideas Subsun?
0
 
Jerry SeinfieldAuthor Commented:
I did import the module group policy, then run the command again issues. please see attached file
getgporeporterror.jpg
0
 
Jerry SeinfieldAuthor Commented:
Any other suggestions?
0
 
Jerry SeinfieldAuthor Commented:
no comments
0
 
McKnifeCommented:
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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.