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...