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。本機是以下命令中的範例,應更換為正在收集 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