Public/Get-SpecPrivilegeLevelSwitch.ps1
function Get-SpecPrivilegeLevelSwitch { param ( $PrivilegeLevel ) # set the runlevel if ([string]::IsNullOrEmpty($PrivilegeLevel)) { return $false } elseif ($PrivilegeLevel -eq 'Highest') { return $true } else { return $false } } |