Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

使用 PowerShell 进行 Windows Active Directory GPO 管理。

Summary: 下面的说明提供了可用于收集特定 Windows Active Directory 域中的 GPO 列表的 PowerShell 命令示例。 TSDOMAIN。Local 是下面命令中的一个示例,应替换为要在其中收集 GPO 信息的域名。

This article may have been automatically translated. If you have any feedback regarding its quality, please let us know using the form at the bottom of this page.

Article Content


Instructions

以下步骤使用 Windows PowerShell 管理 Active Directory Windows 组策略对象。
  1. 以下命令示例返回在指定域中找到的所有 GPO:
Get-GPO -All -Domain “TSDOMAIN.local”

 


下面的命令示例返回找到的所有 GPO
 
  1. Get-GPO 可用于返回特定 GPO 的常规信息。  下面的示例将返回“Team_WP”GPO 的一般信息:
Get-GPO -Name Team_WP

 

Get-GPO 可用于返回特定 GPO 的常规信息。
 
  1. 可以通过查询 GPO 的 GUID ID 返回 GPO 信息;下面的命令是一个示例:
Get-GPO -Guid cb6fe78f-8b4f-4a77-9320-6a087a9d2bcc -Domain “TSDOMAIN.local”


可以通过查询 GPO 的 GUID ID 返回 GPO 信息
  1. 下面的 Get-GPOReport 命令将返回找到的所有域 GPO 的综合报告,以 HTML 格式编译信息以供审查。
Get-GPOReport -All -Domain “TSDOMAIN.Local” -ReportType HTML -Path “C:\GPOReports\GPOReportsAll.html”

 

下面的 Get-GPOReport 命令将返回找到的所有域 GPO 的综合报告。
 
  1. 运行 Get-GPOReport 后,在上述命令中指定的文件路径创建 HTML 文件。
在文件路径上创建 HTML 文件
 
  1. 打开后的文件将显示为浏览器页面,其中包含有关找到的所有域 GPO 的详细信息。

打开时的文件将显示为浏览器页面,其中包含有关找到的所有域 GPO 的详细信息
 
 

Additional Information

请参阅此视频:


Article Properties


Affected Product
Software, Dell Quickstart Data Warehouse Appliance, Microsoft Windows Server 2016, Microsoft Windows Server 2019, Microsoft Windows Server 2022, Microsoft Windows Small Business Server 2008, Microsoft Windows Small Business Server 2008 , Microsoft Windows 2008 Server R2, Microsoft Windows 2008 Server Service Pack 2, Microsoft Windows 2012 Server, Microsoft Windows 2012 Server R2, Prosupport for Microsoft Software ...
Product

Microsoft Windows Small Business Server 2011 Essentials

Last Published Date

27 Oct 2023

Version

6

Article Type

How To