function
$SecurityPrinciple
$RolesHash
[System.Enum]::GetNames("¡ãSystem.Security.Principal.WindowsBuiltInRole"¡À) |
$RolesHash[$_] $SecurityPrinciple.IsInRole([System.Security.Principal.WindowsBuiltInRole]::$_)
}
$RolesHash
}
Get-CurrentUserRoles |