[nanny/win32: 55/75] Remove HomeGroupUser$ from user list [WIN7]



commit 0918b2f5bcc0023827d0e509cdf5df01ddcb7c8e
Author: Roberto Majadas <roberto majadas openshine com>
Date:   Sat Oct 23 17:00:35 2010 +0200

    Remove HomeGroupUser$ from user list [WIN7]

 daemon/src/Win32UsersManager.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/daemon/src/Win32UsersManager.py b/daemon/src/Win32UsersManager.py
index 74b55db..e22de9d 100644
--- a/daemon/src/Win32UsersManager.py
+++ b/daemon/src/Win32UsersManager.py
@@ -44,7 +44,7 @@ class Win32UsersManager:
         if qry.count > 0:
             for result in qry:
                 uid = str(result.SID).split("-")[-1]
-                if int(uid) >= 1000 :
+                if int(uid) >= 1000 and result.Name != "HomeGroupUser$" :
                     users.append((uid, unicode(result.Name), unicode(result.FullName)))
         self.last_time = time.time()
         self.users = users



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]