{"id":22335,"date":"2017-12-08T12:00:00","date_gmt":"2017-12-08T11:00:00","guid":{"rendered":"https:\/\/www.avanet.com\/kb\/sophos-ssl-vpn-client-in-autostart-with-auto-login\/"},"modified":"2022-06-16T19:46:47","modified_gmt":"2022-06-16T18:46:47","slug":"add-sophos-ssl-vpn-client-to-startup-with-automatic-login","status":"publish","type":"kb","link":"https:\/\/www.avanet.com\/en\/kb\/add-sophos-ssl-vpn-client-to-startup-with-automatic-login\/","title":{"rendered":"Sophos SSL VPN client in autostart with auto login"},"content":{"rendered":"\n<p>In this article, we will show you how to set the Sophos SSL VPN client to start right after Windows login and connect automatically.<\/p>\n\n<p><strong>Info:<\/strong> For this tutorial, we assume that you already have the Sophos SSL VPN client installed on your Windows system. Otherwise, the following two instructions may help you:<\/p>\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/www.avanet.com\/en\/kb\/install-sophos-ssl-vpn-client-windows-sfos\/\">Install Sophos SSL VPN Client (Windows) &#8211; SFOS<\/a><\/li><li><a href=\"https:\/\/www.avanet.com\/en\/kb\/install-sophos-ssl-vpn-client-windows-utm\/\">Install Sophos SSL VPN Client (Windows) &#8211; UTM<\/a><\/li><\/ul>\n\n<h2 class=\"wp-block-heading\" id=\"h-1-ssl-vpn-client-for-windows-aus-dem-autostart-nehmen\">1. remove <strong>SSL VPN Client for Windows<\/strong> from autostart<\/h2>\n\n<p>When you install the SSL VPN client, a shortcut is automatically placed in the autostart. However, we will now create our own shortcut in the course of this tutorial and we can deactivate the existing shortcut first.<\/p>\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.avanet.com\/assets\/sophos-ssl-vpn-cient-autorun-disable.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"950\" data-id=\"21706\" src=\"https:\/\/www.avanet.com\/assets\/sophos-ssl-vpn-cient-autorun-disable-1024x950.jpg\" alt=\"Removing Sophos SSL VPN Client from the Startup menu\" class=\"wp-image-21706\" srcset=\"https:\/\/www.avanet.com\/assets\/sophos-ssl-vpn-cient-autorun-disable-1024x950.jpg 1024w, https:\/\/www.avanet.com\/assets\/sophos-ssl-vpn-cient-autorun-disable-64x59.jpg 64w, https:\/\/www.avanet.com\/assets\/sophos-ssl-vpn-cient-autorun-disable-300x278.jpg 300w, https:\/\/www.avanet.com\/assets\/sophos-ssl-vpn-cient-autorun-disable-600x557.jpg 600w, https:\/\/www.avanet.com\/assets\/sophos-ssl-vpn-cient-autorun-disable-768x712.jpg 768w, https:\/\/www.avanet.com\/assets\/sophos-ssl-vpn-cient-autorun-disable-13x12.jpg 13w, https:\/\/www.avanet.com\/assets\/sophos-ssl-vpn-cient-autorun-disable.jpg 1228w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/figure>\n\n<ol class=\"wp-block-list\"><li>Open the task manager and switch to the tab <code>Autostart<\/code>.<\/li><li>Locate the <strong>SSL VPN Client for Windows<\/strong> shortcut and right-click to disable it.<\/li><\/ol>\n\n<p><strong>Note:<\/strong> In Windows 10, you can find the settings for Autostart in the Task Manager. With older Windows versions there is an autostart folder.<\/p>\n\n<h2 class=\"wp-block-heading\">2. compose paths with parameters<\/h2>\n\n<p>For our own shortcut in the autostart, which we will create later in the registry, we first compose a command line with a few parameters. The command line is structured as follows:<\/p>\n\n<pre class=\"wp-block-code\"><code>\"&#91;Pfad-zu-openvpn-gui.exe\" --config_dir \"&#91;Pfad-zur-Open-VPN-config-Datei]\" --connect <strong>&#91;<\/strong>Name-der-Open-VPN-config-Datei].ovpn\n<\/code><\/pre>\n\n<p>So to build this command line you need two paths and the name of your Open VPN Config file:<\/p>\n\n<ol class=\"wp-block-list\"><li>Path to openvpn-gui-exe<ul><li><strong>For 32 bit Windows<\/strong> &#8211; &#8220;C:\\Program Files\\Sophos\\Sophos SSL VPN Client\\bin\\openvpn-gui.exe&#8221;.<\/li><li><strong>For 64 bit Windows<\/strong> &#8211; &#8220;C:\\Program Files (x86)\\Sophos SSL VPN Client\\bin\\openvpn-gui.exe&#8221;.<\/li><\/ul><\/li><li>Path to the Open VPN config file<ul><li><strong>For 32 bit Windows<\/strong> &#8211; &#8220;C:\\Program Files\\Sophos\\Sophos SSL VPN Client\\config&#8221;.<\/li><li><strong>For 64 bit Windows<\/strong> &#8211; &#8220;C:\\Program Files (x86)\\Sophos SSL VPN Client\\config&#8221;.<\/li><\/ul><\/li><li>Name of your Open VPN config file<\/li><\/ol>\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.avanet.com\/assets\/sophos-ssl-vpn-config-path.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"585\" data-id=\"21707\" src=\"https:\/\/www.avanet.com\/assets\/sophos-ssl-vpn-config-path-1024x585.jpg\" alt=\"Sophos SSL VPN Client path to config file\" class=\"wp-image-21707\" srcset=\"https:\/\/www.avanet.com\/assets\/sophos-ssl-vpn-config-path-1024x585.jpg 1024w, https:\/\/www.avanet.com\/assets\/sophos-ssl-vpn-config-path-64x37.jpg 64w, https:\/\/www.avanet.com\/assets\/sophos-ssl-vpn-config-path-300x171.jpg 300w, https:\/\/www.avanet.com\/assets\/sophos-ssl-vpn-config-path-600x343.jpg 600w, https:\/\/www.avanet.com\/assets\/sophos-ssl-vpn-config-path-768x439.jpg 768w, https:\/\/www.avanet.com\/assets\/sophos-ssl-vpn-config-path-1536x878.jpg 1536w, https:\/\/www.avanet.com\/assets\/sophos-ssl-vpn-config-path-18x10.jpg 18w, https:\/\/www.avanet.com\/assets\/sophos-ssl-vpn-config-path.jpg 1947w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/figure>\n\n<p>In our example, our whole command line then looks like this:<\/p>\n\n<pre class=\"wp-block-code\"><code>\"C:\\Program Files (x86)\\Sophos\\Sophos SSL VPN Client\\bin\\openvpn-gui.exe\" --config_dir \"C:\\Program Files (x86)\\Sophos\\Sophos SSL VPN Client\\config\\\" --connect avanet@xglab.avanet.com.ovpn\n<\/code><\/pre>\n\n<h2 class=\"wp-block-heading\">3. create autostart<\/h2>\n\n<p>Once you have assembled your own command line, you can now define a new autostart entry in the registry.<\/p>\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-3 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.avanet.com\/assets\/sophos-ssl-vpn-cient-registry-autostart.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"546\" data-id=\"21708\" src=\"https:\/\/www.avanet.com\/assets\/sophos-ssl-vpn-cient-registry-autostart-1024x546.jpg\" alt=\"Create Sophos SSL VPN client registry entry for autostart\" class=\"wp-image-21708\" srcset=\"https:\/\/www.avanet.com\/assets\/sophos-ssl-vpn-cient-registry-autostart-1024x546.jpg 1024w, https:\/\/www.avanet.com\/assets\/sophos-ssl-vpn-cient-registry-autostart-64x34.jpg 64w, https:\/\/www.avanet.com\/assets\/sophos-ssl-vpn-cient-registry-autostart-300x160.jpg 300w, https:\/\/www.avanet.com\/assets\/sophos-ssl-vpn-cient-registry-autostart-600x320.jpg 600w, https:\/\/www.avanet.com\/assets\/sophos-ssl-vpn-cient-registry-autostart-768x409.jpg 768w, https:\/\/www.avanet.com\/assets\/sophos-ssl-vpn-cient-registry-autostart-1536x818.jpg 1536w, https:\/\/www.avanet.com\/assets\/sophos-ssl-vpn-cient-registry-autostart-18x10.jpg 18w, https:\/\/www.avanet.com\/assets\/sophos-ssl-vpn-cient-registry-autostart.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/figure>\n\n<ol class=\"wp-block-list\"><li>Open the registry editor and go to the following path: <code>HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Run<\/code>.<\/li><li>Right-click in the right column and select <code>Neu<\/code> &gt; <code>Zeichenfolge<\/code> .<\/li><li>Give the new entry a name (for example, sophos-ssl-vpn).<\/li><li>Then open the file with a double click and paste your compound command line into the &#8220;<strong>Value<\/strong>&#8221; field.<\/li><li>Click <code>OK<\/code> and close the registry editor.<\/li><\/ol>\n\n<h2 class=\"wp-block-heading\">5. login without entering password<\/h2>\n\n<p>To avoid having to enter the VPN password every time you restart your computer, you still need to perform the following steps:<\/p>\n\n<ol class=\"wp-block-list\"><li>Start the text editor as administrator and then open the file &#8220;<strong>OpenVPNconfigFile<\/strong>&#8220;.<\/li><li>Search the file for the line &#8220;<strong>auth-user-pass<\/strong>&#8221; and change it to &#8220;<strong>auth-user-pass password.txt<\/strong>&#8220;.<\/li><li>Save your changes and create a new text file named &#8220;<strong>password.txt<\/strong>&#8221; in the same folder where the OpenVPNconfigFile file is located.<\/li><li>Open the file &#8220;<strong>password.txt<\/strong>&#8221; and insert only your username and password. Note that you have to write each specification on a separate line. This then looks like this, for example:<code> supportuser A12v12+$1%4S<\/code><\/li><li>Save &#8220;<strong>password.txt<\/strong>&#8221; and restart your computer.<\/li><\/ol>\n\n<p><strong>Important:<\/strong> Make sure that the &#8220;<strong>password.txt<\/strong>&#8221; file is really in the same folder as your Open VPN config file. In addition, with this variant your password is stored in plain text. If you are not completely comfortable with this, then you will have to give up the convenience of automatic login.<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":0,"template":"","format":"standard","kb_kategorie":[382],"class_list":["post-22335","kb","type-kb","status-publish","format-standard","hentry","kb_kategorie-sophos-firewall"],"blocksy_meta":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.avanet.com\/en\/wp-json\/wp\/v2\/kb\/22335","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.avanet.com\/en\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.avanet.com\/en\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.avanet.com\/en\/wp-json\/wp\/v2\/users\/5"}],"wp:attachment":[{"href":"https:\/\/www.avanet.com\/en\/wp-json\/wp\/v2\/media?parent=22335"}],"wp:term":[{"taxonomy":"kb_kategorie","embeddable":true,"href":"https:\/\/www.avanet.com\/en\/wp-json\/wp\/v2\/kb_kategorie?post=22335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}