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." }