From 5eb0b0cccc43404e5b6de7ab5da9d1123af40179 Mon Sep 17 00:00:00 2001 From: David Yoder Date: Sat, 16 Apr 2022 10:36:01 -0400 Subject: [PATCH] oops --- Uninstall-AteraAgent.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Uninstall-AteraAgent.ps1 b/Uninstall-AteraAgent.ps1 index 0f70efa..b459ec2 100644 --- a/Uninstall-AteraAgent.ps1 +++ b/Uninstall-AteraAgent.ps1 @@ -20,7 +20,7 @@ Function Get-ProductKeys ([string]$ProductName) { Get-ChildItem -Path 'HKCR:Installer\Products' | ForEach-Object { If ( $(Get-ItemProperty -Path $_.PSPath -Name 'ProductName' -ErrorAction SilentlyContinue) -and ($(Get-ItemPropertyValue -Path $_.PSPath -Name 'ProductName' -ErrorAction SilentlyContinue) -eq $ProductName) ) { $prod = $_.PSPath.Substring($_.PSPath.Length - 32) - CLogMsg = "Found : ${prod}" + CLogMsg "Found : ${prod}" $ProductKeys.Add($prod) | Out-Null } }