Evening all,
Been racking my brain trying many methods and alot of googling but I am drawing a blank on this one!
I need to be able to pull get the windows user session id's for a remote computer (same LAN on a domain). I can do this very easily in command prompt by using "quser /server {remote_pc_name_or_ip}.
I have not found a way of doing this directly in VB.net so as a work around I have tried to run quser.exe as a process and via a batch script and via running cmd with arguments. With all of these methods I have tried redirecting the output and not redirecting it but rather in the batch script outputting to a text file and none of them work! I get just a blank output.
Here is what just running the command in cmd shows:
USERNAME SESSIONNAME ID STATE IDLE TIME LOGON TIME
{user} console 1 Active none 15/06/2021 17:22
If anyone has any assistance I would greatly appreciate it!!!! Thanks.
Been racking my brain trying many methods and alot of googling but I am drawing a blank on this one!
I need to be able to pull get the windows user session id's for a remote computer (same LAN on a domain). I can do this very easily in command prompt by using "quser /server {remote_pc_name_or_ip}.
I have not found a way of doing this directly in VB.net so as a work around I have tried to run quser.exe as a process and via a batch script and via running cmd with arguments. With all of these methods I have tried redirecting the output and not redirecting it but rather in the batch script outputting to a text file and none of them work! I get just a blank output.
Here is what just running the command in cmd shows:
USERNAME SESSIONNAME ID STATE IDLE TIME LOGON TIME
{user} console 1 Active none 15/06/2021 17:22
If anyone has any assistance I would greatly appreciate it!!!! Thanks.