Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

AD commands for viewing and exporting GPO settings

Posted on 2016-09-29
1
Medium Priority
?
63 Views
Last Modified: 2016-10-03
Do any of the AD powershell commands export all settings for a specific GPO which you specify? And if so can an example be provided where results are written to CSV?

Can you run these remotely, or do you need to run them directly on a DC?
0
Comment
Question by:pma111
1 Comment
 
LVL 40

Accepted Solution

by:
Subsun earned 2000 total points
ID: 41821283
I am not sure if  you can export the GPO settings to csv, you can try XML or HTML which is easy to read..
Examples...
Get-GPO -All | % {$_.GenerateReport('html') | Out-File "C:\GPOReports\$($_.DisplayName).htm"}


Get-GPOReport -All -Domain sales.contoso.com -Server DC1 -ReportType XML -Path C:\GPOReports\GPOReportsAll.xml

Open in new window

This require GroupPolicy PowerShell module (Win 2008 R2 and above).
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
In this post, I will showcase the steps for how to create groups in Office 365. Office 365 groups allow for ease of flexibility and collaboration between staff members.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

926 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