tiny11builder
tiny11builder copied to clipboard
Adminstrator running fallback patch
Hi @ntdevlabs !
A few months ago, in the readme, we changed the Set-Execution policy to a process scoped one to avoid users exposing their machine.
That induces a new problem.
When we start the script without administrator rights, but with the Set-Executionpolicy scoped to Process, the script restarts itself with elevated rights but in the previously set execution policy (likely RemoteSigned).
This patch passes :
- NoProfile
- ExecutionPolicy Bypass
- NoExit
- File
To the newly created process.
- Fix #513
NoExit let users see errors. And i think his error is the
UnauthorizedAccess. So patched.