Esempio n. 1
0
 def is_high_integrity(self):
     identity = WindowsIdentity.GetCurrent()
     principal = WindowsPrincipal(identity)
     return principal.IsInRole(WindowsBuiltInRole.Administrator)
Esempio n. 2
0
def IsHighIntegrity():
    identity = WindowsIdentity.GetCurrent()
    principal = WindowsPrincipal(identity)
    return principal.IsInRole(WindowsBuiltInRole.Administrator)