From d5b9b22345f941d7b61ef37c7444294669bc7b66 Mon Sep 17 00:00:00 2001 From: Lightemerald Date: Mon, 6 Nov 2023 13:11:55 +0100 Subject: [PATCH] Updated unload --- setupReg.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setupReg.ps1 b/setupReg.ps1 index d199d9f..4b7bf1a 100644 --- a/setupReg.ps1 +++ b/setupReg.ps1 @@ -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." }