Commit fd0f5cb0 authored by Dustin L. Howett's avatar Dustin L. Howett

prompt: fix detection of powershell non-core for checking admin

parent f12f0bad
......@@ -45,7 +45,7 @@ Function pe_NestedPromptLevel {
}
Function pe_Sigil {
If($IsWindows) {
If($Null -eq $IsWindows -Or $IsWindows) {
if((
New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent())
).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment