Fix unload

This commit is contained in:
2023-11-06 13:24:44 +01:00
parent e571f6fa18
commit bca0073439

View File

@@ -87,6 +87,7 @@ function SetupEleveReg {
}
Write-Host "Added registry entries"
Write-Host "Unloading registry HIVE"
Start-Sleep -s 5
Write-Host "REG UNLOAD HKEY_USERS\$UserSID"
$res = REG UNLOAD HKEY_USERS\$UserSID
if ($res -ne 0) {