{"id":3477,"date":"2014-08-21T16:12:21","date_gmt":"2014-08-21T08:12:21","guid":{"rendered":"http:\/\/rmohan.com\/?p=3477"},"modified":"2014-08-21T16:17:31","modified_gmt":"2014-08-21T08:17:31","slug":"logoff-user-remote-session-using-cmd","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=3477","title":{"rendered":"Logoff user remote session using CMD"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>Using CMD to kick user not properly logoff in remote session.<br \/>\nThis command to list out the user. Have 2 command :<\/p>\n<p>1 &#8211; quser \/SERVER : [server name]<\/p>\n<p>2 &#8211; qwinsta \/SERVER : [server name]<br \/>\nThis command to kick the user :<\/p>\n<p>1 &#8211; logoff \/SERVER : [server name] [session id]<br \/>\nExample :<\/p>\n<p>C:\\x&gt;quser \/SERVER:xxxx-xxxSxAPP<br \/>\nUSERNAME SESSIONNAME ID STATE IDLE TIME LOGON TIME<br \/>\nroot console 0 Active . 5\/21\/2011 5:09 AM<br \/>\nanuar 1 Disc none 6\/7\/2011 9:45 AM<br \/>\nizuan rdp-tcp#42 2 Active 59 6\/9\/2011 10:47AM<br \/>\nC:\\x&gt;qwinsta \/SERVER:xxxx-xxxSxAPP<br \/>\nUSERNAME SESSIONNAME ID STATE IDLE TIME LOGON TIME<br \/>\nroot console 0 Active . 5\/21\/2011 5:09 AM<br \/>\nanxxxxr 1 Disc none 6\/7\/2011 9:45 AM<br \/>\nizxxx rdp-tcp#42 2 Active 59 6\/9\/2011 10:47AM<br \/>\nC:\\Users\\azam&gt;logoff \/SERVER:xxxx-xxxSxAPP 1<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;<\/p>\n<p>Using CMD to kick user not properly logoff in remote session. This command to list out the user. Have 2 command :<\/p>\n<p>1 &#8211; quser \/SERVER : [server name]<\/p>\n<p>2 &#8211; qwinsta \/SERVER : [server name] This command to kick the user :<\/p>\n<p>1 &#8211; logoff \/SERVER : [server name] [session id] Example :<\/p>\n<p> [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[48],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3477"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3477"}],"version-history":[{"count":3,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3477\/revisions"}],"predecessor-version":[{"id":3480,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3477\/revisions\/3480"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3477"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3477"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}