All --
I am trying to create a web report to check for the states of currently logged in users on various windows server machines. I can achieve the desired output by running the following command in the command prompt on a windows server machine (the command comes from Terminal Services Manager as part of the Administrative Tools package on Windows Server):
QUERY USER /SERVER:<serverName>
What I've done in the past is, create a new command prompt Process in the code behind, and redirect the standard output to my string. I have sucessfully done this with 'tasklist' to get information about running processes on remote servers. However, this method did not seem to work for 'Query server'. The redirected output is empty. I am not sure what the problem is.
My best guess is that Query User requires admin right in order to retrieve the results. What is the best way (if any) to ...
Go to the complete details ...