{"id":3456,"date":"2017-10-23T21:09:27","date_gmt":"2017-10-24T04:09:27","guid":{"rendered":"https:\/\/www.coretechnologies.com\/blog\/?p=3456"},"modified":"2017-10-23T21:09:27","modified_gmt":"2017-10-24T04:09:27","slug":"access-session-0-with-vnc","status":"publish","type":"post","link":"https:\/\/www.coretechnologies.com\/blog\/windows-services\/access-session-0-with-vnc\/","title":{"rendered":"How to Use VNC to Remotely Access Session 0 (with Keyboard and Mouse!)"},"content":{"rendered":"<div align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/images\/remotely-access-session-0-with-vnc.png\" width=\"481\" height=\"168\" title=\"Remotely Access Session 0 with VNC\" alt=\"Remotely Access Session 0 with VNC\" border=\"0\" ><\/div>\n<p><\/p>\n<p>Windows 10 and Windows Server 2016 contain a curious problem affecting interactive windows services. <b>When you switch to Session 0, you cannot use the keyboard and mouse.<\/b> This frustrating flaw makes it impossible to interact with any window displayed in Session 0. You can&#8217;t even click the &#8220;Return Now&#8221; button to go back to your regular desktop!<\/p>\n<p>Hopefully Microsoft will fix this bug soon. But if you are using RDP to connect to the server running AlwaysUp, you can use the free and reliable <a href=\"https:\/\/en.wikipedia.org\/wiki\/Virtual_Network_Computing\" target=\"_blank\" rel=\"noopener noreferrer\">VNC software<\/a> instead, to resume normal operation in Session 0.<\/p>\n<h2><b>What is VNC?<\/b><\/h2>\n<p>VNC (which stands for Virtual Network Computing) is a cross-platform technology facilitating remote desktop sharing and control. It is very similar to Microsoft&#8217;s RDP. With VNC, you install a software component on the machine you wish to view\/control (&#8220;the server&#8221;) and run another component installed on your local computer (&#8220;the client&#8221;) to access the server&#8217;s desktop.<\/p>\n<h2><b>Which version of VNC should I use?<\/b><\/h2>\n<p>Several implementations of VNC are available for Windows. We have used (and can recommend) <a href=\"https:\/\/www.realvnc.com\/en\/\" target=\"_blank\" rel=\"noopener noreferrer\">RealVNC<\/a>, <a href=\"http:\/\/www.uvnc.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">UltraVNC<\/a> and <a href=\"http:\/\/tightvnc.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">TightVNC<\/a>, but this article will focus on TightVNC because it is:<\/p>\n<ul>\n<li>actively maintained<\/li>\n<li>free for both personal and commercial use<\/li>\n<li>fully supported on Server operating systems<\/li>\n<li>already installed and in daily use on our Windows Server 2016 QA\/test server! \ud83d\ude42<\/li>\n<\/ul>\n<p>\nNote however that <a href=\"http:\/\/www.tightvnc.com\/faq.php#howsecure\" target=\"_blank\" rel=\"noopener noreferrer\">TightVNC does not currently encrypt desktop traffic<\/a>. Look to UltraVNC or RealVNC Professional Edition if that is an important consideration.<\/p>\n<p><h2><b>How to Use TightVNC to Access Session 0 Remotely<\/b><\/h2>\n<ol style=\"margin-left:1.3em;padding:0;\">\n<li>\n<h3><b>Download TightVNC for Windows<\/b><\/h3>\n<\/li>\n<p>Grab the latest 64-bit or 32-bit installer from the <a href=\"http:\/\/tightvnc.com\/download.php\" target=\"_blank\" rel=\"noopener noreferrer\">TightVNC download page<\/a>. It will only be a couple of megabytes large.<\/p>\n<p>We will run the installer on both the server and client machines.<\/p>\n<li>\n<h3><b>Install TightVNC on the Remote Server<\/b><\/h3>\n<\/li>\n<ol type=\"a\" style=\"margin-left:1.3em;padding:0;\">\n<li>\n<p>Run the installer on your server (the computer running AlwaysUp):<\/p>\n<div align=\"left\"><a href=\"\/blog\/images\/tightvnc-server-install-welcome.png\" class=\"zoomPopup\" rel=\"zoomgroup noopener noreferrer\" title=\"TightVNC Server Install: Welcome\" target=\"_blank\"><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/images\/tightvnc-server-install-welcome.png\" width=\"495\" height=\"387\" title=\"TightVNC Server Install: Welcome (click to enlarge)\" alt=\"TightVNC Server Install: Welcome\" border=\"0\" ><\/a><\/div>\n<\/p>\n<\/li>\n<li>\n<p>Accept the terms and click Next. When you get to the <b>Choose Setup Type<\/b> screen, click the <b>Custom<\/b> button:<\/p>\n<div align=\"left\"><a href=\"\/blog\/images\/tightvnc-server-install-custom-setup-type.png\" class=\"zoomPopup\" rel=\"zoomgroup noopener noreferrer\" title=\"TightVNC Server Install: Choose Custom\" target=\"_blank\"><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/images\/tightvnc-server-install-custom-setup-type.png\" width=\"495\" height=\"387\" title=\"TightVNC Server Install: Choose Custom (click to enlarge)\" alt=\"TightVNC Server Install: Choose Custom\" border=\"0\" ><\/a><\/div>\n<\/p>\n<\/li>\n<li>\n<p>On the <b>Custom Setup Type<\/b> screen, configure the tree so that <b>TightVNC Server<\/b> will be installed. We decided to omit the TightVNC Viewer since we have no need for that component on the server:<\/p>\n<div align=\"left\"><a href=\"\/blog\/images\/tightvnc-server-install-select-server.png\" class=\"zoomPopup\" rel=\"zoomgroup noopener noreferrer\" title=\"TightVNC Server Install: Select Server\" target=\"_blank\"><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/images\/tightvnc-server-install-select-server.png\" width=\"495\" height=\"387\" title=\"TightVNC Server Install: Select Server (click to enlarge)\" alt=\"TightVNC Server Install: Select Server border=\"0\" ><\/a><\/div>\n<p>Click Next to continue.\n<\/p>\n<\/li>\n<li>\n<p>We recommend sticking with the defaults on the <b>Select Additional Tasks<\/b> screen. It is best to run VNC as a windows\/system service so that it starts promptly after a reboot, without anyone having to log in first:<\/p>\n<div align=\"left\"><a href=\"\/blog\/images\/tightvnc-server-install-additional-tasks.png\" class=\"zoomPopup\" rel=\"zoomgroup noopener noreferrer\" title=\"TightVNC Server Install: Additional Tasks\" target=\"_blank\"><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/images\/tightvnc-server-install-additional-tasks.png\" width=\"495\" height=\"387\" title=\"TightVNC Server Install: Additional Tasks (click to enlarge)\" alt=\"TightVNC Server Install: Additional Tasks\" border=\"0\" ><\/a><\/div>\n<\/p>\n<\/li>\n<li>\n<p>The rest of the installation process should be straightforward so please proceed with your good judgment. Be sure to set strong passwords when you get to the <b>Set Passwords<\/b> step!<\/p>\n<div align=\"left\"><a href=\"\/blog\/images\/tightvnc-server-install-passwords.png\" class=\"zoomPopup\" rel=\"zoomgroup noopener noreferrer\" title=\"TightVNC Server Install: Set Passwords\" target=\"_blank\"><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/images\/tightvnc-server-install-passwords.png\" width=\"451\" height=\"401\" title=\"TightVNC Server Install: Set Passwords (click to enlarge)\" alt=\"TightVNC Server Install: Set Passwords\" border=\"0\" ><\/a><\/div>\n<\/p>\n<\/li>\n<\/ol>\n<p>After installing, TightVNC Server will be running in the background as a windows service (and will start automatically when your server boots). Check it out in <a href=\"\/blog\/windows-services\/essential-tools-windows-services-msc\/\" target=\"_blank\" rel=\"noopener noreferrer\">Services.msc<\/a>:<br \/>\n<a href=\"\/blog\/images\/tightvnc-server-windows-service.png\" class=\"zoomPopup\" rel=\"zoomgroup noopener noreferrer\" title=\"TightVNC Server Windows Service\" target=\"_blank\"><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/images\/tightvnc-server-windows-service.png\" width=\"406\" height=\"468\" title=\"TightVNC Server Windows Service (click to enlarge)\" alt=\"TightVNC Server Windows Service\" border=\"0\" ><\/a><\/p>\n<li>\n<h3><b>Install TightVNC on the Client<\/b><\/h3>\n<\/li>\n<ol type=\"a\" style=\"margin-left:1.3em;padding:0;\">\n<li>\n<p>Launch the installer to your client computer &#8212; most likely your PC with the physical keyboard and mouse attached.<\/p>\n<\/li>\n<li>\n<p>When you get to the <b>Choose Setup Type<\/b> screen, once again click the <b>Custom<\/b> button:<br \/>\n<a href=\"\/blog\/images\/tightvnc-viewer-install-custom-setup-type.png\" class=\"zoomPopup\" rel=\"zoomgroup noopener noreferrer\" title=\"TightVNC Viewer Install: Choose Custom\" target=\"_blank\"><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/images\/tightvnc-viewer-install-custom-setup-type.png\" width=\"520\" height=\"410\" title=\"TightVNC Viewer Install: Choose Custom (click to enlarge)\" alt=\"TightVNC Viewer Install: Choose Custom\" border=\"0\" ><\/a>\n<\/p>\n<\/li>\n<li>\n<p>On the <b>Custom Setup Type<\/b> screen, configure the tree so that only <b>TightVNC Viewer<\/b> will be installed:<br \/>\n<a href=\"\/blog\/images\/tightvnc-viewer-install-select-viewer.png\" class=\"zoomPopup\" rel=\"zoomgroup noopener noreferrer\" title=\"TightVNC Viewer Install: Select Viewer\" target=\"_blank\"><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/images\/tightvnc-viewer-install-select-viewer.png\" width=\"518\" height=\"407\" title=\"TightVNC Viewer Install: Select Viewer (click to enlarge)\" alt=\"TightVNC Viewer Install: Select Viewer\" border=\"0\"><\/a><br \/>\nClick Next to continue.\n<\/p>\n<\/li>\n<li>\n<p>Again, the defaults on the <b>Select Additional Tasks<\/b> screen are probably fine:<br \/>\n<a href=\"\/blog\/images\/tightvnc-viewer-install-additional-tasks.png\" class=\"zoomPopup\" rel=\"zoomgroup noopener noreferrer\" title=\"TightVNC Viewer Install: Additional Tasks\" target=\"_blank\"><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/images\/tightvnc-viewer-install-additional-tasks.png\" width=\"523\" height=\"407\" title=\"TightVNC Viewer Install: Additional Tasks (click to enlarge)\" alt=\"TightVNC Viewer Install: Additional Tasks\" border=\"0\" ><\/a>\n<\/p>\n<\/li>\n<li>\n<p>Follow the remaining prompts to complete the installation.<\/p>\n<\/li>\n<\/ol>\n<p>TightVNC Viewer will be available in the <b>C:\\Program Files\\TightVNC<\/b> folder. You may want to place a shortcut to the viewer application (tvnviewer.exe) on your desktop for convenience.<\/p>\n<li>\n<h3><b>Run the Viewer to Connect to the Server &amp; Switch to Session 0<\/b><\/h3>\n<\/li>\n<ol type=\"a\" style=\"margin-left:1.3em;padding:0;\">\n<li>\n<p>Start the Viewer application (C:\\Program Files\\TightVNC\\tvnviewer.exe) on your client PC. Type in the host name (or IP address) of the server and click the <b>Connect<\/b> button:<br \/>\n<a href=\"\/blog\/images\/tightvnc-viewer-new-connection.png\" class=\"zoomPopup\" rel=\"zoomgroup noopener noreferrer\" title=\"TightVNC Viewer: New Connection\" target=\"_blank\"><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/images\/tightvnc-viewer-new-connection.png\" width=\"464\" height=\"338\" title=\"TightVNC Viewer: New Connection (click to enlarge)\" alt=\"TightVNC Viewer: New Connection\" border=\"0\" ><\/a>\n<\/p>\n<\/li>\n<li>\n<p>Next, enter the password you specified for the server (in step 2e) and click OK:<br \/>\n<a href=\"\/blog\/images\/tightvnc-viewer-password.png\" class=\"zoomPopup\" rel=\"zoomgroup noopener noreferrer\" title=\"TightVNC Viewer: Enter Password\" target=\"_blank\"><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/images\/tightvnc-viewer-password.png\" width=\"303\" height=\"171\" title=\"TightVNC Viewer: Enter Password (click to enlarge)\" alt=\"TightVNC Viewer: Enter Password\" border=\"0\" ><\/a>\n<\/p>\n<\/li>\n<li>\n<p>A window showing your server&#8217;s desktop will appear. Click the <b>Ctrl+Alt+Del<\/b> button on the toolbar to sign in to Windows:<br \/>\n<a href=\"\/blog\/images\/tightvnc-viewer-sign-in.png\" class=\"zoomPopup\" rel=\"zoomgroup noopener noreferrer\" title=\"TightVNC Viewer: Sign in to Windows\" target=\"_blank\"><br \/>\n<img decoding=\"async\" src=\"\/blog\/images\/tightvnc-viewer-sign-in.png\" title=\"TightVNC Viewer: Sign in to Windows (click to enlarge)\" alt=\"TightVNC Viewer: Sign in to Windows\" border=\"0\" width=\"520\" ><\/a>\n<\/p>\n<\/li>\n<li>\n<p>Once you are in, switch to Session 0 &#8212; either from the Tools menu in AlwaysUp, or via our free <a href=\"\/products\/SwitchToSession0\/\">Switch to Session 0<\/a> utility. You will be able to use your keyboard and mouse!\n<\/p>\n<p>\nHere is our Windows Server 2016 machine with both winver.exe and Notepad running in Session 0:<br \/>\n<a href=\"\/blog\/images\/win2016-keyboard-mouse-working-in-session-0.gif\" class=\"zoomPopup\" rel=\"zoomgroup noopener noreferrer\" title=\"Session 0: Keyboard and Mouse Working\" target=\"_blank\"><br \/>\n<img decoding=\"async\" src=\"\/blog\/images\/win2016-keyboard-mouse-working-in-session-0.gif\" title=\"Session 0: Keyboard and Mouse Working (click to enlarge)\" alt=\"Session 0: Keyboard and Mouse Working\" border=\"0\" width=\"520\" ><\/a>\n<\/p>\n<\/li>\n<\/ol>\n<h2><b>Caveat: Not a solution for one computer<\/b><\/h2>\n<p>Using the VNC remote access software won&#8217;t work if you only have a single computer setup. VNC cannot view itself &#8212; not without incurring the wrath of infinity. \ud83d\ude42 For the single computer scenario, you have to wait for the folks in Redmond to wave their magic wand and fix the bug&#8230;<\/p>\n<!-- relpost-thumb-wrapper --><div class=\"relpost-thumb-wrapper\"><!-- filter-class --><div class=\"relpost-thumb-container\"><style>.relpost-block-single-image, .relpost-post-image { margin-bottom: 10px; }<\/style><h3>You may also like...<\/h3><div style=\"clear: both\"><\/div><div style=\"clear: both\"><\/div><!-- relpost-block-container --><div class=\"relpost-block-container relpost-block-column-layout\" style=\"--relposth-columns: 3;--relposth-columns_t: 2; --relposth-columns_m: 2\"><a href=\"https:\/\/www.coretechnologies.com\/blog\/windows-services\/delay-service-start\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Q&amp;A: How Do I Delay the Start of my Windows Service?\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/delay-windows-service-start-150x150-1.png\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">Q&amp;A: How Do I Delay the Start of my Windows Service?<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/trouble-running-google-drive-1-9-with-alwaysup-on-windows-xp-server-2003\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Trouble running Google Drive 1.9 with AlwaysUp on Windows XP &amp; Server 2003\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/google-drive-logo-150x150.png\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">Trouble running Google Drive 1.9 with AlwaysUp on Windows XP &amp; Server 2003<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/run-script-service-periodically\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Q&amp;A: How do I Run my Script as a Windows Service &mdash; but only during Working Hours?\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/run-script-periodically-150x150-1.webp\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">Q&amp;A: How do I Run my Script as a Windows Service &mdash; but only during Working Hours?<\/h2><\/div><\/div><\/a><\/div><!-- close relpost-block-container --><div style=\"clear: both\"><\/div><\/div><!-- close filter class --><\/div><!-- close relpost-thumb-wrapper -->","protected":false},"excerpt":{"rendered":"<p>Windows 10 and Windows Server 2016 contain a curious problem affecting interactive windows services. When you switch to Session 0, you cannot use the keyboard and mouse. This frustrating flaw makes it impossible to interact with any window displayed in &hellip; <a href=\"https:\/\/www.coretechnologies.com\/blog\/windows-services\/access-session-0-with-vnc\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":3892,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[26,91,129,153,167,181,196],"class_list":["post-3456","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-windows-services","tag-alwaysup-tag","tag-interactive-services","tag-rdp","tag-session-0-isolation","tag-tightvnc","tag-vnc","tag-windows-services-2"],"_links":{"self":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/3456","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=3456"}],"version-history":[{"count":0,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/3456\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media\/3892"}],"wp:attachment":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=3456"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=3456"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=3456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}