I've used quser before to query users on the local server. I noticed today that it has an option for querying a remote server. However, when I tried it, I keep getting the following error:
C:\Users\nimmylebby>quser administrator /SERVER:remote_server Error 0x00000005 enumerating sessionnames Error :Access is denied.
I'm assuming it's because I do not provide a password? But I do not see an option to provide password. Here is the help doc:
C:\Users\nimmylebby>quser /? Display information about users logged on to the system. QUERY USER [username | sessionname | sessionid] [/SERVER:servername] username Identifies the username. sessionname Identifies the session named sessionname. sessionid Identifies the session with ID sessionid. /SERVER:servername The server to be queried (default is current).
Perhaps I'm misunderstanding the quser command? Is there a more appropriate command for this?