- 1 year ago
How to get Client Side Extension (CSE) GUID of a policy area and MMC snap-in GUID of that same policy area?
To get the Client Side Extension (CSE) GUID and MMC snap-in GUID of a policy area, you can use the Group Policy Management Console (GPMC) as follows:
Open the GPMC by typing "gpmc.msc" in the Run dialog (Windows key + R) or by searching for it in the Start menu.
Navigate to the policy area of interest in the GPMC console tree.
Right-click the policy area and select "Properties".
In the Properties dialog, go to the "Details" tab.
The CSE GUID will be displayed under "Unique ID", and the MMC snap-in GUID will be displayed under "Snap-in ID".
Alternatively, you can use the following PowerShell commands to retrieve the CSE GUID and MMC snap-in GUID for a policy area:
bash$policyArea = "Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options"
$gpo = Get-GPO -Name "MyGpoName"
$gpoPath = "\\$($gpo.DomainName)\SYSVOL\$($gpo.DomainName)\Policies\$($gpo.Id)\{31B2F340-016D-11D2-945F-00C04FB984F9}"
$cseGuid = (Get-ChildItem "$gpoPath\Machine\Microsoft\Windows NT\SecEdit" -Filter "*.inf" | Select-Object -Last 1).BaseName
$mmcSnapInGuid = (Get-ChildItem "$gpoPath\Machine\Microsoft\Windows\CurrentVersion\Policies\System" -Filter "policies.inf" | Select-Object -Last 1).BaseName
Replace "MyGpoName" with the name of the GPO that contains the policy area of interest, and replace "$policyArea" with the path to the policy area relative to the root of the GPO. The script will output the CSE GUID and MMC snap-in GUID for the policy area.