I am trying to loging into remote server using credentials from command line and checking for the users who got disconnected and I would make them logOff
programatically.
This is the way I'm trying to do as of now and bit working.But I'm getting all the users list which I don't want.
So far this is my code for finding out the users on remote desktop who got connected to it.
quser /server:myservername
For Logging Off individually I am using this:
logoff /server:myservername 1 /v
Now my question is If there are more than "1"
user how do I find the list of who all are got disconnected and make them LogOff.