From 91d37764033b6df5da35dcced211b983278535f6 Mon Sep 17 00:00:00 2001 From: Przemyslaw Klys Date: Fri, 28 Aug 2020 09:30:09 +0200 Subject: [PATCH] Update to Find-CSExtension --- Public/Find-CSExtension.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Public/Find-CSExtension.ps1 b/Public/Find-CSExtension.ps1 index f9e5757..9b4f639 100644 --- a/Public/Find-CSExtension.ps1 +++ b/Public/Find-CSExtension.ps1 @@ -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 } }