cleaned string variables
This commit is contained in:
@@ -41,8 +41,6 @@ foreach ($HKLMPrinterPaths in $HKLMPrinterPaths) {
|
||||
foreach ($sidKey in $sids) {
|
||||
$sid = $sidKey.PSChildName
|
||||
$profilePath = (Get-ItemProperty -Path $sidKey.PSPath -Name ProfileImagePath).ProfileImagePath
|
||||
|
||||
|
||||
|
||||
foreach ($printerPath in $printerPaths) {
|
||||
try {
|
||||
@@ -52,11 +50,6 @@ foreach ($sidKey in $sids) {
|
||||
Write-Host "Error: $($_.Exception.Message)"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (-not $mounted) {
|
||||
$unloadResult = & reg.exe unload "HKU\$sid" 2>&1
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user