There is probably a way via wmi (Should post this question in the script
newsgroup) but you could try and use the handle program and incorporate it
in your script.
The server is a filer, and the sysinternals PsLoggedOn util does not work on
this filer (but works well on regular Windows servers). The Computer
Management tool does give the info that I am looking for, and I can export
the list. I need to be able to query an updated list from within my VBScript
(each time it reads a new user account from AD), so I have been scouring the
Internet to find a way to do this.