{"id":994,"date":"2020-03-04T12:55:17","date_gmt":"2020-03-04T11:55:17","guid":{"rendered":"https:\/\/www.em-soft.si\/myblog\/elvis\/?p=994"},"modified":"2020-03-04T12:55:17","modified_gmt":"2020-03-04T11:55:17","slug":"did-you-close-cmd-window-on-server-core","status":"publish","type":"post","link":"https:\/\/em-soft.si\/myblog\/elvis\/?p=994","title":{"rendered":"Did you close CMD window on Server core?"},"content":{"rendered":"\n<p>Yes, in some cases this can be a problem. As is true, that if you are connected in remote to a computer, you can just press CTRL + ALT + END and start a new window in Task Manager, this becomes more difficult if you are remote connected in remote session. In This case this shortcut will not work.<br \/>Well, the problem is pretty easy to solve:<br \/>Run PowerShell as Administrator on some other computer and find the session ID with command:<br \/><em><strong>QUSER \/Server:ServerName<\/strong><\/em><br \/>You will see all active connections and here you will find also a SessionID for the connection that you want to kill.<br \/>Now you know your SessionID and finaly you can kill the connection. This can be done in two ways:<br \/>&#8211; As command in CMD: <em><strong>logoff Your_SessionID \/server:ServerName<\/strong><\/em><br \/>&#8211; In PowerShell: <strong><em>Invoke-RDUserLogoff -HostServer ServerName -UnifiedSessionId SessionID<\/em><\/strong><br \/>Well, now you lose your session and if you will connect to that server, you will have a new session with your CMD window opened.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yes, in some cases this can be a problem. As is true, that if you are connected in remote to a computer, you can just press CTRL + ALT + END and start a new window in Task Manager, this becomes more difficult if you are remote connected in remote session. In This case this [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,32,15],"tags":[41,40],"class_list":["post-994","post","type-post","status-publish","format-standard","hentry","category-management","category-powershell","category-windows-server","tag-powershell","tag-windows-server"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/posts\/994","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=994"}],"version-history":[{"count":1,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/posts\/994\/revisions"}],"predecessor-version":[{"id":995,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=\/wp\/v2\/posts\/994\/revisions\/995"}],"wp:attachment":[{"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=994"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=994"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/em-soft.si\/myblog\/elvis\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=994"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}