- 查看服务器上所有组策略
- get-Gpo -All
- 不建议修改默认的域策略,域控制器策略,建议单独建立组策略
- $params = @{
- All = $true
- Domain = ‘sales.contoso.com’
- Server = ‘DC1’
- ReportType = ‘XML’
- Path = ‘C:\GPOReports\GPOReportsAll.xml’
- }
- Get-GPOReport @params 组策略报告 ,ReportType 可以是Html形式,
- 查看客户端应用的组策略
- gpupdate /force
- gpresult /h gpreport.html