forked from p15670423/monkey
fix
This commit is contained in:
parent
dd0b73519c
commit
6779d4c758
|
@ -167,10 +167,10 @@ class Machine(object):
|
||||||
return GUIDs
|
return GUIDs
|
||||||
|
|
||||||
def GetLocalAdmins(self):
|
def GetLocalAdmins(self):
|
||||||
return self.GetUsersByGroupSid(self.GetGroupSidByGroupName("Administrators")).keys()
|
return set(self.GetUsersByGroupSid(self.GetGroupSidByGroupName("Administrators")).keys())
|
||||||
|
|
||||||
def GetLocalAdminNames(self):
|
def GetLocalAdminNames(self):
|
||||||
return self.GetUsersByGroupSid(self.GetGroupSidByGroupName("Administrators")).values()
|
return set(self.GetUsersByGroupSid(self.GetGroupSidByGroupName("Administrators")).values())
|
||||||
|
|
||||||
def GetLocalAdminSecrets(self):
|
def GetLocalAdminSecrets(self):
|
||||||
admin_names = self.GetLocalAdminNames()
|
admin_names = self.GetLocalAdminNames()
|
||||||
|
|
Loading…
Reference in New Issue