Functions/Authentication/Get-AdminContext.ps1
Function Get-AdminContext { [Cmdletbinding()] Param() Process {([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator) } } |