It's a old topic, still a year, but still useable for some people.
A question to MDuiker, how can I check the output for the users username with the command "NBTSTAT -a $LoggedOnTo" ?
I understand you suggestion and I think it must work.

------------------
http://www.sanderwinkel.com