Files
GPOZaurr/Public/Find-CSExtension.ps1
T
Przemyslaw Klys 1974eb2a39 Update
2020-08-13 09:04:17 +02:00

16 lines
567 B
PowerShell

function Find-CSExtension {
[cmdletBinding()]
param(
[string] $CSE
)
#List Group Policy Client Side Extensions, CSEs, from Windows 10
$Keys = Get-PSRegistry -RegistryPath "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\GPExtensions" -ComputerName AD3
foreach ($Key in $Keys.PSSubKeys) {
$Value = (Get-PSRegistry -RegistryPath "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\GPExtensions\$Key" -ComputerName AD3).DefaultKey
if (-not $GUIDs[$Key]) {
"$Key $Value"
}
}
}