加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

Windows – PowerShell:将GPO导出到文本文件

发布时间:2020-12-13 23:52:13 所属栏目:Windows 来源:网络整理
导读:我是 Windows Server的新手,我很好奇:有没有办法使用PowerShell或批处理文件将组安全设置转储到文本文件?谢谢! 您可以使用Powershell Get-GPOReport命令将所有GPO设置导出为HTML或XML文件. Import-Module GroupPolicy# Export a specific GPOGet-GPORepor
我是 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

有关Get-GPOReport使用的更多信息,请访问:https://technet.microsoft.com/ru-ru/library/ee461057.aspx

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读