How to install and configure Direct Access on Windows Server

To install DirectAccess on Windows Server, add the Remote Access role with the DirectAccess and VPN (RAS) role service, then open Remote Access Management and run the Getting Started Wizard.

This guide covers the requirements, Active Directory and DNS preparation, firewall ports, the PowerShell route and how to confirm clients connect, for Windows Server 2016 through Windows Server 2025.

How to install and configure Direct Access on Windows Server
Start in Server Manager with Add roles and features, then tick DirectAccess and VPN (RAS) under role services. (Image: Microsoft)

How to install and configure Direct Access on Windows Server

Run these steps on a domain-joined server signed in with local administrator rights and permission to create Group Policy objects.

  1. In Server Manager, on the Dashboard, click Add roles and features.
  2. Click Next three times to reach the server role list, select Remote Access, then click Next.
  3. On Select features, click Next, then on Select role services check DirectAccess and VPN (RAS).
  4. Click Add Features, click Next, click Install, then click Close when the installation succeeds.
  5. In Server Manager, click Tools > Remote Access Management, then click Run the Getting Started Wizard.
  6. Click Deploy DirectAccess only, select your network topology, type the public name clients will connect to, and click Next.
  7. Click Finish, then click Close when the configuration is applied.
  8. Select Operations Status and wait until every monitor shows Working, clicking Refresh under Monitoring to update it.

Microsoft recommends Always On VPN rather than DirectAccess for new deployments, so use DirectAccess where you already depend on it or need it for existing Enterprise clients.

DirectAccess Getting Started Wizard vs advanced settings

Your situation Use this Why
Single server, Windows 10 or Windows 8.1 clients, no PKI Getting Started Wizard Creates self-signed certificates, enables Kerberos proxy and NAT64/DNS64 for you
Some clients run Windows 7 Advanced Setup (single server with advanced settings) The Getting Started Wizard does not support Windows 7 clients
You need two-factor authentication or force tunnelling Advanced Setup The wizard supports domain credentials only and no force tunnel
You plan a multisite deployment now or later Advanced Setup first Microsoft says to start multisite from the advanced single-server deployment
New remote access project Always On VPN Microsoft's recommended replacement for new deployments

What is DirectAccess in Windows Server?

DirectAccess connects remote, domain-joined computers to the internal network whenever they have internet access, with no VPN connection to start or stop. Administrators can also manage those computers while they are off site.

Component What it does in DirectAccess
Remote Access role Holds DirectAccess and RRAS VPN, managed together in the Remote Access Management console
IIS Web Server Hosts the network location server and the default web probe on the Remote Access server
Windows Internal Database Stores local accounting data on the Remote Access server
Group Policy objects One for the server and one for clients; every DirectAccess setting lives in them
Network location server (NLS) A URL clients reach only inside the network, so they know when not to use the tunnel
IP-HTTPS, 6to4 and Teredo IPv6 transition technologies that carry client traffic across the IPv4 internet

DirectAccess requirements on Windows Server

Requirement Detail
Server OS Windows Server 2016, 2019, 2022 or 2025; Microsoft's troubleshooting guidance advises at least 2016 or 2019
Domain The Remote Access server and every client must be domain members, with at least one domain controller
Client OS Windows 11 Enterprise, Windows 10 Enterprise, Windows 10 Enterprise 2015 LTSB or Windows 8.1 Enterprise
Network adapters At least one adapter on the internal network; with two, one internal and one external
Windows Firewall Enabled on all profiles
ISATAP Not supported in the corporate network; remove it and use native IPv6
Hosting Not supported on an Azure virtual machine
Starting size At least four CPUs and more than 8 GB of RAM; eight CPUs, 12 GB+ RAM and 80 GB+ disk is better
Permissions Local administrator on the server, domain user rights and rights to the DirectAccess GPOs

How to install and configure Active Directory in Windows Server

DirectAccess cannot run without a domain. Skip this if the server and clients already belong to one; otherwise build the domain controller first on a separate server.

  1. On the server that will become the domain controller, open PowerShell as administrator.
  2. Run Install-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools to add the AD DS role.
  3. Run Install-ADDSForest -DomainName "corp.contoso.com", replacing the name with your own domain, and enter a Directory Services Restore Mode password when asked.
  4. Let the server restart; DNS Server is installed with the new forest by default.
  5. On the future DirectAccess server, open Server Manager > Local Server and click the link next to Computer name.
  6. On the Computer Name tab click Change, select Domain, type the domain name and click OK.
  7. Enter an account allowed to join computers to the domain, then click Restart Now when prompted.

In Server Manager, the same role installs through Add roles and features followed by Promote this server to a domain controller. To manage the domain from a desktop, install Active Directory Users and Computers on Windows 11 or Windows 10.

Create a security group for DirectAccess client computers

Client GPO settings apply only to members of the group you name in the wizard. Without one, the client GPO targets all laptops in Domain Computers through a WMI filter.

  1. Run dsa.msc to open Active Directory Users and Computers.
  2. Expand the domain, right-click Users, point to New and click Group.
  3. Enter a group name, choose Global scope and Security type, then click OK.
  4. Double-click the new group, open the Members tab and click Add.
  5. Select the client computers to enable for DirectAccess and click OK.

The PowerShell equivalent is New-ADGroup -GroupScope global -Name <group_name> followed by Add-ADGroupMember -Identity <group_name> -Members <computer_name>.

Create a DirectAccess security group in Active Directory Users and Computers
Choose Global scope and Security type; client GPO settings apply only to members of this group. (Image: Microsoft)

DirectAccess server network adapter and IP address settings

Topology Addresses required
Edge (two adapters) One internet-facing public static IPv4 or IPv6 address, plus one internal static IPv4 or IPv6 address
Edge with Teredo Two consecutive public IPv4 addresses on the internet-facing adapter
Behind a NAT device, two adapters One internal static address and one perimeter-facing static address
Behind a NAT device, one adapter One static IPv4 or IPv6 address

On a server with extra adapters but a single-adapter design, put every adapter in the domain profile. Behind an edge firewall or NAT device, that device must allow traffic to and from the Remote Access server.

DirectAccess firewall ports for IP-HTTPS, 6to4 and IPsec

Where Traffic Exception
Edge firewall, server on IPv4 internet 6to4 IP Protocol 41 inbound and outbound
Edge firewall, server on IPv4 internet IP-HTTPS TCP destination port 443, and TCP source port 443 outbound
Remote Access server, single adapter with NLS on the server IP-HTTPS TCP port 62000
Edge firewall, server on IPv6 internet IPsec IP Protocol 50, plus UDP destination port 500 inbound and source port 500 outbound
Internal firewall All IPv4/IPv6 traffic TCP and UDP allowed to and from the internal network
DirectAccess firewall ports for 6to4 and IP-HTTPS on the IPv4 internet
TCP port 62000 is only needed on a single-adapter server that also hosts the network location server. (Image: Microsoft)

Add DNS records for the DirectAccess network location server

The network location server needs a manual internal DNS entry. Clients on the internet must also resolve the public name of the Remote Access server for IP-HTTPS.

  1. On the internal DNS server, run dnsmgmt.msc and press Enter.
  2. Expand the forward lookup zone, right-click your domain and click New Host (A or AAAA).
  3. Type the network location server name, enter its IPv4 address and click Add Host.
  4. Add a host named directaccess-webprobehost with the web probe's IPv4 address.
  5. Repeat for directaccess-corpconnectivityhost and any connectivity verifiers you created, then click Done.

The PowerShell route is Add-DnsServerResourceRecordA -Name <nls_name> -ZoneName <zone> -IPv4Address <address>. Clients must also reach the CRL distribution point for certificate revocation checks.

DirectAccess network location server DNS records added in DNS Manager
Run dnsmgmt.msc on the internal DNS server and use New Host (A or AAAA) for each record. (Image: Microsoft)

Install the Remote Access role with PowerShell

Use this instead of the Server Manager wizard, then run the Getting Started Wizard from Remote Access Management as above.

Install-WindowsFeature RemoteAccess
Restart-Computer
Install-WindowsFeature RSAT-RemoteAccess-PowerShell

Installs the Remote Access role, restarts the server, then adds the Remote Access module for Windows PowerShell.

You should see: Install-WindowsFeature returns Success as True, and Remote Access Management appears under Tools in Server Manager.

You can also install Server Manager on Windows 11 and run Remote Access Management remotely, since the management tools install separately from the role.

Install the Remote Access role with PowerShell using Install-WindowsFeature
Restart the server between installing RemoteAccess and adding the RSAT-RemoteAccess-PowerShell module. (Image: Microsoft)

Verify DirectAccess clients with Get-DAConnectionStatus

Clients receive DirectAccess settings only by updating Group Policy while they are on the internal network.

  1. On a client in the security group, open PowerShell as administrator while it is on the corporate network.
  2. Type gpupdate and press Enter, then wait for the computer policy update to finish.
  3. Run Get-DnsClientNrptPolicy and confirm the DirectAccess NRPT entries, including the NLS exemption, are listed.
  4. Run Get-NCSIPolicyConfiguration and note the DomainLocationDeterminationURL value.
  5. Run Get-DAConnectionStatus; inside the network it reports ConnectedLocally.
  6. Take the laptop onto an outside internet connection and confirm internal resources open without starting a VPN.
Verify DirectAccess clients with Get-DAConnectionStatus showing ConnectedLocally
On the corporate network the cmdlet reports ConnectedLocally because the client reaches the network location server. (Image: Microsoft)

Windows is unable to find a default server with Active Directory Web Services running

This message comes from Active Directory PowerShell cmdlets such as New-ADGroup when they cannot reach Active Directory Web Services (ADWS) on a domain controller. ADWS listens on TCP port 9389.

Error appears when running New-ADGroup or Add-ADGroupMember

The Active Directory Web Services service is stopped on the domain controller.

  1. Sign in to the domain controller and run services.msc.
  2. Find Active Directory Web Services and confirm its status is Running.
  3. If it is stopped, right-click it and click Start.
  4. Run the cmdlet again from the DirectAccess server.

Error persists while the ADWS service is running

The server is not a domain member yet, or a firewall blocks TCP 9389 to the domain controller.

  1. Confirm the DirectAccess server shows the domain name under Local Server in Server Manager.
  2. Allow TCP port 9389 from the server to the domain controller on any firewall in between.
  3. Create the group with Active Directory Users and Computers on the domain controller instead, then select it in the wizard.

Operations Status monitors never reach Working

Infrastructure the wizard depends on is missing or still applying.

  1. Click Refresh under Monitoring a few times, since the monitors update after the GPOs apply.
  2. Check the NLS, web probe and IP-HTTPS DNS records against the DNS section above.
  3. Confirm the firewall exceptions for IP-HTTPS and 6to4 are in place.
  4. Run Get-NetNatTransitionConfiguration on the server to review NAT64 port settings when clients connect but cannot reach IPv4 resources.

DirectAccess keeps every setting in Group Policy, so back up the DirectAccess GPOs before changing anything, and change settings only through Remote Access Management or its PowerShell cmdlets.

DirectAccess on Windows Server FAQ

Is DirectAccess still supported in Windows Server 2025?

Yes. Microsoft's DirectAccess documentation applies to Windows Server 2016, 2019, 2022 and 2025, but Microsoft highly recommends Always On VPN instead of DirectAccess for new deployments.

Does DirectAccess need a PKI or certificate authority?

Not with the Getting Started Wizard. It provisions self-signed certificates for IP-HTTPS and the network location server and enables Kerberos proxy. A single server with advanced settings does require a public key infrastructure.

Which Windows clients can use DirectAccess?

DirectAccess clients must be domain-joined Enterprise editions: Windows 11 Enterprise, Windows 10 Enterprise, Windows 10 Enterprise 2015 LTSB and Windows 8.1 Enterprise. Pro editions cannot be DirectAccess clients.

Can I deploy DirectAccess on an Azure virtual machine?

No. Microsoft does not support Remote Access on an Azure VM, so VPN, DirectAccess and other Remote Access features cannot be deployed there.

Does DirectAccess send internet traffic through the tunnel?

Not in a Getting Started Wizard deployment. Only traffic for the internal network uses DirectAccess, and force tunnel configuration is not supported in that scenario or with KerbProxy authentication.

How many network adapters does a DirectAccess server need?

One is enough. A single adapter works behind a NAT device; with two, one connects to the internal network and the other to the internet or a perimeter network.

Can Windows 7 computers use the Getting Started Wizard?

No. If any clients run Windows 7, Microsoft says to use the Advanced Setup Wizard, because the Getting Started Wizard does not support Windows 7 clients.

Is DirectAccess deprecated in Windows Server?

Use the Getting Started Wizard to stand up DirectAccess only for existing Enterprise-edition, domain-joined fleets, and plan new remote access on Always On VPN. The wizard deploys a working single-server DirectAccess setup in a few steps, but Microsoft directs new deployments to Always On VPN.

Philip Celasco

Philip is a Texas-based technology writer and IT administrator at Techdows.com with more than 10 years of experience creating practical content for everyday users and professionals. He specializes in web browsers, particularly Chromium-based platforms such as Google Chrome, Microsoft Edge, Brave, and Opera. Through his work as an IT administrator, Philip has hands-on experience managing devices, configuring browser policies, troubleshooting software and network issues, and helping people resolve problems that affect productivity and security. His articles are based on practical testing and real-world technical experience. He covers browser settings, extensions, performance problems, privacy controls, security features, and Windows troubleshooting. Outside work, Philip enjoys the quieter side of life in Texas and stepping away from the screen when he can. He has two kids, two cats and loves to play golf with his mother during the weekends.

Leave a Reply

Your email address will not be published. Required fields are marked *