use*_*011 5 windows powershell batch dump windows-server-2012
我是 Windows Server 的新手,我很好奇:有没有办法使用 PowerShell 或批处理文件将组安全设置转储到文本文件?谢谢!
您可以使用 Powershell Get-GPOReport命令将所有 GPO 设置导出为 HTML 或 XML 文件。
Import-Module GroupPolicy
# Export a specific GPO
Get-GPOReport -Name "Default Domain Policy" -ReportType Html -Path Default.html
Get-GPOReport -Name "Default Domain Policy" -ReportType Xml -Path Default.xml
# Export all GPOs
Get-GPOReport -All -ReportType Html -Path All.html
Get-GPOReport -All -ReportType Xml -Path All.xml
Run Code Online (Sandbox Code Playgroud)
有关Get-GPOReport用法的更多信息,请访问:https : //technet.microsoft.com/ru-ru/library/ee461057.aspx
| 归档时间: |
|
| 查看次数: |
6478 次 |
| 最近记录: |