def DumpLocalUsers():
 path = ('WinNT://%s,computer' % (local_name,))
 ob = ADsGetObject(path, IID_IADsContainer)
 ob.put_Filter(['User', 'Group'])
 for sub_ob in ob:
  print ('User/Group: %s (%s)' % (sub_ob.Name, sub_ob.ADsPath))

def DumpLocalUsers ( ) : path = ( 'WinNT://%s,computer' % ( local_name , ) ) ob = ADsGetObject ( path , IID_IADsContainer ) ob . put_Filter ( [ 'User' , 'Group' ] ) for sub_ob in ob : print ( 'User/Group: %s (%s)' % ( sub_ob . Name , sub_ob . ADsPath ) )
dumps the local machine users .