Fix sidItem
This commit is contained in:
@@ -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