I need to retrieve usernames of all users logged onto a Windows 2003 terminal server. The script below is posted on several sites, purporting to do just that. However, whilst the first WMI query does return the logon sessions, the
second returns nothing, so I cannot get the username. If...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.