{"id":1699,"date":"2020-12-23T02:31:51","date_gmt":"2020-12-23T00:31:51","guid":{"rendered":"https:\/\/itsimple.info\/?p=1699"},"modified":"2021-03-01T17:18:50","modified_gmt":"2021-03-01T15:18:50","slug":"how-to-connect-to-console-session-or-any-other-session-with-remote-desktop-connection-and-interact-control-it","status":"publish","type":"post","link":"https:\/\/itsimple.info\/?p=1699","title":{"rendered":"How To connect To console session or any other Session with Remote Desktop Connection and interact\/control it"},"content":{"rendered":"<p>When in need to connect remotely to windows server or windows 10. You can shadow the session and just view the user session or you can control it with the user it self on the same session .<\/p>\n<p>First you need to allow Remote control setting in the group policy by adding to the registry this value :<\/p>\n<p><a href=\"https:\/\/itsimple.info\/wp-content\/uploads\/2020\/12\/windows_shadow-session-policy-set-rules-for-r.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1700\" src=\"https:\/\/itsimple.info\/wp-content\/uploads\/2020\/12\/windows_shadow-session-policy-set-rules-for-r.png\" alt=\"\" width=\"993\" height=\"675\" srcset=\"https:\/\/itsimple.info\/wp-content\/uploads\/2020\/12\/windows_shadow-session-policy-set-rules-for-r.png 993w, https:\/\/itsimple.info\/wp-content\/uploads\/2020\/12\/windows_shadow-session-policy-set-rules-for-r-300x204.png 300w, https:\/\/itsimple.info\/wp-content\/uploads\/2020\/12\/windows_shadow-session-policy-set-rules-for-r-768x522.png 768w\" sizes=\"auto, (max-width: 993px) 100vw, 993px\" \/><\/a><\/p>\n<p>Or by adding Dword key <em><strong>shadow<\/strong><\/em> to the registry :<\/p>\n<pre><strong>HKLM\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Terminal Services<\/strong> registry key. The allowed values are:\n\n<strong>0<\/strong> \u2013 disable remote control;\n<strong>1<\/strong> \u2014 full control with user\u2019s permission;\n<strong>2<\/strong> \u2014 full control without user\u2019s permission;\n<strong>3<\/strong> \u2014 view session with user\u2019s permission;\n<strong>4<\/strong> \u2014 view session without user\u2019s permission.<\/pre>\n<p>You can also copy this lines-&gt; seve it as .reg file and import it to the registry (in this case option 2)<\/p>\n<pre>Windows Registry Editor Version 5.00\n\n[HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\Terminal Services]\n\"Shadow\"=dword:00000002<\/pre>\n<p>Don&#8217;t forget to enable the RDP :<\/p>\n<p><a href=\"https:\/\/itsimple.info\/wp-content\/uploads\/2020\/12\/enable-rdp-on-windows-10-computer.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1703\" src=\"https:\/\/itsimple.info\/wp-content\/uploads\/2020\/12\/enable-rdp-on-windows-10-computer.png\" alt=\"\" width=\"592\" height=\"571\" srcset=\"https:\/\/itsimple.info\/wp-content\/uploads\/2020\/12\/enable-rdp-on-windows-10-computer.png 592w, https:\/\/itsimple.info\/wp-content\/uploads\/2020\/12\/enable-rdp-on-windows-10-computer-300x289.png 300w\" sizes=\"auto, (max-width: 592px) 100vw, 592px\" \/><\/a><\/p>\n<p>And enable network printer and sharing<\/p>\n<p><a href=\"https:\/\/itsimple.info\/wp-content\/uploads\/2020\/12\/NetworkSharing.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1776\" src=\"https:\/\/itsimple.info\/wp-content\/uploads\/2020\/12\/NetworkSharing.png\" alt=\"\" width=\"1088\" height=\"616\" srcset=\"https:\/\/itsimple.info\/wp-content\/uploads\/2020\/12\/NetworkSharing.png 1088w, https:\/\/itsimple.info\/wp-content\/uploads\/2020\/12\/NetworkSharing-300x170.png 300w, https:\/\/itsimple.info\/wp-content\/uploads\/2020\/12\/NetworkSharing-1024x580.png 1024w, https:\/\/itsimple.info\/wp-content\/uploads\/2020\/12\/NetworkSharing-768x435.png 768w\" sizes=\"auto, (max-width: 1088px) 100vw, 1088px\" \/><\/a><\/p>\n<p>Now we are ready to shadow or control the session, first you can use <em><strong>quser<\/strong><\/em> or <em><strong>qwinsta<\/strong><\/em> to get the details about the sessions on the remote computer, you can also use (with the right permissions):<\/p>\n<p><code>query session \/server:servername<\/code><\/p>\n<p>now that you know the wanted session ID you can use MSTSC with all this option :<\/p>\n<ul>\n<li><span style=\"color: #993300;\"><strong>\/shadow:ID<\/strong> \u2013 connect to the RDP session with the specified ID.<\/span><\/li>\n<li><span style=\"color: #993300;\"><strong>\/v:servername <\/strong>\u2013 hostname or IP address of the RDP \/ RDS server (if not set, a current server \/ computer will be used).<\/span><\/li>\n<li><span style=\"color: #993300;\"><strong>\/prompt<\/strong> \u2013 request a user credentials to connect (if not specified, you will be connected with the current user credentials).<\/span><\/li>\n<li><span style=\"color: #993300;\"><strong>\/control<\/strong> \u2013 the mode that allows to interact with the user session. If the parameter is not set, you will be connected to a user session in a view mode, i. e. you won\u2019t be able to control a user\u2019s mouse or enter data from the keyboard;<\/span><\/li>\n<li><span style=\"color: #993300;\"><strong>\/noConsentPrompt<\/strong> \u2013 allows not to prompt the user for confirmation to connect to a session.<\/span><\/li>\n<\/ul>\n<p>For example if you want just to shadow a session with out user permission or knowing, use\u00a0 :<\/p>\n<pre><span style=\"color: #993300;\"><strong>Mstsc.exe<\/strong> \/shadow:sessionID \/v:Servername \/noConsentPrompt<\/span><\/pre>\n<p>If you want to support the user and control the session the user screen<\/p>\n<pre><span style=\"color: #993300;\"><strong>Mstsc.exe<\/strong> \/shadow:sessionID \/v:Servername \/control<\/span><\/pre>\n<p>If you want to tkae control without the user permission :<\/p>\n<pre><span style=\"color: #993300;\"><strong>Mstsc.exe<\/strong> \/shadow:sessionID \/v:Servername \/control \/noConsentPrompt<\/span><\/pre>\n<p>This will work also on console session aswell , command example when server IP is 192.168.1.1 and the console session id is 1, run from cmd as admin :<\/p>\n<pre><span style=\"color: #008000;\">mstsc \/v:192.168.1.5 \/shadow:1 \/noconsentprompt \/prompt \/control<\/span><\/pre>\n<hr \/>\n<h3>Good Luck<\/h3>\n","protected":false},"excerpt":{"rendered":"<p>When in need to connect remotely to windows server or windows 10. You can shadow the session and just view the user session or you can control it with the user it self on the same session . First you need to allow Remote control setting in the group policy by adding to the registry [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,12,14,15],"tags":[],"class_list":["post-1699","post","type-post","status-publish","format-standard","hentry","category-tech","category-tutorials","category-windows","category-windows-server"],"_links":{"self":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/1699","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1699"}],"version-history":[{"count":0,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/1699\/revisions"}],"wp:attachment":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1699"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1699"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1699"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}