Update to Find-CSExtension

This commit is contained in:
Przemyslaw Klys
2020-08-28 09:30:09 +02:00
parent b4748918f5
commit 91d3776403
+1 -1
View File
@@ -9,7 +9,7 @@ function Find-CSExtension {
foreach ($Key in $Keys.PSSubKeys) {
$RegistryKey = Get-PSRegistry -RegistryPath "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\GPExtensions\$Key" -ComputerName $ComputerName
if ($CSE) {
foreach ($C in CSE) {
foreach ($C in $CSE) {
if ($RegistryKey.DefaultKey -eq $Key) {
[PSCustomObject] @{ Name = $Key; Description = $RegistryKey.DefaultKey }
}