?
Solved

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

Posted on 2013-11-11
10
Medium Priority
?
2,392 Views
Last Modified: 2013-11-19
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
0
Comment
Question by:Jerry Seinfield
  • 6
  • 2
  • 2
10 Comments
 
LVL 57

Expert Comment

by:Mike Kline
ID: 39639667
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
 

Author Comment

by:Jerry Seinfield
ID: 39639791
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
 
LVL 57

Expert Comment

by:Mike Kline
ID: 39640033
use

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

Thanks

Mike
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 

Author Comment

by:Jerry Seinfield
ID: 39640322
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
 

Author Comment

by:Jerry Seinfield
ID: 39641590
Anyone from Power Shell team that can help me with my request please?

Any ideas Subsun?
0
 
LVL 57

Accepted Solution

by:
McKnife earned 1000 total points
ID: 39642876
Could it be that you missed to ->
Import-Module -Name grouppolicy
?
Without, the cmdlet is missing, yes.
0
 

Author Comment

by:Jerry Seinfield
ID: 39643298
I did import the module group policy, then run the command again issues. please see attached file
getgporeporterror.jpg
0
 

Author Comment

by:Jerry Seinfield
ID: 39644750
Any other suggestions?
0
 

Author Closing Comment

by:Jerry Seinfield
ID: 39658141
no comments
0
 
LVL 57

Expert Comment

by:McKnife
ID: 39658689
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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question