Looking to get all GPOs exported to a specific folder
When trying to get the GPOs from a DC with powershell like this:
Get-GPOReport -All -ReportType HTML -server 192.168.1.88 -Path c:\gpor-reports\GPOAll.html
I keep getting:
Get-GPOReport : Current security context is not associated with an Active Directory domain or forest. At line:1 char:1 + Get-GPOReport -All -ReportType HTML -server 192.168.1.90 -Path c:\gpo ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Get-GPOReport], ActiveDirectoryOperationException + FullyQualifiedErrorId : System.DirectoryServices.ActiveDirectory.ActiveDirectoryOperationException,Microsoft.Gro upPolicy.Commands.GetGpoReportCommand
This is a non-domain joined PC, am I able to get this report or use something else to get the html report I'm looking for? All GPOs on the domain exported to an HTML file.