AD commands for viewing and exporting GPO settings

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?
Who is Participating?
SubsunConnect With a Mentor Commented:
I am not sure if  you can export the GPO settings to csv, you can try XML or HTML which is easy to read..
Get-GPO -All | % {$_.GenerateReport('html') | Out-File "C:\GPOReports\$($_.DisplayName).htm"}

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

Open in new window

This require GroupPolicy PowerShell module (Win 2008 R2 and above).
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.