{"id":3966,"date":"2015-08-10T09:53:44","date_gmt":"2015-08-10T14:53:44","guid":{"rendered":"http:\/\/www.poweradmin.com\/blog\/?p=3966"},"modified":"2015-10-21T12:48:51","modified_gmt":"2015-10-21T17:48:51","slug":"installing-configuring-directaccess-in-windows-server-2012-pt-1","status":"publish","type":"post","link":"https:\/\/www.poweradmin.com\/blog\/installing-configuring-directaccess-in-windows-server-2012-pt-1\/","title":{"rendered":"Installing &#038; Configuring DirectAccess in Windows Server 2012 &#8211; Pt.1"},"content":{"rendered":"<p><span style=\"font-family: verdana,geneva,sans-serif;\"><img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-3989 alignleft\" src=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/08\/installing-and-configuring-direct-access.png\" alt=\"Installing and Configuring Direct Access\" width=\"185\" height=\"185\" srcset=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/08\/installing-and-configuring-direct-access.png 185w, https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/08\/installing-and-configuring-direct-access-150x150.png 150w\" sizes=\"auto, (max-width: 185px) 100vw, 185px\">In the last article we\u2019ve scratched the surface of the remote access technology available with Windows Server 2012, named DirectAccess. I\u2019ve tried to cover the most important aspects of DirectAccess so we can go further and discover the practical usage of this feature. The method of installing and configuring DirectAccess has been simplified with the release of Windows Server 2012. You can install DirectAccess using either the graphical interface or Windows Powershell.<\/span><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">To install DirectAccess open up <i>Server manager<\/i> console and click on <i>Add Roles and Features<\/i> link and navigate to the <i>Roles<\/i> section. Select the <i>Remote Access <\/i>role and proceed to the <i>next<\/i> section.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3982 aligncenter\" src=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/07\/install-direct-access.png\" alt=\"Install Direct Access\" width=\"791\" height=\"562\" srcset=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/07\/install-direct-access.png 791w, https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/07\/install-direct-access-300x213.png 300w\" sizes=\"auto, (max-width: 791px) 100vw, 791px\"><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">In Windows Server 2012 you can configure the server to host both <i>VPN<\/i> and <i>DirectAccess services<\/i> simultaneously. Additionally, you can install the <i>Routing<\/i> service on the same machine:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3985 aligncenter\" src=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/07\/vpn-directaccess-routing-services-installed.png\" alt=\"VPN - DirectAccess - Routing services installed\" width=\"793\" height=\"560\" srcset=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/07\/vpn-directaccess-routing-services-installed.png 793w, https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/07\/vpn-directaccess-routing-services-installed-300x212.png 300w\" sizes=\"auto, (max-width: 793px) 100vw, 793px\"><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">To install DirectAccess using Powershell, use <i>Get-WindowsFeature<\/i> to list available roles and then execute <i>Install-WindowsFeature RemoteAccess \u2013IncludeManagementTools. <\/i>Once the installation is completed successfully, use the <i>Get-Command -Module RemoteAccess *da*<\/i> cmdlet to view available configuration commands for DirectAccess:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3984 aligncenter\" src=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/07\/view-config-commands-for-directaccess.png\" alt=\"View Config Commands for DirectAccess\" width=\"868\" height=\"632\" srcset=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/07\/view-config-commands-for-directaccess.png 868w, https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/07\/view-config-commands-for-directaccess-300x218.png 300w\" sizes=\"auto, (max-width: 868px) 100vw, 868px\"><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">Open the <i>Remote Access Management Console<\/i> and click on <i>Run the Remote Access Setup Wizard<\/i>. Once the wizard has started, click on <i>Deploy DirectAccess only<\/i>:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3978 aligncenter\" src=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/07\/deploy-directaccess.png\" alt=\"Deploy DirectAccess\" width=\"618\" height=\"543\" srcset=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/07\/deploy-directaccess.png 618w, https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/07\/deploy-directaccess-300x264.png 300w\" sizes=\"auto, (max-width: 618px) 100vw, 618px\"><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">Note that DirectAccess can only be installed on a server that is part of an Active Directory domain. The wizard will conduct a prerequisite check to verify if all requirements are met to configure DirectAccess. If your server is not part of an AD domain, the wizard will throw the following error:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-3983 aligncenter\" src=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/07\/verify-requirements-for-directaccess.png\" alt=\"Verify Requirements for DirectAccess\" width=\"605\" height=\"287\" srcset=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/07\/verify-requirements-for-directaccess.png 605w, https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/07\/verify-requirements-for-directaccess-300x142.png 300w\" sizes=\"auto, (max-width: 605px) 100vw, 605px\"><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">Once the prerequisite check is completed, the map with the whole DirectAccess infrastructure is presented. This map is composed of four configurable sections, to successfully deploy DirectAccess within your company, you will have to configure each of the following components:<\/span><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">Step1: Remote Clients<\/span><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">Step2: Remote Access Server<\/span><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">Step3: Infrastructure Servers<\/span><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">Step4: Application Servers<\/span><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">In this article we will focus on the first item of the DirectAccess infrastructure and we\u2019ll continue with the rest in a future article. The Remote Clients configuration section is displayed in the DirectAccess map as follows:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3981\" src=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/07\/directaccess-remote-clients-config-map.png\" alt=\"DirectAccess-Remote Clients Config Map\" width=\"636\" height=\"402\" srcset=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/07\/directaccess-remote-clients-config-map.png 636w, https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/07\/directaccess-remote-clients-config-map-300x190.png 300w\" sizes=\"auto, (max-width: 636px) 100vw, 636px\"><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">To start the Remote Clients configuration wizard, click on the <i>Configure<\/i> button. Windows Server 2012 offers two possible configuration options:<\/span><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">\u00b7 <i>Deploy full DirectAccess for client access and remote management<\/i> \u2013 offers bidirectional communication between remote clients and the enterprise network. Clients will be accessible from within the network for remote management, but they will also be able to access network resources using the Remote Access Server.<\/span><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">\u00b7 <i>Deploy DirectAccess for remote management only <\/i>\u2013 clients are accessible from within the network, but they are not able to access network resources from the Internet. This option is new to Windows Server 2012 and is mostly used when remote clients are managed via tools such as SCCM.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3979\" src=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/07\/deploy-full-directaccess-installation.png\" alt=\"Deploy Full DirectAccess Installation\" width=\"854\" height=\"542\" srcset=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/07\/deploy-full-directaccess-installation.png 854w, https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/07\/deploy-full-directaccess-installation-300x190.png 300w\" sizes=\"auto, (max-width: 854px) 100vw, 854px\"><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">For now we\u2019ll configure the default option to deploy full DirectAccess installation. In the next section is where we configure the security groups that will be allowed to establish connections with the Remote Access Server. I\u2019ve created an AD security group named \u201cDirectAccess Clients\u201d and I\u2019ve added it to the allowed DirectAccess groups:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3977\" src=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/07\/create-and-add-ad-security-group.png\" alt=\"Create and Add AD Security Group\" width=\"856\" height=\"543\" srcset=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/07\/create-and-add-ad-security-group.png 856w, https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/07\/create-and-add-ad-security-group-300x190.png 300w\" sizes=\"auto, (max-width: 856px) 100vw, 856px\"><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">Note that you can enable <i>DirectAccess for mobile computers only<\/i> to ensure that no Desktop computers will be able to connect to your Remote Access Server. The second option, <i>Use force tunneling<\/i>, will redirect all traffic to your Remote Access server thus ensuring that traffic is passed to-and-from your DirectAccess machine. Leave these two options unchecked for now.<\/span><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">Within the final step of this wizard you will have to enter the HelpDesk email address, allow local name resolution for DirectAccess clients and set a network connectivity assistant if desired (this setting allows DirectAccess clients to determine if they are located within the enterprise network or they are located in a public network):<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3980\" src=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/07\/directaccess-enter-helpdesk-email.png\" alt=\"DirectAccess - Enter HelpDesk Email\" width=\"857\" height=\"539\" srcset=\"https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/07\/directaccess-enter-helpdesk-email.png 857w, https:\/\/www.poweradmin.com\/blog\/wp-content\/uploads\/2015\/07\/directaccess-enter-helpdesk-email-300x189.png 300w\" sizes=\"auto, (max-width: 857px) 100vw, 857px\"><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">The Remote Clients configuration section can be easily made using Windows Powershell with the following cmdlets<i>:<\/i><\/span><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\"><i>Set-DAServer -DAInstallType ManageOut<\/i> or <i>Set-DAServer -DAInstallType FullInstall<\/i><\/span><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\"><i>Add-DAClient \u2013SecurityGroupNameList \u201cppscu.com\\DirectAccess Clients\u201d<\/i><\/span><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\"><i>Set-DAClient -ForceTunnel \u201cEnabled\u201d -OnlyRemoteComputers \u201cEnabled\u201d<\/i><\/span><\/p>\n<p><span style=\"font-family: verdana,geneva,sans-serif;\">Once the Remote Clients have been configured, we\u2019ll need to proceed to the Remote Access Server configuration page. I don\u2019t want to make this article too long so we\u2019ll continue with the next configuration steps in the next one. You can also experiment with the Powershell installation if you are interested in automatization. Since this configuration is mostly done once, I prefer using the interface. Hope you\u2019ve managed to complete this first step of the <i>DirectAccess <\/i>configuration and if not, don\u2019t hesitate to post a comment in our dedicated section. Stay tuned for the following article.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the last article we\u2019ve scratched the surface of the remote access technology available with Windows Server 2012, named DirectAccess. I\u2019ve tried to cover the most important aspects of DirectAccess so we can go further and discover the practical usage of this feature. The method of installing and configuring DirectAccess has been simplified with the [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":3988,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5,9,8],"tags":[],"class_list":["post-3966","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-general-it","category-how-to","category-technical","category-windows"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/posts\/3966","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/comments?post=3966"}],"version-history":[{"count":5,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/posts\/3966\/revisions"}],"predecessor-version":[{"id":4228,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/posts\/3966\/revisions\/4228"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/media\/3988"}],"wp:attachment":[{"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/media?parent=3966"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/categories?post=3966"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.poweradmin.com\/blog\/wp-json\/wp\/v2\/tags?post=3966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}