Solved

AD commands for viewing and exporting GPO settings

Posted on 2016-09-29
1
33 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 500 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

Join & Write a Comment

I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
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 tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now