def UserEnum():
 resume = 0
 nuser = 0
 while 1:
  (data, total, resume) = win32net.NetUserEnum(server, 3, win32netcon.FILTER_NORMAL_ACCOUNT, resume)
  verbose(('Call to NetUserEnum obtained %d entries of %d total' % (len(data), total)))
  for user in data:
   verbose(('Found user %s' % user['name']))
   nuser = (nuser + 1)
  if (not resume):
   break
 assert nuser, 'Could not find any users!'
 print 'Enumerated all the local users'

def UserEnum ( ) : resume = 0 nuser = 0 while 1 : ( data , total , resume ) = win32net . NetUserEnum ( server , 3 , win32netcon . FILTER_NORMAL_ACCOUNT , resume ) verbose ( ( 'Call to NetUserEnum obtained %d entries of %d total' % ( len ( data ) , total ) ) ) for user in data : verbose ( ( 'Found user %s' % user [ 'name' ] ) ) nuser = ( nuser + 1 ) if ( not resume ) : break assert nuser , 'Could not find any users!' print 'Enumerated all the local users'
enumerates all the local users .