I thought at first that would work but noticed it kept returning an empty collection. From looking on the internet it appears that class will only work if the "Server" is a win 2003 server, in our case it isn't a true server just a XP pro machine so nothing happens. I even tried using a vbs script to execute it and received no output from the query. Even tried using localhost with no result. Any other ideas?
Main Topics
Browse All Topics





by: TheLearnedOnePosted on 2009-06-12 at 08:41:02ID: 24613326
I believe that you can get that information with WMI (Windows Management Instrumentation), and the Win32_ServerSession class.
Here is an example, using a Win32_ServerSession query:
Select allOpen in new window