This commit is contained in:
Oran Nadler 2018-03-04 04:11:15 -08:00
parent dd0b73519c
commit 6779d4c758
1 changed files with 2 additions and 2 deletions

View File

@ -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()