humbletech99
Programmer
I am trying to find a way to enumerate all the logged on users on Windows systems. I have used WMI to find the local user session if there is one on any windows machine, but I also want to find any users logged on via Terminal sessions on Windows 2003 Terminal Servers.
I have also used WMI to get all the users who have sessions open, but this includes people who've just used a file share like \\server\share\filename.ext.
Does anyone know how I can programmatically (or via cmd) find out the users that have Terminal Server Sessions?
I have also used WMI to get all the users who have sessions open, but this includes people who've just used a file share like \\server\share\filename.ext.
Does anyone know how I can programmatically (or via cmd) find out the users that have Terminal Server Sessions?