Drop elevation privileges in Windows
This commit is contained in:
parent
25b3ae36de
commit
a2dcc3e91d
1 changed files with 3 additions and 0 deletions
|
@ -67,6 +67,9 @@ if ($IsWindows -or ($env:OS -eq "Windows_NT")) {
|
||||||
function who {
|
function who {
|
||||||
& "$env:SystemRoot\System32\query.exe" user
|
& "$env:SystemRoot\System32\query.exe" user
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Drop elevation privileges.
|
||||||
|
$env:__COMPAT_LAYER = "RunAsInvoker"
|
||||||
}
|
}
|
||||||
|
|
||||||
Set-PSReadlineOption -BellStyle None
|
Set-PSReadlineOption -BellStyle None
|
||||||
|
|
Loading…
Reference in a new issue