From bca007343970bc8b5b28565c8ac79dc02b552c06 Mon Sep 17 00:00:00 2001 From: Lightemerald Date: Mon, 6 Nov 2023 13:24:44 +0100 Subject: [PATCH] Fix unload --- setupReg.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/setupReg.ps1 b/setupReg.ps1 index 4c047f6..0d13054 100644 --- a/setupReg.ps1 +++ b/setupReg.ps1 @@ -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) {