答案1
要查看实际的设置名称和值,您需要生成组策略报告:
[xml]$report = Get-GPOReport -Name 'My-GPO' -Domain 'contoso.com' -Server 'DC1' -ReportType XML
然后,您可以查看设置,尽管您可能需要四处寻找所有设置。下面是我如何显示一些 Internet Explorer 策略设置的示例:
$report.GPO.Computer.ExtensionData.Extension.Policy | Where State -eq Enabled | Select Name,State
Name State
---- -----
URLs to open on startup Enabled
Turn off add-on performance notifications Enabled
Turn off suggestions for all user-installed providers Enabled
Turn off Compatibility View Enabled
或者您可以将报告输出到文件:
Get-GPOReport -All -Domain "sales.contoso.com" -Server "DC1" -ReportType XML -Path "C:\GPOReports\GPOReportsAll.xml"
有关更多信息点击此处获取 GPOReport