Fix sidItem
This commit is contained in:
1 parent
48090ea75c
commit
42c7892125
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user