Glenn is this the function i used to do the query? so I can use kix
while using the udf write?
 Quote:


Function WMIQuery($sWhat, $sFrom, Optional $sComputer, Optional $sWhere, Optional $x, Optional $root, Optional $pAuth)



so do I use the what and from parameters in the windows_32 object
how can I query a user on a remote machine. I want query a remote machine
get the local user off of it and run it thru a loop of machine names.
I have the LDAP function off of this site that works well pulling machine names from their respective OUs and then it will print something like this. I do not want it tooo complex just tthis:

Location: 4th ave

pcname1 rvandyke
pcname2 rmueller
pcname3 bmuellerc

Location: 8th street

pcname4 zmiller
pcname5 kstiller
pcname6 bbubba


something like that so I can do a visual scan of the branches and see
their name and pcname they are at...real simple but powerful results!

i just need to be pointed in right direction. I really dont know how to start your cool function wow! thanks



Edited by itdaddy (2009-07-31 05:53 PM)
_________________________
Robert
A+, CCNA, MCP
Network Admin
Credit Union Wisconsin