Generates a report either in XML or HTML format for a specified GPO or for all GPOs in a domain.
Active Directory · Risk: Low · Documentation Verified
Last verified: 2026-10-26
Microsoft GroupPolicy reference: Generates a report either in XML or HTML format for a specified GPO or for all GPOs in a domain. The syntax and selected example below are adapted from the pinned Windows Server 2025 reference. Module availability, target configuration and delegated permissions determine whether it can run in your environment. Documentation and parameter text: Microsoft, CC BY 4.0; formatting adapted by Cmdlet World. No execution testing is claimed.
Use an account with the target resource permissions documented for Get-GPOReport. Modifying administrative cmdlets may require elevation or delegated administration. This catalog does not assert that ordinary users can execute the command.
Supported environments
Windows / GroupPolicy · Windows Server 2025 documentation; feature/module prerequisites apply
Parameters
-All (required)
Indicates that the cmdlet generates a report for all GPOs in the domain.
-Domain
Specifies the domain for this cmdlet. You must specify the fully qualified domain name (FQDN) of the domain. For the Get-GPOReport cmdlet: - If a single GPO is specified, it must exist in this domain. - If the All parameter is specified, a report is generated for each GPO in this domain. If you do not specify the Domain parameter, the domain of the user that is running the current session is used. If the cmdlet is being run from a computer startup or shutdown script, the domain of the computer is used. For more information, see the Notes section in the full Help. If you specify a domain that is different from the domain of the user that is running the current session or, (for a startup or shutdown script, the computer), a trust must exist between that domain and the domain of the user or the computer. You can also refer to Domain by its built-in alias, DomainName. For more information, see about_Aliases.
-Guid (required)
Specifies the GPO for which to generate the report by its globally unique identifier (GUID). The GUID uniquely identifies the GPO. You can also refer to the Guid parameter by its built-in alias, Id. For more information, see about_Aliases
-Name (required)
Specifies the GPO for which to generate the report by its display name. The display name is not guaranteed to be unique in the domain. If another GPO with the same display name exists in the domain an error occurs. You can use the Guid parameter to uniquely identify a GPO. You can also refer to the Name parameter by its built-in alias, DisplayName. For more information, see about_Aliases.
-Path
Specifies the path to the report file; for instance, c:\Reports\GpoReport.xml. If no path is specified, the report is printed to the display.
-ReportType (required)
Specifies the format of the report. You must specify either Html (for HTML format) or Xml (for XML format). These values are not case sensitive. The following values are permitted for this object type.
-Server
Specifies the name of the domain controller that this cmdlet contacts to complete the operation. You can specify either the fully qualified domain name (FQDN) or the host name. If you do not specify the name by using the Server parameter, the primary domain controller (PDC) emulator is contacted. You can refer to this parameter by its built-in alias, DC. For more information, see about_Aliases.
Prerequisites
Windows with the GroupPolicy module and the Windows feature or management tools that provide it. Confirm target connectivity and version compatibility using the linked Microsoft reference.
Security considerations
This is a read-oriented cmdlet; protect any sensitive results and check the documented effects of your selected parameters.
Examples
Example 1: Generate an HTML report for the specified GPO
Get-GPOReport -Name "TestGPO1" -ReportType HTML -Path "C:\GPOReports\GPOReport1.html"
This command generates a report in HTML format for the GPO TestGPO1 and writes it to the file C:\GPOReports\GPOReport1.html Source: Microsoft, CC BY 4.0; transcript prompt/output removed. This example was not executed.