From 42c78921251aa9c14731f15c3845b5b7508b6b47 Mon Sep 17 00:00:00 2001 From: poslop Date: Thu, 15 Jan 2026 15:35:36 -0600 Subject: [PATCH] Fix sidItem --- RemoveHKeyPrinters/RemoveHKeyPrinters.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RemoveHKeyPrinters/RemoveHKeyPrinters.ps1 b/RemoveHKeyPrinters/RemoveHKeyPrinters.ps1 index 1f85302..82eafae 100644 --- a/RemoveHKeyPrinters/RemoveHKeyPrinters.ps1 +++ b/RemoveHKeyPrinters/RemoveHKeyPrinters.ps1 @@ -40,7 +40,7 @@ foreach ($HKLMPrinterPaths in $HKLMPrinterPaths) { foreach ($sidItem in $sids) { $sid = $sidItem.PSChildName - $profilePath = (Get-ItemProperty -Path $sid.PSPath -Name ProfileImagePath).ProfileImagePath + $profilePath = (Get-ItemProperty -Path $sidItem.PSPath -Name ProfileImagePath).ProfileImagePath foreach ($HKUsersPrinterPath in $HKUsersPrinterPaths) { try {