and wins caches... user could have logged off 10 minutes ago.

I used netuser also, but this makes it much more scriptable. (and if WMIQuery() is in your library already...)

Note... I had to modify it to work against remote PCs. I have already updated the UDF in the forum
_________________________
How to ask questions the smart way <-----------> Before you ask