Updated unload
This commit is contained in:
@@ -86,7 +86,7 @@ function SetupEleveReg {
|
||||
}
|
||||
Write-Host "Added registry entries"
|
||||
Write-Host "Unloading registry HIVE"
|
||||
Start-Process -FilePath "cmd.exe" -Verb RunAs -ArgumentList "REG UNLOAD HKEY_USERS\$UserSID"
|
||||
Start-Process cmd -ArgumentList "/c REG UNLOAD HKEY_USERS\$UserSID" -Verb RunAs
|
||||
} else {
|
||||
Write-Host "Unable to get the user's HKU registry."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user