Drop elevation privileges in Windows

This commit is contained in:
Anthony Rose 2024-01-11 11:30:53 +00:00
parent 25b3ae36de
commit a2dcc3e91d

View file

@ -67,6 +67,9 @@ if ($IsWindows -or ($env:OS -eq "Windows_NT")) {
function who {
& "$env:SystemRoot\System32\query.exe" user
}
# Drop elevation privileges.
$env:__COMPAT_LAYER = "RunAsInvoker"
}
Set-PSReadlineOption -BellStyle None