Disable 6to4, Teredo, ISATAP, and IP-HTTPS in Windows

Microsoft Windows has included IPv6 transition technologies since Windows XP. These protocols were designed to provide IPv6 connectivity across IPv4-only networks by encapsulating IPv6 traffic in IPv4, UDP, or HTTPS. They served a purpose during the early days of IPv6 adoption, but today they are legacy technologies that offer little value and introduce operational and security risks. Microsoft has disabled most of them by default in Windows for years now, but that doesn’t mean administrators should rely on default settings. Explicitly disabling these protocols ensures consistent, predictable behavior across all endpoints, regardless of how they were deployed or what configuration changes may have been made along the way.

IPv6 Transition Technologies

Windows supports four IPv6 transition technologies, each designed for a different scenario, including the following.

  • 6to4: Automatically tunnels IPv6 traffic over the public IPv4 internet using 6to4 relay routers. Hosts with a public IPv4 address derive a 2002::/16 IPv6 address from their IPv4 address [RFC 3056].
  • Teredo: Tunnels IPv6 traffic in UDP (port 3544) to traverse IPv4 NAT devices. Teredo addresses use the 2001::/32 prefix [RFC 4380].
  • ISATAP: Intra-Site Automatic Tunnel Addressing Protocol (ISATAP) tunnels IPv6 traffic over an IPv4 intranet. Clients locate the ISATAP router by resolving the name “isatap” in DNS. ISATAP does not use a dedicated prefix. Instead, ISATAP addresses combine any IPv6 prefix with an interface identifier of ::0:5efe: followed by the host’s IPv4 address [RFC 5214].
  • IP-HTTPS: Tunnels IPv6 traffic in HTTPS (TCP port 443). IP-HTTPS was developed by Microsoft for DirectAccess and is defined in a Microsoft protocol specification rather than an RFC [MS-IPHTTPS]. It has no reserved prefix. Clients receive their IPv6 prefix from the DirectAccess server. IP-HTTPS is used only when a server URL has been configured, typically by DirectAccess Group Policy.

Disabled by Default

Microsoft began disabling IPv6 transition technologies by default early in the Windows 10 lifecycle. According to Microsoft’s deprecated features documentation, 6to4 has been disabled by default since Windows 10 1607 (Anniversary Update), ISATAP has been disabled by default since Windows 10 1703 (Creators Update), and Teredo has been disabled by default since Windows 10 1803. Microsoft formally deprecated these technologies in Windows 10 1803 and recommends using native IPv6 instead. All supported versions of Windows 10 and Windows 11 inherit these defaults. IP-HTTPS isn’t included in Microsoft’s deprecation notice. However, the IP-HTTPS client interface is dormant by default and becomes active only when a server URL is configured, which happens almost exclusively in DirectAccess deployments.

Why Disable Them Proactively

If these technologies are already disabled by default, it is fair to ask why administrators should bother disabling them explicitly. The answer is that “default” is not the same as “enforced”. Devices upgraded in place from older releases, images built years ago, third-party software, leftover DirectAccess Group Policy settings, or a local administrator running a single command can all change the state of these protocols. Explicitly disabling them through policy ensures they remain off and provides the following benefits.

Reliable Connectivity

Transition technologies depend on infrastructure that is increasingly unavailable or unreliable. Public 6to4 relays are operated by unknown third parties and have long been a source of connectivity failures, which led the IETF to deprecate the 6to4 anycast relay mechanism and recommend that 6to4 be disabled by default. Public Teredo servers are largely gone. When a transition interface is active but the path behind it is broken, applications may attempt IPv6 connections that time out before falling back to IPv4, resulting in slow application launches, intermittent failures, and difficult troubleshooting. Tunneling also reduces the effective MTU, which can cause fragmentation and path MTU discovery issues. Disabling these interfaces removes these variables entirely and ensures that endpoints use either native IPv6 or IPv4.

Reduced Attack Surface

IPv6 transition technologies can also be abused by attackers. Because they encapsulate IPv6 inside IPv4, UDP, or HTTPS, the inner traffic may not be visible to firewalls, intrusion detection systems, and other security controls that inspect only IPv4 traffic. Teredo is especially concerning because it is designed to traverse NAT, which can expose a host directly to unsolicited inbound IPv6 traffic from the internet and bypass perimeter security controls entirely. ISATAP clients locate their router by resolving the name “isatap” in DNS, which an attacker can hijack to insert themselves into the traffic path (this is why “isatap” is included in the Windows DNS Server global query block list by default). Attackers who gain a foothold on an endpoint can also enable these protocols to establish covert command-and-control or data exfiltration channels. Enforcing a disabled state through Group Policy or Intune ensures that any local change is reverted at the next policy refresh.

Important Considerations

Before disabling these technologies, administrators should confirm that nothing in the environment depends on them. DirectAccess clients rely on IP-HTTPS (and, in some deployments, Teredo and 6to4) for remote connectivity. Do NOT apply these settings to devices still using DirectAccess, or they will lose connectivity to the corporate network. Always On VPN does not use any of these technologies and is not affected. For organizations moving to IPv6, native IPv6 or IPv6-only networks with 464XLAT are the recommended path forward. On Windows, Windows CLAT (WinCLAT) provides the client-side component of 464XLAT, allowing IPv4 applications to continue working on IPv6-only networks.

Local Configuration with netsh.exe and PowerShell

The netsh.exe command and the PowerShell NetworkTransition module can be used to view and change the state of each transition technology locally. This is useful for ad-hoc configuration, testing, and validation before deploying settings at scale. All commands must be run from an elevated command prompt or PowerShell session. Note that settings configured using Group Policy or Intune take precedence over local settings.

View Current State

The current configuration of each transition technology can be viewed using the Get-Net6to4Configuration, Get-NetTeredoConfiguration, Get-NetIsatapConfiguration, and Get-NetIPHttpsConfiguration PowerShell commands.

Get-Net6to4Configuration
Get-NetTeredoConfiguration
Get-NetIsatapConfiguration
Get-NetIPHttpsConfiguration
PowerShell output of Get-Net6to4Configuration, Get-NetTeredoConfiguration, and Get-NetIsatapConfiguration showing Default state, with no output from Get-NetIPHttpsConfiguration

IPv6 Transition Technology Configuration

In the output above, 6to4, Teredo, and ISATAP each report a state of Default rather than Disabled. Default means the protocol follows the operating system’s built-in behavior, which on all supported versions of Windows 10 and Windows 11 is disabled. Explicitly setting the state to Disabled ensures the protocol stays off regardless of future changes to the default.

Note: By default, Get-NetIPHttpsConfiguration returns no output. IP-HTTPS has no configuration on a Windows client unless one has been applied, typically by DirectAccess.

The equivalent netsh.exe commands are as follows.

netsh.exe interface 6to4 show state
netsh.exe interface teredo show state
netsh.exe interface isatap show state
netsh.exe interface httpstunnel show interfaces

Disable 6to4

To disable 6to4, run the following netsh.exe command or the Set-Net6to4Configuration PowerShell command.

netsh.exe interface 6to4 set state state=disabled
Set-Net6to4Configuration -State Disabled

Disable Teredo

To disable Teredo, run the following netsh.exe command or the Set-NetTeredoConfiguration PowerShell command.

netsh.exe interface teredo set state type=disabled
Set-NetTeredoConfiguration -Type Disabled

Disable ISATAP

To disable ISATAP, run the following netsh.exe command or the Set-NetIsatapConfiguration PowerShell command.

netsh.exe interface isatap set state state=disabled
Set-NetIsatapConfiguration -State Disabled

Disable IP-HTTPS

To disable the IP-HTTPS client interface, run the Set-NetIPHttpsConfiguration PowerShell command.

Set-NetIPHttpsConfiguration -State Disabled

Validate Configuration

After disabling these technologies, administrators can confirm that no transition interfaces are active. The Get-NetTeredoState and Get-NetIPHttpsState PowerShell commands display the operational state of Teredo and IP-HTTPS, and the Get-NetIPInterface command lists any remaining tunnel interfaces.

Get-NetTeredoState
Get-NetIPHttpsState
Get-NetIPInterface -AddressFamily IPv6 | Where-Object InterfaceAlias -Match 'Teredo|isatap|6TO4|IPHTTPS'

If no transition technologies are active, these commands return no output. To confirm that each protocol is disabled, run the Get-Net6to4Configuration, Get-NetTeredoConfiguration, and Get-NetIsatapConfiguration commands again. The State (or Type, for Teredo) for each should now report Disabled.

PowerShell output of Get-Net6to4Configuration, Get-NetTeredoConfiguration, and Get-NetIsatapConfiguration showing each protocol in a Disabled state

IPv6 Transition Technologies Disabled

DisabledComponents Registry Value

Administrators may encounter guidance recommending the DisabledComponents registry value (HKLM\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters) to disable IPv6 tunnel interfaces. Setting bit 0 (0x01) disables all IPv6 tunnel interfaces, and bits 1 (0x02), 2 (0x04), and 3 (0x08) disable 6to4, ISATAP, and Teredo, respectively. However, changes to this value require a restart, and Microsoft does not recommend disabling IPv6 components this way. The per-technology netsh.exe, PowerShell, Group Policy, and Intune settings are the preferred approach.

Active Directory Group Policy

For domain-joined devices, administrators can enforce these settings using Active Directory Group Policy. The settings are located in the tcpip.admx administrative template and write to HKLM\SOFTWARE\Policies\Microsoft\Windows\TCPIP\v6Transition on the client. To configure them, open the Group Policy Management Console (GPMC), create or edit a GPO linked to the appropriate OU, and navigate to Computer Configuration > Policies > Administrative Templates > Network > TCPIP Settings > IPv6 Transition Technologies.

Next, configure the following settings.

SettingConfiguration
Set 6to4 StateEnabled, Disabled State
Set ISATAP StateEnabled, Disabled State
Set Teredo StateEnabled, Disabled State
Set IP-HTTPS StateEnabled, Disabled State

Group Policy Settings to Disable IPv6 Transition Technologies

Group Policy Management Editor IPv6 Transition Technologies settings with Set 6to4 State, Set IP-HTTPS State, Set ISATAP State, and Set Teredo State enabled

Group Policy IPv6 Transition Technologies Settings

Teredo, 6to4, and ISATAP

To disable Teredo, 6to4, and ISATAP, set each policy to Enabled and select Disabled State from the drop-down list. The Set Teredo State setting is shown below. Set 6to4 State and Set ISATAP State are configured the same way.

Set Teredo State Group Policy setting configured to Enabled with Disabled State selected from the drop-down list

Set Teredo State Group Policy Setting

Note: The help text for the Set Teredo State setting says the default state is Client. This description dates back to Windows 7 and is outdated. Teredo has been disabled by default since Windows 10 1803.

IP-HTTPS

The Set IP-HTTPS State policy requires a value in the IPHTTPS URL field, even when the state is set to Disabled. Enter about:blank in this field.

Set IP-HTTPS State Group Policy setting configured to Enabled with about:blank as the IPHTTPS URL and Disabled State selected

Set IP-HTTPS State Group Policy Setting

Intune Settings Catalog

For devices managed by Microsoft Intune, these settings are available in the Settings Catalog as ADMX-backed policies using the Policy CSP (ADMX_tcpip). To configure them, open the Microsoft Intune admin center, navigate to Devices > Configuration > Create > New Policy, select Windows 10 and later for the platform and Settings catalog for the profile type, and then click Create. Provide a name and description for the policy and click Next.

Intune Create a profile pane with Windows 10 and later selected as the platform and Settings catalog selected as the profile type

Intune Settings Catalog Profile

On the Configuration settings page, click Add settings and search for “IPv6 Transition Technologies”. Select the Administrative Templates Network TCPIP Settings | IPv6 Transition Technologies category and then select Set 6to4 State, Set IP-HTTPS State, Set ISATAP State, and Set Teredo State.

Intune Settings picker search for ipv6 transition technologies showing the Administrative Templates Network TCPIP Settings IPv6 Transition Technologies category

Intune Settings Picker

Enable each setting and select Disabled State from the drop-down list. As with Group Policy, the Set IP-HTTPS State setting requires a value in the IPHTTPS URL field. Enter about:blank in this field. Click Next, assign the profile to the appropriate device groups, and then click Create.

Intune Settings catalog configuration settings with Set Teredo State, Set IP-HTTPS State, Set ISATAP State, and Set 6to4 State enabled and set to Disabled State, with about:blank as the IPHTTPS URL

Intune IPv6 Transition Technologies Configuration Settings

Summary

The IPv6 transition technologies 6to4, Teredo, ISATAP, and IP-HTTPS have outlived their usefulness. Microsoft has disabled most of them by default since early Windows 10 releases, but relying on defaults leaves room for drift, misconfiguration, and abuse. Explicitly disabling them using Group Policy or Intune ensures reliable connectivity and removes a potential avenue for attackers, while netsh.exe and PowerShell provide a quick way to test and validate the configuration locally. Just be sure to exclude any devices that still rely on DirectAccess.

Additional Information

Entra Private Access Device Access Overview

Microsoft recently introduced Device Access for Entra Private Access, now available in public preview with Global Secure Access (GSA) client v2.35.136. Device Access lets Windows devices connect to selected private resources before a user signs in. It’s especially useful for hybrid Entra-joined endpoints, which still rely on on-premises Active Directory for authentication, Group Policy, and management. For pre-logon connectivity, Device Access gives Entra Private Access feature parity with the Always On VPN device tunnel and the DirectAccess infrastructure tunnel, which removes one of the last obstacles for organizations moving from traditional VPN to Global Secure Access. However, it does not support the manage-out scenario that Always On VPN and DirectAccess provide. Microsoft’s documentation covers configuration in detail, so the following sections focus on what Device Access is, how it works, and what administrators should consider before deploying it.

The Pre-Logon Problem

Until now, the GSA client set up tunnels only after a user signed in, so devices couldn’t reach on-premises resources at startup or from the Windows sign-in screen. This matters most for hybrid Entra-joined endpoints. Entra-joined devices authenticate users against Entra ID and can sign in from anywhere with internet access. Hybrid-joined devices, however, are joined to on-premises Active Directory and must reach domain controllers and other on-premises infrastructure to complete several common tasks, including the following.

  • First-time sign-in for a user without cached credentials
  • Password changes and resets at the Windows sign-in screen
  • Computer and user Group Policy processing
  • Time synchronization with the domain hierarchy
  • Machine account password updates and other domain maintenance tasks
  • Connectivity to on-premises management tools such as Configuration Manager and WSUS

Without a pre-logon connection, remote hybrid-joined devices slowly drift out of compliance with on-premises policy, and new users or users with expired passwords must come into the office or use a separate VPN to sign in. As a result, many organizations kept Always On VPN or DirectAccess in place alongside Global Secure Access. Device Access closes this gap by keeping the device connected to the domain whenever it has internet access.

How Device Access Works

Device Access authenticates the device itself to Global Secure Access and opens a device tunnel for a selected set of private applications. The GSA client now runs in one of the following two contexts.

  • Device context: The device tunnel is active after a restart and before sign-in, after sign-out, while the session is locked, and after the device resumes from sleep or hibernation.
  • User context: Once the user signs in and user tunnels are established, existing connections drain over the device tunnel and new connections use the user tunnel. If the user context is no longer available, the client returns to the device context.

Feature Parity with Always On VPN and DirectAccess

Administrators familiar with Always On VPN and DirectAccess will recognize this model. The Always On VPN device tunnel and the DirectAccess infrastructure tunnel both connect before the user signs in. They give the device access to domain controllers, DNS, and management servers so that remote endpoints can be managed like devices on the corporate network. Device Access delivers the same pre-logon capability with Entra Private Access. Like those solutions, it’s best practice to limit the device tunnel to infrastructure resources and leave application access to the user tunnel, where Conditional Access and per-user policy apply. For organizations that want to replace Always On VPN or DirectAccess with Global Secure Access, Device Access closes the last major functional gap for pre-logon connectivity. Note that the Always On VPN device tunnel and DirectAccess support only domain-joined devices, but Device Access requires devices to be hybrid Entra-joined or Entra-joined. Organizations migrating from either platform should plan to complete hybrid join before rolling out Device Access.

No Manage-Out Support

One important Always On VPN and DirectAccess capability is not available with Device Access. Always On VPN and DirectAccess support manage-out, where administrators and management systems on the internal network initiate connections outbound to remote clients. Common examples include remote assistance, Remote Desktop, remote PowerShell, and on-premises tools that push software or scan endpoints. Manage-out works with those solutions because the remote client has an IP address that is routable on the internal network, either an address from the VPN client address pool with Always On VPN or an IPv6 address with DirectAccess. Entra Private Access works differently. The GSA client functions like a proxy, sending outbound connections through the Global Secure Access service to a Private Network Connector, which then connects to the internal resource on the client’s behalf. Internal resources see the connector server’s IP address, not the client’s, and the endpoint never receives a routable internal IP address. As a result, there’s no network path from the internal network back to the client, and Device Access doesn’t change that. Organizations that rely on manage-out today should identify cloud-based alternatives, such as Microsoft Intune for device management and remote actions, Intune Remote Help for remote assistance, and Microsoft Defender for Endpoint live response, before retiring Always On VPN or DirectAccess.

Key Components

Device Access builds on existing Entra Private Access components and adds a new type of forwarding profile. A deployment includes the following elements.

  • Device Access profile: A new Private Device Access profile, configured under Global Secure Access > Connect > Traffic forwarding > Device Access profiles. It has its own acquisition rules, priority, and status, independent of user-context forwarding profiles.
  • Per-application opt-in: Each private application the device needs must have the Enable Device Access with Global Secure Access setting turned on. This setting is off by default, and only applications with it enabled can be added to the profile.
  • Private DNS: Required for Active Directory scenarios so Windows can locate domain controllers using the on-premises DNS suffix. If Private DNS is configured on Quick Access, the profile uses only the Quick Access Private DNS definitions. It does not use the Quick Access application segments.
  • Assignments: The profile is assigned to devices (No devices, All devices, or Selected devices) and to the Windows platform.
Entra admin center enterprise application network access properties with Enable Device Access with Global Secure Access selected

Enable Device Access with Global Secure Access Setting

Requirements

Before deploying Device Access, administrators must meet the following prerequisites.

  • Windows devices that are hybrid Entra-joined or Entra-joined. Devices that are only domain-joined are not supported.
  • The Device Access-compatible GSA client (v2.35.136 or later), deployed through Intune or another MDM solution.
  • Private network connectors deployed for the networks that host the target resources.
  • Application segments for each private resource the device must reach, including domain controllers published as their own private application.
  • No additional license. Device Access is included with Global Secure Access for all currently eligible users.

Limitations

Device Access is currently in preview and has the following limitations.

  • Windows only.
  • Private Access traffic only. Internet Access and Microsoft 365 traffic is not tunneled in the device context.
  • No manage-out. Internal systems cannot start connections to remote clients.
  • Configuration changes can take several minutes to take effect.

Deployment Considerations

The device tunnel is active whenever no user is signed in, so administrators should treat it as a privileged path into the network. Enable Device Access only for the applications that devices actually need before sign-in, such as domain controllers, DNS, and management infrastructure. To stage a profile without applying it, set its status to Disabled or its device assignment to No devices, then roll it out to a pilot group first. To verify the profile on a client, open Advanced diagnostics > Forwarding profile > Device in the GSA client and use the Context column on the Traffic tab to see whether connections use the device or user tunnel. In the Entra admin center, filter traffic logs by the Device security principal type. If a device is lost or compromised, disable its device object in Entra ID and remove it from the Device Access profile assignment. Disabling the device object blocks the device tunnel.

GSA client Advanced diagnostics Forwarding profile tab with the Device view highlighted, showing Entra rules, Private pre-logon rules, and Private Access definitions

GSA Client Device Forwarding Profile

Summary

Device Access gives Entra Private Access pre-logon connectivity, which hybrid Entra-joined endpoints need for sign-in without cached credentials, password changes, Group Policy processing, and on-premises management. It matches the Always On VPN device tunnel and DirectAccess infrastructure tunnel for pre-logon scenarios and closes the last major functional gap for pre-logon connectivity between Global Secure Access and both solutions. However, because the GSA client functions like a proxy and the endpoint has no routable internal IP address, Device Access does not support manage-out, and organizations that depend on it will need an alternative approach. Organizations migrating from Always On VPN or DirectAccess should make sure their endpoints are hybrid Entra-joined, plan for manage-out alternatives, limit the device tunnel to infrastructure resources, and test with a pilot group, since the feature is still in preview.

Additional Information

Automating Entra App Proxy Certificates with CertKit (Managed Identity)

Microsoft Entra ID icon

In a recent post, I described how to configure CertKit to automatically deploy renewed TLS certificates to Microsoft Entra Application Proxy applications using an Entra app registration with client secret authentication. That method works anywhere, but it relies on a client secret that must be stored securely and rotated before it expires. When the CertKit agent runs on an Azure virtual machine or an Azure Arc-enabled server, CertKit can authenticate with a managed identity instead, eliminating the client secret entirely. This configuration uses the same least-privilege permissions as the client secret method. The following sections describe how to configure it using both PowerShell and the Azure portal.

Why Use a Managed Identity

A managed identity is an identity in Microsoft Entra ID that Azure manages on behalf of an Azure resource. It offers several advantages over a client secret, including the following.

  • No secret to manage. There’s no client secret to store, protect, or rotate, and no expiration date that can unexpectedly break certificate deployments.
  • Bound to a specific resource. The identity can only be used from the Azure resource it’s attached to. It can’t be copied out of a configuration file or password vault and used elsewhere.
  • Aligned with Microsoft guidance. Microsoft recommends managed identities over client secrets for workloads that support them.

There are tradeoffs, however. A managed identity is available only to Azure resources, so the CertKit agent must run on an Azure virtual machine or a server onboarded to Azure Arc. In addition, anyone who compromises that server can request tokens as the managed identity. Least privilege limits the impact, just as it does with a client secret. Managed identity authentication is an alternative to client secret authentication, not a replacement. For organizations without an Azure or Azure Arc presence, the client secret method remains a good choice.

Requirements

Using a managed identity with CertKit requires the following.

  • An Azure virtual machine or Azure Arc-enabled server. The CertKit agent must run on a server with a managed identity. Azure virtual machines support managed identities natively and don’t require Azure Arc. On-premises servers, or servers hosted in other clouds, must be onboarded to Azure Arc. The server doesn’t need to be domain-joined.
  • An Azure subscription in the same tenant. The Azure subscription must be associated with the same Microsoft Entra tenant where Application Proxy is configured.
  • Outbound internet access. The CertKit agent requires outbound HTTPS access to CertKit and Microsoft Graph. No inbound access or public IP address is required.
  • The Microsoft Graph PowerShell module on the agent host. The CertKit agent uses the Microsoft.Graph.Authentication module to sign in with the managed identity. Since the agent runs as Local System, the module must be installed for all users.
  • Microsoft Entra ID P1. This is already required for Application Proxy and custom roles. Assigning the role through Privileged Identity Management (PIM) requires Microsoft Entra ID P2 or Microsoft Entra ID Governance.

I recommend using a user-assigned managed identity. It’s a standalone Azure resource dedicated to CertKit, and it persists if the virtual machine is rebuilt or replaced. Azure Arc-enabled servers support only a system-assigned managed identity, which is shared with the Azure Arc agent and other services on the server.

Required Permissions for CertKit

The managed identity requires the same least-privilege permissions as the client secret method, including the following.

  • Application.Read.All. A read-only Microsoft Graph application permission CertKit uses to find App Proxy applications in the tenant.
  • A custom Entra role. A custom role, named App Proxy Certificate Manager in this example, with only three permissions: read Application Proxy settings, update the Application Proxy SSL certificate, and read connector groups.

This configuration follows security best practices and enforces least privilege. The managed identity can’t add credentials to applications, change API permissions, or grant consent. For more details on these permissions and why built-in roles such as Application Administrator should be avoided, see the client secret post. If you’ve already created the custom role for client secret authentication, you can reuse it.

Create the Managed Identity

A user-assigned managed identity is an Azure resource, so it’s created in the Azure portal rather than the Entra admin center. Create it and attach it to the virtual machine running the CertKit agent using the following steps.

Create the User-Assigned Managed Identity

To begin, create the managed identity.

  1. In the Azure portal, search for Managed Identities and click Create.
  2. Select the subscription, resource group, and region, and enter a name, such as certkit-app-proxy.
  3. Click Review + create, then Create.
  4. On the managed identity’s Overview page, record the Client ID. CertKit and the configuration script both use this value.
The Overview page of the certkit-app-proxy user-assigned managed identity in the Azure portal, with an arrow pointing to the Client ID.

Attach the Managed Identity to the Virtual Machine

Next, attach the managed identity to the virtual machine running the CertKit agent.

  1. Open the virtual machine and navigate to Security > Identity.
  2. Select the User assigned tab and click Add.
  3. Select the managed identity and click Add.
The User assigned tab of the virtual machine's Identity page in the Azure portal, showing the certkit-app-proxy managed identity attached.

Alternatively, attach the managed identity using the Azure CLI in Azure Cloud Shell. Replace the resource group, virtual machine name, and managed identity resource ID with your own. The resource ID is shown on the managed identity’s Properties page.

az vm identity assign --resource-group <resourceGroup> --name <vmName> --identities <managedIdentityResourceId>

Install the Microsoft Graph PowerShell Module on the Agent Host

With managed identity authentication, the CertKit agent signs in to Microsoft Graph locally on the server using the Microsoft.Graph.Authentication PowerShell module. The agent runs as Local System, so the module must be installed for all users. On the server running the CertKit agent, open an elevated Windows PowerShell command window and run the following command.

Install-Module -Name Microsoft.Graph.Authentication -Scope AllUsers -Repository PSGallery -Force

Be sure to use Windows PowerShell, not PowerShell 7. The two use separate module locations, and the CertKit agent uses Windows PowerShell. If the module is missing, CertKit deployments fail with an error indicating that Microsoft.Graph.Authentication is not installed.

Configuration Using PowerShell

You can grant the managed identity its permissions in a single run using my New-CertKitAppProxyIdentity.ps1 PowerShell script on GitHub. Specify the managed identity’s client ID with the -ManagedIdentityId parameter, and the script creates the custom role if it doesn’t already exist, grants Application.Read.All, and assigns the role. Add -UsePim to assign the role through PIM, and -TenantId if your account has access to more than one tenant. The script confirms the identity is a managed identity before making any changes. Alternatively, follow the manual steps below, which show exactly what the script does. Either way, you’ll need the Microsoft.Graph.Authentication module on your workstation. Install it using the following command.

Install-Module -Name Microsoft.Graph.Authentication -Scope CurrentUser

Then run the script, replacing <clientId> with the managed identity’s client ID.

New-CertKitAppProxyIdentity.ps1 -ManagedIdentityId <clientId> -UsePim

When the script finishes, it displays the managed identity’s name and client ID. Skip ahead to Configure CertKit to complete the configuration. To configure the managed identity manually instead, follow the steps below.

Connect to Microsoft Graph

First, connect to Microsoft Graph with an account that can create custom roles, grant application permissions, and assign directory roles, such as Privileged Role Administrator or Global Administrator. If your account has access to more than one tenant, add -TenantId with the tenant ID or domain name to sign in to the correct tenant.

Connect-MgGraph -Scopes 'Application.Read.All', 'AppRoleAssignment.ReadWrite.All', 'RoleManagement.ReadWrite.Directory' -NoWelcome

Find the Managed Identity

Next, find the managed identity’s service principal using its client ID. Confirm that servicePrincipalType is ManagedIdentity before continuing.

$Mi = (Invoke-MgGraphRequest -Method GET -Uri "https://graph.microsoft.com/v1.0/servicePrincipals?`$filter=appId eq '<clientId>'&`$select=id,appId,displayName,servicePrincipalType").value[0]
$Mi

Create the Custom Role

If you haven’t already created the custom role for client secret authentication, create it now. Otherwise, retrieve the existing role.

$RoleBody = @{
displayName = 'App Proxy Certificate Manager'
description = 'Can read Application Proxy settings and update the Application Proxy SSL certificate. Used by CertKit.'
isEnabled = $true
rolePermissions = @(@{
allowedResourceActions = @(
'microsoft.directory/applications/applicationProxy/read'
'microsoft.directory/applications/applicationProxySslCertificate/update'
'microsoft.directory/connectorGroups/allProperties/read'
)
})
}
$Role = Invoke-MgGraphRequest -Method POST -Uri 'https://graph.microsoft.com/v1.0/roleManagement/directory/roleDefinitions' -Body $RoleBody

To retrieve an existing role instead, use the following command.

$Role = (Invoke-MgGraphRequest -Method GET -Uri "https://graph.microsoft.com/v1.0/roleManagement/directory/roleDefinitions?`$filter=displayName eq 'App Proxy Certificate Manager'").value[0]

Grant the Application.Read.All Permission

Next, grant the managed identity the read-only Microsoft Graph application permission Application.Read.All. Assigning the permission this way also grants admin consent.

$GraphSp = (Invoke-MgGraphRequest -Method GET -Uri "https://graph.microsoft.com/v1.0/servicePrincipals?`$filter=appId eq '00000003-0000-0000-c000-000000000000'&`$select=id,appRoles").value[0]
$AppRoleId = ($GraphSp.appRoles | Where-Object { $_.value -eq 'Application.Read.All' -and $_.allowedMemberTypes -contains 'Application' }).id
$Grant = @{
principalId = $Mi.id
resourceId = $GraphSp.id
appRoleId = $AppRoleId
}
Invoke-MgGraphRequest -Method POST -Uri "https://graph.microsoft.com/v1.0/servicePrincipals/$($Mi.id)/appRoleAssignments" -Body $Grant

Assign the Custom Role

Finally, assign the custom role to the managed identity, scoped to the entire tenant.

$Body = @{
'@odata.type' = '#microsoft.graph.unifiedRoleAssignment'
roleDefinitionId = $Role.id
principalId = $Mi.id
directoryScopeId = '/'
}
Invoke-MgGraphRequest -Method POST -Uri 'https://graph.microsoft.com/v1.0/roleManagement/directory/roleAssignments' -Body $Body

If your tenant is licensed for Microsoft Entra ID P2 or Microsoft Entra ID Governance, assign the role through Privileged Identity Management (PIM) instead. Role assignments made outside PIM aren’t tracked by PIM and trigger a high-severity alert. Managed identities support only active assignments in PIM, so the following command creates a permanent active assignment. If the custom role was just created, PIM can take several minutes to recognize it. If the command fails with a RoleNotFound error, wait a few minutes and try again.

$Body = @{
action = 'adminAssign'
justification = 'CertKit certificate deployment to Entra Application Proxy'
roleDefinitionId = $Role.id
directoryScopeId = '/'
principalId = $Mi.id
scheduleInfo = @{
startDateTime = (Get-Date).ToUniversalTime().ToString('o')
expiration = @{ type = 'noExpiration' }
}
}
Invoke-MgGraphRequest -Method POST -Uri 'https://graph.microsoft.com/v1.0/roleManagement/directory/roleAssignmentScheduleRequests' -Body $Body

Configuration Using the Entra Admin Center

The Microsoft Entra admin center can’t grant Microsoft Graph application permissions to a managed identity, so the Application.Read.All permission must be granted using PowerShell, as shown above. The custom role can be created and assigned in the Entra admin center, however. Create the custom role as described in the client secret post if it doesn’t already exist, then assign it using the following steps.

  1. Navigate to Entra ID > Roles & admins, then search for and select App Proxy Certificate Manager.
  2. Click Add assignments, then Select member(s).
  3. Search for the managed identity by name, select it, and click Select.
  4. If Privileged Identity Management (PIM) is enabled, click Next, set the assignment type to Active and Permanently assigned, enter a justification, and click Assign. Without PIM, click Add.

Configure CertKit

With the managed identity configured, create a new deployment in CertKit using the Microsoft Entra Application Proxy (Managed Identity Auth) template for the agent running on the virtual machine. Select the certificate to deploy, then enter the user-assigned managed identity’s client ID in the Managed identity field. To use a system-assigned managed identity instead, such as on an Azure Arc-enabled server, leave the field set to system. No tenant ID or client secret is required. Then list the App Proxy applications to update by name, separated by commas, or enter an asterisk (*) as an app list wildcard to update all of them. If you update all applications, be sure to use a wildcard or multi-SAN certificate that covers the external URL of every App Proxy application you want CertKit to manage.

A CertKit deployment using the Microsoft Entra Application Proxy (Managed Identity Auth) template, with the managed identity client ID entered and the app list wildcard set to update all App Proxy applications.

Deploy and Validate

After saving the CertKit deployment, wait a few minutes for the role assignment and API permission to take effect, then run the deployment. A successful run shows CertKit signing in as the user-assigned managed identity, then lists each App Proxy application, whether its external URL is covered by the certificate, and the thumbprint Entra reports after the update.

Update command output:
Microsoft Entra Application Proxy Deployment | Apps: *
[Step 1] Reading certificate...
Certificate: | Thumbprint: <redacted> | Expires: 2026-11-30
Covers: *.example.net, example.net
[Step 2] Signing in to Microsoft Graph...
Signed in as the user-assigned managed identity <redacted> (tenant <redacted>)
Graph permissions: Application.Read.All
Warning: The identity has no Microsoft Graph permission to update apps. Unless an Entra role allows it, uploads will be refused. Grant the application permission Application.ReadWrite.OwnedBy (admin consented) and add the identity as an owner of each App Proxy app.
[Step 3] Finding App Proxy apps...
Found 8 App Proxy app(s)
App1 (https://app1.example.net/): covered by this certificate
Private Access App 1: skipped, a Global Secure Access (Private Access) app, which has no TLS certificate
Private Access App 2: skipped, a Global Secure Access (Private Access) app, which has no TLS certificate
App2 (https://app2.example.net/): covered by this certificate
App3 (https://app3.example.net/): covered by this certificate
App4 (https://app4.example.net/): covered by this certificate
App5 (https://app5.example.net/): covered by this certificate
App6 (https://app6.example.net/): covered by this certificate
[Step 4] Uploading certificate...
App1 (https://app1.example.net/): updated (Entra reports thumbprint <redacted>, expires 2026-11-30)
App2 (https://app2.example.net/): updated (Entra reports thumbprint <redacted>, expires 2026-11-30)
App3 (https://app3.example.net/): updated (Entra reports thumbprint <redacted>, expires 2026-11-30)
App4 (https://app4.example.net/): updated (Entra reports thumbprint <redacted>, expires 2026-11-30)
App5 (https://app5.example.net/): updated (Entra reports thumbprint <redacted>, expires 2026-11-30)
App6 (https://app6.example.net/): updated (Entra reports thumbprint <redacted>, expires 2026-11-30)
DONE | Updated 6 app(s), 0 already had the certificate. Entra takes a minute or two to start serving it.

CertKit displays a warning that the identity has no Graph permission to update apps, but you can safely ignore it, because the custom role grants that access. App Proxy can take several minutes to begin serving the new certificate. To confirm the certificate the endpoint is serving, use my Get-TlsCertificate PowerShell script, as described in the client secret post.

Get-TlsCertificate -Hostname app1.example.net

Removing the Configuration

To remove CertKit’s permissions from the managed identity, use my Remove-CertKitAppProxyIdentity.ps1 PowerShell script with the -ManagedIdentityId parameter. The script removes the role assignment and the Application.Read.All permission. It doesn’t delete the managed identity, which is an Azure resource, and it keeps the custom role if another identity still uses it. This makes it safe to move from client secret authentication to a managed identity, or back, without breaking the other deployment.

.\Remove-CertKitAppProxyIdentity.ps1 -ManagedIdentityId <clientId>

Summary

When the CertKit agent runs on an Azure virtual machine or an Azure Arc-enabled server, a managed identity eliminates the client secret, removing the need to store, protect, and rotate it. The managed identity uses the same custom Entra role and read-only Application.Read.All permission as the client secret method, so this configuration follows security best practices and enforces least privilege. For organizations without an Azure or Azure Arc presence, client secret authentication remains a secure and effective alternative.

Additional Information

Getting Started with CertKit

Need help automating TLS certificate deployment for Entra Application Proxy, Always On VPN, DirectAccess, IIS, SQL, and more? I can help you design and implement a secure, least-privilege certificate automation strategy with CertKit across your internal and public-facing workloads. Fill out the form below, and I’ll provide you with more information.

← Back

Thank you for your response. ✨

What’s New in Entra Global Secure Access Client for Windows v2.35.136

Microsoft Entra Global Secure Access

On November 16, 2026, Microsoft released a preview update for the Entra Global Secure Access (GSA) client. This latest release, v2.35.136, introduces Device Access, a long-awaited feature that provides Private Access connectivity before the user signs in to Windows. It also adds a new user interface indicator for agent traffic and fixes the GSA traceroute tool, along with memory and telemetry improvements.

Changes in v2.35.136

GSA client v2.35.136 includes the following new features and enhancements.

Device Access (Preview)

Until now, the GSA client established tunnels only in the user context. With Device Access, the GSA client can now authenticate the device itself and tunnel selected Entra Private Access traffic before a user signs in. Administrators familiar with Always On VPN will recognize this as functionally similar to the Always On VPN device tunnel. Device Access supports common pre-logon scenarios, including the following.

  • First-time sign-in and sign-in without cached credentials
  • Password change and reset workflows that require domain controller connectivity
  • Domain controller access during sign-in for authentication, time synchronization, and Group Policy processing
  • Connectivity to on-premises management services such as Configuration Manager and WSUS

Device Access is one of the most requested capabilities for Entra Private Access. It closes an important gap for organizations migrating from traditional VPN, especially those using hybrid-Entra-joined endpoints. There is a lot to cover with this feature, including requirements, configuration, and operational considerations. I cover Device Access in detail in Entra Private Access Device Access Overview.

Agent Traffic Indicator

The GSA client user interface now indicates when the client is configured, via the traffic forwarding profile, to acquire only agent traffic. This makes it easier for administrators and users to understand why other traffic is not being tunneled through GSA.

GSA Traceroute Fixed

In my previous post about GSA client v2.34.222, I noted that the new GUI version of the GSA traceroute tool (GsaTracert.exe) was broken. Launching the tool returned an error indicating it could not retrieve the forwarding profile from the registry. I’m happy to report that this issue is resolved in GSA client v2.35.136, and GsaTracert.exe now works as expected. The tool, which now opens as the Private Access Diagnostic Tool, includes the following two tabs.

  • RTT: Monitors round-trip latency through the GSA Private Access tunnel in real time. Administrators enter a destination as an application ID or host:port, and the tool displays latency for each segment of the path, from the client to the GSA point of presence (PoP), the Private Access gateway, and the Private Network Connector, along with the total. It also reports current, average, and 95th percentile (P95) RTT using a configurable sample rate.
  • Throughput: Measures download and upload throughput through the GSA Private Access tunnel using a configurable payload size. Results include average and P95 values, along with a history of each test and the PoP location used.

Results from both tests can be exported to a CSV file for further analysis or to share with Microsoft support when troubleshooting performance issues.

GSA Private Access Diagnostic Tool showing round-trip latency from the client through the PoP, Private Access Gateway, and connector

GSA Traceroute Round-Trip Time (RTT)

GSA Private Access Diagnostic Tool Throughput tab showing download and upload speeds through the Private Access tunnel

GSA Traceroute Throughput

Additional Changes

In addition to the changes highlighted above, the new GSA client includes the following additional enhancements.

  • Memory improvements
  • Telemetry changes
  • Bug fixes and other miscellaneous improvements

Summary

GSA client v2.35.136 delivers one of the most requested capabilities for Entra Private Access. Device Access enables pre-logon scenarios such as first-time sign-in, password resets, and Group Policy processing, making it much easier for organizations to move away from traditional VPN. This release also restores a working GSA traceroute tool for troubleshooting. Since this release and the Device Access feature are both in preview, organizations should test thoroughly with a pilot group before broad deployment.

Additional Information

Automating Entra App Proxy Certificates with CertKit (Client Secret)

Microsoft Entra ID icon

Microsoft Entra Application Proxy applications published with custom domains require a public TLS certificate, and keeping those certificates current is a manual, error-prone task when done in the Entra admin center. With the industry moving to 47-day public TLS certificates by 2029, automation is quickly becoming a requirement rather than a convenience. I recently configured CertKit to automatically deploy renewed certificates to my Entra App Proxy applications using an Entra app registration with client secret authentication. This configuration follows security best practices and enforces least privilege, granting CertKit only the access it needs to find App Proxy applications and update their certificates. The following sections describe how to configure it using both PowerShell and the Entra admin center. CertKit also supports managed identity authentication, which I cover in Automating Entra App Proxy Certificates with CertKit (Managed Identity).

CertKit Deployment Options

CertKit can deploy a certificate to Entra App Proxy in one of two ways.

  • Individual applications. CertKit updates only the App Proxy applications you specify.
  • All applications. CertKit enumerates every App Proxy application in the tenant, determines which ones have an external URL covered by the certificate, and updates each of them.

If you choose to update all applications, be sure to use a wildcard or multi-SAN (subject alternative name) certificate that covers the external URL of every App Proxy application you want CertKit to manage. CertKit updates only applications whose external URL matches a name on the certificate, so a certificate with a single name updates only the application that uses that name. CertKit also skips Global Secure Access (Private Access) applications, such as Enterprise Quick Access. These applications appear alongside App Proxy applications, but they don’t use a TLS certificate, so there’s nothing to update.

Why 6-Day Certificates

In my lab, I’m using Let’s Encrypt’s short-lived 6-day certificates. Testing and evaluating certificate automation is much easier with short-lived certificates, because renewals happen every few days rather than every few months. Any problem with the renewal or deployment process shows up quickly, and I can confirm the automation works reliably across many renewal cycles in a short time. Short-lived certificates leave little margin for error, though, so I don’t recommend them in production until the automation is proven.

Required Permissions for CertKit

Create a dedicated Entra app registration for CertKit. CertKit uses this identity to sign in to Microsoft Graph, and it requires only the following permissions.

  • Application.Read.All. A read-only Microsoft Graph application permission CertKit uses to find App Proxy applications in the tenant.
  • A custom Entra role. A custom role, named App Proxy Certificate Manager in this example, with only three permissions: read Application Proxy settings, update the Application Proxy SSL certificate, and read connector groups.

This configuration enforces least privilege. Built-in roles such as Application Administrator also work, but they grant far more access than CertKit needs, including the ability to add credentials to any application in the tenant, a well-known privilege escalation path. With the custom role, CertKit can’t add credentials, change API permissions, or grant consent. Custom roles require Microsoft Entra ID P1, which is already required for Application Proxy. CertKit displays a warning that the identity has no Graph permission to update apps, but you can safely ignore it, because the custom role grants that access.

Configuration Using PowerShell

You can perform this configuration in a single run using my New-CertKitAppProxyIdentity.ps1 PowerShell script on GitHub, which creates the app registration, custom Entra role, Application.Read.All permission, role assignment, and client secret for CertKit. If your account has access to more than one tenant, use the -TenantId parameter to specify the tenant to configure. The script displays the connected tenant before making any changes. Alternatively, follow the manual steps below, which show exactly what the script does. Either way, you’ll need the Microsoft.Graph.Authentication module from the Microsoft Graph PowerShell SDK, since every call uses Invoke-MgGraphRequest. Install it using the following command.

Install-Module -Name Microsoft.Graph.Authentication -Scope CurrentUser

To use the script, run New-CertKitAppProxyIdentity.ps1, adding -UsePim to assign the role through PIM. When the script finishes, it copies the client secret to the clipboard and displays the tenant ID and client ID. Skip ahead to Configure CertKit to complete the configuration. To configure the app registration manually instead, follow the steps below.

Connect to Microsoft Graph

First, connect to Microsoft Graph with an account that can create custom roles, grant application permissions, and assign directory roles, such as Privileged Role Administrator or Global Administrator. If your account has access to more than one tenant, add -TenantId with the tenant ID or domain name to sign in to the correct tenant.

Connect-MgGraph -Scopes 'Application.ReadWrite.All', 'AppRoleAssignment.ReadWrite.All', 'RoleManagement.ReadWrite.Directory' -NoWelcome

Create the App Registration

Next, create a dedicated app registration for CertKit. The command displays the application (client) ID, which CertKit needs later.

$NewApp = Invoke-MgGraphRequest -Method POST -Uri 'https://graph.microsoft.com/v1.0/applications' -Body @{ displayName = 'CertKit App Proxy Deployment'; signInAudience = 'AzureADMyOrg' }
$NewApp.appId

Create the Service Principal

App registrations created with Graph don’t get a service principal automatically, so create one. The role and API permission are assigned to the service principal, not the app registration.

$NewSp = Invoke-MgGraphRequest -Method POST -Uri 'https://graph.microsoft.com/v1.0/servicePrincipals' -Body @{ appId = $NewApp.appId }

Create the Custom Role

Now create a custom role that can only read Application Proxy settings and update the Application Proxy SSL certificate.

$RoleBody = @{
displayName = 'App Proxy Certificate Manager'
description = 'Can read Application Proxy settings and update the Application Proxy SSL certificate. Used by CertKit.'
isEnabled = $true
rolePermissions = @(@{
allowedResourceActions = @(
'microsoft.directory/applications/applicationProxy/read'
'microsoft.directory/applications/applicationProxySslCertificate/update'
'microsoft.directory/connectorGroups/allProperties/read'
)
})
}
$Role = Invoke-MgGraphRequest -Method POST -Uri 'https://graph.microsoft.com/v1.0/roleManagement/directory/roleDefinitions' -Body $RoleBody

Grant the Application.Read.All Permission

Next, grant the service principal the read-only Microsoft Graph application permission Application.Read.All. Assigning the permission this way also grants admin consent.

$GraphSp = (Invoke-MgGraphRequest -Method GET -Uri "https://graph.microsoft.com/v1.0/servicePrincipals?`$filter=appId eq '00000003-0000-0000-c000-000000000000'&`$select=id,appRoles").value[0]
$AppRoleId = ($GraphSp.appRoles | Where-Object { $_.value -eq 'Application.Read.All' -and $_.allowedMemberTypes -contains 'Application' }).id
$Grant = @{
principalId = $NewSp.id
resourceId = $GraphSp.id
appRoleId = $AppRoleId
}
Invoke-MgGraphRequest -Method POST -Uri "https://graph.microsoft.com/v1.0/servicePrincipals/$($NewSp.id)/appRoleAssignments" -Body $Grant

Assign the Custom Role

Now assign the custom role to the service principal, scoped to the entire tenant.

$Body = @{
'@odata.type' = '#microsoft.graph.unifiedRoleAssignment'
roleDefinitionId = $Role.id
principalId = $NewSp.id
directoryScopeId = '/'
}
Invoke-MgGraphRequest -Method POST -Uri 'https://graph.microsoft.com/v1.0/roleManagement/directory/roleAssignments' -Body $Body

If your tenant is licensed for Microsoft Entra ID P2 or Microsoft Entra ID Governance, assign the role through Privileged Identity Management (PIM) instead. Role assignments made outside PIM aren’t tracked by PIM and trigger a high-severity alert. Service principals support only active assignments in PIM, so the following command creates a permanent active assignment.

$Body = @{
action = 'adminAssign'
justification = 'CertKit certificate deployment to Entra Application Proxy'
roleDefinitionId = $Role.id
directoryScopeId = '/'
principalId = $NewSp.id
scheduleInfo = @{
startDateTime = (Get-Date).ToUniversalTime().ToString('o')
expiration = @{ type = 'noExpiration' }
}
}
Invoke-MgGraphRequest -Method POST -Uri 'https://graph.microsoft.com/v1.0/roleManagement/directory/roleAssignmentScheduleRequests' -Body $Body

Create the Client Secret

Finally, create a client secret. I’ve chosen a 1-year expiration, but you can choose a shorter or longer period as you see fit by changing the AddYears(1) value. For example, use AddMonths(6) for a 6-month expiration or AddYears(2) for 2 years. The secret is copied to the clipboard rather than displayed on screen, which keeps it out of console history and screen recordings. The secret value can’t be retrieved later, so paste it into CertKit right away.

$Params = @{
passwordCredential = @{
displayName = 'CertKit'
endDateTime = (Get-Date).AddYears(1).ToString('o')
}
}
$Secret = Invoke-MgGraphRequest -Method POST -Uri "https://graph.microsoft.com/v1.0/applications/$($NewApp.id)/addPassword" -Body $Params
$Secret.secretText | Set-Clipboard

After pasting the secret into CertKit, clear the clipboard.

Set-Clipboard -Value $null

Configuration Using the Entra Admin Center

The same configuration can be performed in the Microsoft Entra admin center using an account that can create custom roles, grant application permissions, and assign directory roles, such as Privileged Role Administrator or Global Administrator.

Create the App Registration

To begin, create the app registration. The admin center creates the service principal (enterprise application) automatically.

  1. Navigate to Entra ID > App registrations and click New registration.
  2. Enter CertKit App Proxy Deployment for the name.
  3. Select Accounts in this organizational directory only.
  4. Leave the redirect URI blank and click Register.
  5. On the Overview page, record the Application (client) ID and Directory (tenant) ID.
The Overview page of the CertKit App Proxy Deployment app registration, showing the Application (client) ID and Directory (tenant) ID.

Grant the Application.Read.All Permission

Next, grant the app registration the read-only Application.Read.All permission.

  1. In the app registration, navigate to API permissions. Select the delegated User.Read permission the admin center adds by default and click Remove permission, since CertKit doesn’t use it.
  2. Click Add a permission, then Microsoft Graph > Application permissions.
  3. Search for and select Application.Read.All, then click Add permissions.
  4. Click Grant admin consent for your tenant and click Yes.

Create the Client Secret

Next, create a client secret for CertKit to authenticate with. I’ve chosen a 1-year expiration, but you can choose a shorter or longer period as you see fit.

  1. In the app registration, navigate to Certificates & secrets > Client secrets and click New client secret.
  2. Enter CertKit for the description and select 365 days (12 months) for the expiration.
  3. Click Add, then copy the Value immediately. Don’t copy the Secret ID. The value is displayed only once.

Create the Custom Role

Now create the custom role.

  1. Navigate to Entra ID > Roles & admins and click New custom role.
  2. Enter App Proxy Certificate Manager for the name, add a description, and click Next.
  3. On the Permissions page, search for and select microsoft.directory/applications/applicationProxy/read, microsoft.directory/applications/applicationProxySslCertificate/update, and microsoft.directory/connectorGroups/allProperties/read, then click Next.
  4. Review the settings and click Create.

Assign the Custom Role

Finally, assign the custom role to the new identity.

  1. Navigate to Entra ID > Roles & admins, then search for and select App Proxy Certificate Manager.
  2. Click Add assignments, then Select member(s).
  3. Search for CertKit App Proxy Deployment, select it, and click Select.
  4. If Privileged Identity Management (PIM) is enabled, click Next, set the assignment type to Active and Permanently assigned, enter a justification, and click Assign. Without PIM, click Add.
The App Proxy Certificate Manager role's Active assignments tab in Privileged Identity Management, showing CertKit App Proxy Deployment permanently assigned as a service principal.

Configure CertKit

With the app registration in place, create a new deployment in CertKit using the Microsoft Entra Application Proxy (Client Secret Auth) template. Select the certificate to deploy, and enter the directory (tenant) ID, application (client) ID, and client secret from the app registration. Then list the App Proxy applications to update by name, separated by commas, or enter an asterisk (*) as an app list wildcard to update all of them.

A CertKit deployment using the Microsoft Entra Application Proxy (Client Secret Auth) template, with the wildcard set to update all App Proxy applications.

Deploy and Validate

After saving the CertKit deployment and deploying the changes, wait a few minutes for the role assignment and API permission to take effect, then run the deployment. A successful run lists each App Proxy application, whether its external URL is covered by the certificate, and the thumbprint Entra reports after the update.

Update command output:
Microsoft Entra Application Proxy Deployment | Apps: *
[Step 1] Reading certificate...
Certificate: | Thumbprint: <redacted> | Expires: 2026-11-21
Covers: *.example.net, example.net
[Step 2] Signing in to Microsoft Graph...
Signed in as the app registration <redacted> (tenant <redacted>)
Graph permissions: Application.Read.All
Warning: The identity has no Microsoft Graph permission to update apps. Unless an Entra role allows it, uploads will be refused. Grant the application permission Application.ReadWrite.OwnedBy (admin consented) and add the identity as an owner of each App Proxy app.
[Step 3] Finding App Proxy apps...
Found 7 App Proxy app(s)
App1 (https://app1.example.net/): covered by this certificate
Private Access App: skipped, a Global Secure Access (Private Access) app, which has no TLS certificate
App2 (https://app2.example.net/): covered by this certificate
App3 (https://app3.example.net/): covered by this certificate
App4 (https://app4.example.net/): covered by this certificate
App5 (https://app5.example.net/): covered by this certificate
App6 (https://app6.example.net/): covered by this certificate
[Step 4] Uploading certificate...
App1 (https://app1.example.net/): updated (Entra reports thumbprint <redacted>, expires 2026-11-21)
App2 (https://app2.example.net/): updated (Entra reports thumbprint <redacted>, expires 2026-11-21)
App3 (https://app3.example.net/): updated (Entra reports thumbprint <redacted>, expires 2026-11-21)
App4 (https://app4.example.net/): updated (Entra reports thumbprint <redacted>, expires 2026-11-21)
App5 (https://app5.example.net/): updated (Entra reports thumbprint <redacted>, expires 2026-11-21)
App6 (https://app6.example.net/): updated (Entra reports thumbprint <redacted>, expires 2026-11-21)
DONE | Updated 6 app(s), 0 already had the certificate. Entra takes a minute or two to start serving it.

Validate the Entra Configuration

To confirm Entra stored the new certificate, open the application in Entra ID > Enterprise applications and select Application proxy, or query the application’s App Proxy settings with PowerShell. Replace <objectId> with the app registration’s object ID.

The SSL certificate pane of an App Proxy application, showing the certificate's subject, thumbprint, and expiration date.
$Uri = "https://graph.microsoft.com/beta/applications/<objectId>?`$select=onPremisesPublishing"
(Invoke-MgGraphRequest -Method GET -Uri $Uri).onPremisesPublishing.verifiedCustomDomainCertificatesMetadata.thumbprint

Validate the Live Endpoint

App Proxy can take several minutes to begin serving the new certificate after the configuration is updated. To check the certificate the endpoint is actually serving, view it in a browser or use my Get-TlsCertificate PowerShell script.

Get-TlsCertificate is available in the PowerShell Gallery and on GitHub. Install it using the following command.

Install-Script -Name Get-TlsCertificate

Once installed, run it against the application’s external hostname.

Get-TlsCertificate -Hostname app1.example.net
Output of Get-TlsCertificate showing the certificate served by the App Proxy endpoint, including its issuer, thumbprint, expiration date, and subject alternative names.

The expiration date CertKit displays may differ by one day from the date Entra reports. That’s expected, because Entra reports dates in UTC.

Secret Rotation and Security

The client secret must be rotated before it expires, or CertKit deployments will fail. To rotate it, create a new secret on the app registration, update CertKit with the new value, confirm a deployment succeeds, and then delete the old secret. Set a calendar reminder well ahead of the expiration date. Least privilege limits the impact if the secret is ever exposed. Anyone holding it could replace the TLS certificate on App Proxy applications and read app registration details, but couldn’t add credentials to other applications, change permissions, or grant consent. Even so, store the secret securely and limit who can access it.

Summary

CertKit can fully automate certificate deployment to Entra Application Proxy, either for individual applications or for every App Proxy application in the tenant. By combining a custom Entra role limited to App Proxy certificate updates with the read-only Application.Read.All permission, this configuration follows security best practices and enforces least privilege, without the broad access of built-in roles such as Application Administrator. Using short-lived 6-day certificates makes it easy to confirm the automation works, and rotating the client secret before it expires keeps the deployment running.

Additional Information

Getting Started with CertKit

Need help automating TLS certificate deployment for Entra Application Proxy, Always On VPN, DirectAccess, IIS, SQL, and more? I can help you design and implement a secure, least-privilege certificate automation strategy with CertKit across your internal and public-facing workloads. Fill out the form below, and I’ll provide you with more information.

← Back

Thank you for your response. ✨

WinCLAT on the IPv6 Buzz Podcast

IPv6 Buzz podcast logo

I recently joined Ed Horley and Tom Coffeen on the Packet Pushers IPv6 Buzz podcast episode 212 for a deep-dive discussion on Windows CLAT (WinCLAT). WinCLAT is now generally available. As the client-side component of 464XLAT, it lets IPv4-only applications keep working on IPv6-only networks, which removes one of the biggest obstacles to deploying IPv6-only and IPv6-mostly networks for Windows clients.

Episode Highlights

We covered a lot of ground in this episode, including the following.

  • How WinCLAT bridges the gap for IPv4 applications on IPv6-only networks
  • How WinCLAT lowers the barrier to IPv6 adoption
  • Configuring WinCLAT with PowerShell and Group Policy
  • Advanced troubleshooting techniques
  • Insights from WinCLAT telemetry

Listen or Watch Now

You can listen to IPB212: WinCLAT Deep Dive on the Packet Pushers website or watch the full episode below.

Additional Information

Configuring Proper Time Synchronization in an Active Directory Domain

Wall clock representing time synchronization

Accurate time is critical in an Active Directory environment. Kerberos authentication depends on it, and by default it tolerates no more than five minutes of clock skew between a client and a domain controller. Certificate validity periods, CRL publication, OCSP responses, and log correlation all depend on it too, which becomes even more important as organizations move to short-lived certificates. During a recent engagement to assess and remediate a customer’s Active Directory Certificate Services (AD CS) deployment, I noticed intermittent Kerberos authentication anomalies that didn’t line up with anything in the PKI itself. The root cause turned out to be time synchronization, which nobody had configured correctly across the domain. This post explains what I found and how I fixed it. I’ve reproduced the customer’s configuration in my lab, so the examples and output come from lab.richardhicks.net, but the process is the same one I used in the customer’s environment.

What I Found

When I reviewed time configuration across the customer’s domain, I found several problems, including the following.

  • Inconsistent domain controller configuration. Some domain controllers had never been configured and were still running the defaults. Others had been pointed manually at different external time sources, presumably by different administrators at different times. This resulted in more than one time root in the domain, which is exactly what the Windows time hierarchy is designed to prevent.
  • The PDC emulator was not authoritative. The domain controller holding the PDC emulator role had no external time source configured, so it wasn’t anchoring the domain to UTC.
  • Hyper-V was quietly providing the time. Most of the domain controllers were virtual machines running on Hyper-V. The Hyper-V time synchronization integration service (VMICTimeProvider) was enabled on all of them, and W32Time on the domain controllers was taking time from the host instead of the domain hierarchy.
  • The Hyper-V hosts had no time configuration at all. Most of the domain was running on Hyper-V hosts that were workgroup members. Workgroup machines don’t participate in the domain time hierarchy, and nobody had configured them. They were running on their own clocks, polling time.windows.com infrequently, if they could reach it at all.

The result was a loop with no anchor. The domain controllers took their time from the hosts, the hosts drifted on their own, and nothing in the environment was reliably tied to UTC. Different domain controllers on different hosts could disagree by a meaningful amount, which explained the inconsistent Kerberos behavior. In my lab, the PDC emulator showed the problem clearly.

PS C:\> w32tm.exe /query /status
Leap Indicator: 0(no warning)
Stratum: 1 (primary reference - syncd by radio clock)
...
ReferenceId: 0x564D5450 (source name: "VMTP")
...
Source: VM IC Time Synchronization Provider

Don’t be fooled by Stratum 1. The VM IC provider always reports Stratum 1, but the real source is the Hyper-V host’s clock. A quick comparison against a public time server showed the PDC emulator was about 840 milliseconds off UTC.

PS C:\> w32tm.exe /stripchart /computer:time.cloudflare.com /samples:3 /dataonly
Tracking time.cloudflare.com [162.159.200.1:123].
Collecting 3 samples.
17:36:52, +00.8405031s
17:36:54, +00.8443389s
17:36:56, +00.8415804s

That’s not enough to break Kerberos on its own, but it was drifting, and in the customer’s environment, with multiple hosts and multiple time roots, the differences were much larger.

How Time Sync Should Work

Before making changes, it’s worth reviewing how Windows time synchronization is designed to work in an Active Directory domain. The hierarchy is simple and consists of the following.

  • The forest root PDC emulator is the authoritative time source. It is the only domain controller that should synchronize with an external source, and it advertises itself as a reliable time server (AnnounceFlags 5).
  • All other domain controllers follow the domain hierarchy. They use the NT5DS type and synchronize with the PDC emulator (directly or through their domain’s PDC emulator in a multi-domain forest). They advertise as time servers, but not as reliable ones (AnnounceFlags 10, the default).
  • Domain members synchronize with a domain controller. This is the default behavior for every domain-joined machine, although virtual machines need one adjustment, which I cover next.

Virtual Machines

Virtualization adds a wrinkle. On Hyper-V, the time synchronization integration service registers its own W32Time provider, VMICTimeProvider, which feeds the guest time from the host. It’s enabled by default on every virtual machine, and on a domain-joined VM it competes with the domain hierarchy and usually wins. Microsoft’s guidance is to disable VMICTimeProvider on virtual domain controllers so they get their time from the PDC emulator instead. I recommend disabling it on domain member VMs as well, so every domain-joined machine follows the same hierarchy.

Workgroup Hyper-V Hosts

The Hyper-V hosts matter too. If they’re domain members, they’ll follow the domain hierarchy automatically. If they’re workgroup members, as they were here, they need to be configured explicitly. Even with VMICTimeProvider disabled, the host’s clock still sets each VM’s time at startup and after a restore from a saved state, and the host needs accurate time for its own logs and certificates.

Target Configuration

The end state looks like this. The PDC emulator and the Hyper-V hosts both sync with the same public source, and every domain-joined machine, physical or virtual, follows the domain hierarchy.

SystemTime sourceConfigured by
PDC emulatortime.cloudflare.comDC Time Sync GPO
Other domain controllersPDC emulatorDC Time Settings GPO
Domain members (physical and virtual)Domain controllersDomain Member Time Settings GPO
Hyper-V hosts (workgroup)time.cloudflare.comLocal configuration

Resetting Domain Controllers to the Default Configuration

With domain controllers configured inconsistently, the cleanest approach is to return every one of them to the default configuration and then manage time centrally with Group Policy. Resetting first is important. Local settings remain in the registry underneath any policy, and if a domain controller ever stops receiving the policy (for example, after the PDC emulator role moves), it falls back to whatever was configured locally. Leftover manual peer settings would quietly create a second time root.

Restoring the Defaults

The following commands reset W32Time on every domain controller in the domain. They re-enable the Hyper-V time provider (the default), restore domain hierarchy synchronization, reset the peer list to the stock time.windows.com,0x9 value, and set AnnounceFlags back to 10 with /reliable:no.

$DomainControllers = (Get-ADDomainController -Filter *).HostName
Invoke-Command -ComputerName $DomainControllers -ScriptBlock {
# Re-enable the Hyper-V time provider (default)
$VmicKey = 'HKLM:\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\VMICTimeProvider'
If (Test-Path -Path $VmicKey) {
Set-ItemProperty -Path $VmicKey -Name Enabled -Value 1
}
# Restore domain hierarchy sync, default peer list, and default AnnounceFlags (10)
w32tm.exe /config /manualpeerlist:"time.windows.com,0x9" /syncfromflags:domhier /reliable:no /update
Restart-Service -Name W32Time
w32tm.exe /resync /rediscover
}

I recommend this targeted approach over w32tm.exe /unregister and w32tm.exe /register. Re-registering the service rebuilds the entire W32Time configuration, but it can also remove the VMICTimeProvider subkey. That key is created by the Hyper-V integration components, not by W32Time, and it’s the key we’ll target with Group Policy in the next step.

Verifying the Reset

Next, confirm each domain controller is running the defaults and that no existing Group Policy is configuring W32Time.

Invoke-Command -ComputerName $DomainControllers -ScriptBlock {
Write-Output "=== $env:COMPUTERNAME ==="
w32tm.exe /query /configuration | Select-String 'Type:|NtpServer:|AnnounceFlags:' | ForEach-Object { $_.Line.Trim() }
w32tm.exe /query /source
Write-Output "Time policy present: $(Test-Path -Path 'HKLM:\SOFTWARE\Policies\Microsoft\W32Time')"
}

Each domain controller should report Type: NT5DS (Local) and AnnounceFlags: 10 (Local), and the time policy check should return False. If it returns True, another GPO is already configuring W32Time. Find it and remove those settings before continuing. Don’t be surprised if the source still shows VM IC Time Synchronization Provider on some domain controllers at this point. That’s the default behavior we’re about to fix.

Configuring Time Sync with Group Policy

With every domain controller back to a known state, the next step is to configure time centrally with three GPOs. Two are linked to the Domain Controllers OU, and the third is linked to the domain root for domain members. The design includes the following.

GPOApplies toSettings
DC Time SettingsAll domain controllersType NT5DS, AnnounceFlags 10, NTP client and server enabled, VMICTimeProvider disabled
DC Time SyncPDC emulator only (WMI filter)Type NTP, NtpServer time.cloudflare.com,0x8 time.nist.gov,0xa, AnnounceFlags 5
Domain Member Time SettingsAll domain members (linked to the domain root)VMICTimeProvider disabled

DC Time Sync is linked with a higher precedence (link order 1), so on the PDC emulator its values override the baseline from DC Time Settings. Every other domain controller receives only the baseline. A nice benefit of this design is that it follows the PDC emulator role automatically. If the role moves to another domain controller, the WMI filter matches the new role holder, and the old one falls back to the baseline with no administrator intervention. However, if the PDC emulator role moves to another DC, don’t forget to update the outbound access rules on the edge firewall to allow the new server to access the public time resource.

Choosing a Time Source

I used time.cloudflare.com as the primary time source for this customer, with time.nist.gov as a fallback. You can use any reliable public time service, such as time.windows.com or a regional pool.ntp.org address. Separate multiple servers with spaces in the NtpServer value.

Adding a Fallback Time Source

A single upstream time source works, but it makes the entire domain dependent on one provider. Microsoft recommends configuring three or more time servers when using multiple peers, or, with only two, marking one with the UseAsFallbackOnly flag (0x2). I chose the latter, setting NtpServer to time.cloudflare.com,0x8 time.nist.gov,0xa. The 0xa flag combines client mode (0x8) and fallback only (0x2), so W32Time uses NIST only when Cloudflare is unavailable. Keep the following in mind when choosing a fallback.

  • It removes a single point of failure. Cloudflare’s time service is highly reliable, but the service itself isn’t the only thing that can fail. A DNS resolution failure, a BGP route leak or hijack affecting the provider’s prefixes, an upstream ISP routing problem, or a firewall change can all make a single provider unreachable from your network. NIST runs on a completely separate network and doesn’t use anycast, so an event that affects one provider is unlikely to affect the other.
  • An outage isn’t catastrophic. Even if the PDC emulator can’t reach any upstream source, it keeps running on its own clock and continues serving time to the rest of the domain. Every domain controller and domain member still follows the PDC emulator, so the domain stays in sync with itself while slowly drifting from UTC. That’s what matters most for Kerberos, which compares the client’s clock with the domain controller’s clock, not with UTC. A typical system clock drifts by a few seconds per day at most, so an outage lasting hours or even days has no practical impact. When the time source becomes reachable again, W32Time corrects the accumulated offset automatically.
  • Both sources must handle leap seconds the same way. Cloudflare and NIST both insert leap seconds as a one-second step, so they’re a safe pair. Google, AWS, and Meta smear leap seconds instead, so don’t pair one of them with Cloudflare or NIST. The next section explains why.
  • A fallback doesn’t improve accuracy. A second source improves availability, not accuracy. With UseAsFallbackOnly, W32Time only consults NIST when Cloudflare is unreachable, so there’s nothing to cross-check against. Even with two active peers, there’s no majority to decide which one is right if they disagree. That’s fine for a typical Active Directory domain, which doesn’t require high-accuracy time.

Leap Second Considerations

Avoid mixing time services that handle leap seconds differently. A leap second is an occasional one-second adjustment to UTC that keeps it aligned with the Earth’s rotation. Most time services, including Cloudflare and NIST, apply it the standard way, by inserting the extra second all at once. Google (and AWS) instead “smear” it by slightly slowing their clocks over a 24-hour window, so during that period their time differs from other services by up to half a second. If a domain controller has both kinds of servers in its peer list, they disagree during a leap event, and the results are unpredictable. Pick one approach and use it consistently. You can read more about each approach in Google’s leap smear documentation and Cloudflare’s NTP documentation.

Allowing Outbound NTP

The PDC emulator must be able to reach both time services on UDP port 123. In the customer’s environment, as in my lab, outbound NTP was blocked at the edge firewall. I added a rule allowing outbound UDP 123 from the PDC emulator to the IPv4 and IPv6 addresses of both time services. Cloudflare publishes its addresses in its documentation, and NIST publishes the list of servers that time.nist.gov rotates across. Be sure to include both address families if your domain controllers have IPv6 connectivity, because W32Time will often prefer IPv6 when the name resolves to both. Also, remember to update the rule if the PDC emulator role moves to a different server. You can validate reachability to both services from the PDC emulator before configuring anything.

w32tm.exe /stripchart /computer:time.cloudflare.com /samples:3 /dataonly
w32tm.exe /stripchart /computer:time.nist.gov /samples:3 /dataonly

If both return offsets, you’re good to go. An error of 0x800705B4 indicates a timeout, which usually means UDP 123 is blocked or the IPv6 path isn’t working.

Creating the GPOs

The following script creates the WMI filter and all three GPOs. It links the two domain controller GPOs to the Domain Controllers OU and the member GPO to the domain root. It requires the GroupPolicy and ActiveDirectory modules (Install-WindowsFeature -Name GPMC, RSAT-AD-PowerShell on Windows Server) and Domain Admin rights. Run it in Windows PowerShell 5.1. You can also download the script from GitHub.

#Requires -Modules GroupPolicy, ActiveDirectory
$ErrorActionPreference = 'Stop'
# Variables
$Domain = Get-ADDomain
$DomainFqdn = $Domain.DNSRoot
$DomainDn = $Domain.DistinguishedName
$DcOu = $Domain.DomainControllersContainer
$Pdc = $Domain.PDCEmulator
$PolicyKey = 'HKLM\SOFTWARE\Policies\Microsoft\W32Time'
$NtpServer = 'time.cloudflare.com,0x8 time.nist.gov,0xa'
# Create the WMI filter (or reuse it if it already exists)
$WmiFilterName = 'PDC Emulator'
$WmiQuery = 'SELECT * FROM Win32_ComputerSystem WHERE DomainRole = 5'
$SomPath = "CN=SOM,CN=WMIPolicy,CN=System,$DomainDn"
$WmiFilter = Get-ADObject -Server $Pdc -SearchBase $SomPath -LDAPFilter "(&(objectClass=msWMI-Som)(msWMI-Name=$WmiFilterName))" -Properties 'msWMI-ID'
If ($null -eq $WmiFilter) {
$WmiId = "{$([Guid]::NewGuid().ToString().ToUpper())}"
$Now = (Get-Date).ToUniversalTime().ToString('yyyyMMddHHmmss.ffffff-000')
$FilterParams = @{
Server = $Pdc
Name = $WmiId
Type = 'msWMI-Som'
Path = $SomPath
OtherAttributes = @{
'msWMI-Name' = $WmiFilterName
'msWMI-Parm1' = 'Domain controller holding the PDC emulator role'
'msWMI-Parm2' = "1;3;10;$($WmiQuery.Length);WQL;root\CIMv2;$WmiQuery;"
'msWMI-Author' = "$env:USERNAME@$DomainFqdn"
'msWMI-ID' = $WmiId
'msWMI-CreationDate' = $Now
'msWMI-ChangeDate' = $Now
}
}
New-ADObject @FilterParams
}
Else {
$WmiId = $WmiFilter.'msWMI-ID'
}
# DC Time Settings (all domain controllers)
$AllDcGpo = New-GPO -Name 'DC Time Settings' -Comment 'Baseline W32Time settings for all domain controllers' -Server $Pdc
$Gpo = @{ Name = $AllDcGpo.DisplayName; Server = $Pdc }
Set-GPRegistryValue @Gpo -Key "$PolicyKey\Parameters" -ValueName 'Type' -Type String -Value 'NT5DS' | Out-Null
Set-GPRegistryValue @Gpo -Key "$PolicyKey\Config" -ValueName 'AnnounceFlags' -Type DWord -Value 10 | Out-Null
Set-GPRegistryValue @Gpo -Key "$PolicyKey\TimeProviders\NtpClient" -ValueName 'Enabled' -Type DWord -Value 1 | Out-Null
Set-GPRegistryValue @Gpo -Key "$PolicyKey\TimeProviders\NtpServer" -ValueName 'Enabled' -Type DWord -Value 1 | Out-Null
# Disable the Hyper-V time provider (Group Policy Preference, writes to the service key)
$PrefParams = @{
Name = $AllDcGpo.DisplayName
Server = $Pdc
Context = 'Computer'
Action = 'Update'
Key = 'HKLM\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\VMICTimeProvider'
ValueName = 'Enabled'
Type = 'DWord'
Value = 0
}
Set-GPPrefRegistryValue @PrefParams | Out-Null
# DC Time Sync (PDC emulator only)
$PdcGpo = New-GPO -Name 'DC Time Sync' -Comment 'External NTP source for the PDC emulator' -Server $Pdc
$Gpo = @{ Name = $PdcGpo.DisplayName; Server = $Pdc }
Set-GPRegistryValue @Gpo -Key "$PolicyKey\Parameters" -ValueName 'Type' -Type String -Value 'NTP' | Out-Null
Set-GPRegistryValue @Gpo -Key "$PolicyKey\Parameters" -ValueName 'NtpServer' -Type String -Value $NtpServer | Out-Null
Set-GPRegistryValue @Gpo -Key "$PolicyKey\Config" -ValueName 'AnnounceFlags' -Type DWord -Value 5 | Out-Null
# Assign the WMI filter to DC Time Sync
$PdcGpoDn = "CN={$($PdcGpo.Id.ToString().ToUpper())},CN=Policies,CN=System,$DomainDn"
Set-ADObject -Server $Pdc -Identity $PdcGpoDn -Replace @{ gPCWQLFilter = "[$DomainFqdn;$WmiId;0]" }
# Domain Member Time Settings (all domain members)
$MemberGpo = New-GPO -Name 'Domain Member Time Settings' -Comment 'Disable the Hyper-V time provider so domain members follow the domain hierarchy' -Server $Pdc
$PrefParams = @{
Name = $MemberGpo.DisplayName
Server = $Pdc
Context = 'Computer'
Action = 'Update'
Key = 'HKLM\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\VMICTimeProvider'
ValueName = 'Enabled'
Type = 'DWord'
Value = 0
}
Set-GPPrefRegistryValue @PrefParams | Out-Null
# Link both DC GPOs (DC Time Sync takes precedence)
New-GPLink -Name 'DC Time Sync' -Target $DcOu -LinkEnabled Yes -Order 1 -Server $Pdc | Out-Null
New-GPLink -Name 'DC Time Settings' -Target $DcOu -LinkEnabled Yes -Order 2 -Server $Pdc | Out-Null
# Link the member GPO to the domain root
New-GPLink -Name 'Domain Member Time Settings' -Target $DomainDn -LinkEnabled Yes -Server $Pdc | Out-Null
Get-GPInheritance -Target $DcOu -Server $Pdc | Select-Object -ExpandProperty GpoLinks | Format-Table DisplayName, Order, Enabled
Get-GPInheritance -Target $DomainDn -Server $Pdc | Select-Object -ExpandProperty GpoLinks | Format-Table DisplayName, Order, Enabled

There are a few things worth noting about this script.

  • Everything targets the PDC emulator. The GroupPolicy cmdlets talk to the PDC emulator by default, but the ActiveDirectory cmdlets can pick any domain controller. Without -Server, Set-ADObject may land on a domain controller where the new GPO hasn’t replicated yet, and the script fails partway through. I hit this in the field, so the script now pins every call to the PDC emulator.
  • Only the required values are written. Enabling the Global Configuration Settings Administrative Template writes every value it contains, including some outdated clock discipline defaults. Setting individual registry values avoids that, and everything not set by policy keeps its default. The trade-off is that GPMC may show these under Extra Registry Settings instead of Windows Time Service. That’s cosmetic.
  • VMICTimeProvider is disabled with a preference, not a policy. There is no Administrative Template setting for it. The Group Policy Preference writes directly to the service key, so it persists even if the GPO stops applying, which is what you want for a domain controller.
  • The member GPO needs only the preference. Domain members already default to NT5DS, so VMICTimeProvider is the only thing keeping virtual machines off the domain hierarchy. Because it’s linked to the domain root, it also applies to domain controllers. That’s harmless, since DC Time Settings sets the same value and takes precedence.
  • The WMI filter is assigned directly. The GroupPolicy module has no cmdlet for creating or assigning WMI filters, so the script writes the gPCWQLFilter attribute itself.
  • Multi-domain forests. DomainRole = 5 matches the PDC emulator of any domain. Link DC Time Sync only in the forest root domain. Child domain PDC emulators should follow the domain hierarchy.
DC Time Sync and DC Time Settings GPOs linked to the Domain Controllers OU

GPOs applied to domain controllers.

DC Time Sync GPO with the PDC Emulator WMI filter applied

DC Time Sync GPO with WMI filtering applied to PDC emulator.

Applying the Policies

Force replication so every domain controller has the new GPOs, then apply them and restart the time service.

Invoke-Command -ComputerName $Pdc -ScriptBlock { repadmin.exe /syncall /AdeP | Out-Null }
Start-Sleep -Seconds 60
Invoke-Command -ComputerName $DomainControllers -ScriptBlock {
gpupdate.exe /target:computer /force | Out-Null
Restart-Service -Name W32Time
w32tm.exe /resync /rediscover | Out-Null
}

Domain members pick up the new GPO at their next policy refresh. However, W32Time reads which providers are enabled only when the service starts, so a member VM keeps using VMICTimeProvider until W32Time restarts or the machine reboots. To switch a member over immediately, run the following commands on it.

gpupdate.exe /target:computer /force
Restart-Service -Name W32Time
w32tm.exe /resync /rediscover

Configuring the Workgroup Hyper-V Hosts

With the domain controllers fixed, the last piece is the Hyper-V hosts. In the customer’s environment, most of the domain ran on hosts that were workgroup members, and none had any time configuration. The VMs no longer take their time from the host continuously, but the host’s clock still sets each VM’s time at startup and after a restore from a saved state. Workgroup machines don’t participate in the domain hierarchy, so Group Policy can’t help here. Each host must be configured locally, and there are two reasonable options.

  • Sync directly from the public time service. This is what I did for the customer. The hosts don’t depend on a VM they’re running, which avoids a chicken-and-egg problem at boot. It does require allowing outbound UDP 123 from each host.
  • Sync from the PDC emulator. This keeps a single internal source of truth and needs no additional edge firewall rules, since domain controllers answer NTP requests by default. The downside is that the host boots before the PDC emulator VM and runs on its own clock until the domain controller is available.

Either way, everything traces back to the same UTC source. Run the following commands locally on each Hyper-V host.

# Sync from Cloudflare, with NIST as a fallback
# (0x1 = use SpecialPollInterval, 0x2 = fallback only, 0x8 = client mode)
w32tm.exe /config /manualpeerlist:"time.cloudflare.com,0x9 time.nist.gov,0xb" /syncfromflags:manual /update
# Poll every 1024 seconds (workgroup machines default to once a week)
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient' -Name SpecialPollInterval -Value 1024
Restart-Service -Name W32Time
w32tm.exe /resync /rediscover

Setting SpecialPollInterval is important. The workgroup default is 604,800 seconds, or one week, which is far too infrequent to keep a virtualization host accurate. The 0xb flag on time.nist.gov adds fallback only (0x2) to the same flags, so the hosts follow the same primary and fallback design as the PDC emulator. To sync from the PDC emulator instead, replace the peer list with the PDC emulator’s name or IP address, and optionally add another domain controller with the 0xb flag as a fallback. Use IP addresses if the hosts don’t use the domain’s DNS servers.

Domain Member Virtual Machines

VMICTimeProvider is enabled by default on every Hyper-V VM, not just domain controllers, so domain-joined member VMs take their time from the host instead of the domain hierarchy. With accurate hosts, that works, but it creates a second time root. Domain controllers follow the PDC emulator, while member VMs follow whichever host they run on. In my lab, a member VM was about 77 milliseconds off the PDC emulator, even though both its host and the PDC emulator synced with Cloudflare. If a host loses access to its time source, its VMs drift away from the domain controllers, which is the original problem in a new place. The Domain Member Time Settings GPO prevents this. It disables only the W32Time provider, not the Hyper-V time synchronization integration service, so VMs still get their clock set at startup and after a restore from a saved state.

Validating the Configuration

Once everything is in place, confirm each tier of the hierarchy is getting time from the right place, including the domain controllers, domain members, the Hyper-V hosts, and the domain as a whole.

Validating Domain Controllers

Run the following commands to check the time configuration and status of every domain controller.

Invoke-Command -ComputerName $DomainControllers -ScriptBlock {
Write-Output "=== $env:COMPUTERNAME ==="
w32tm.exe /query /configuration | Select-String 'Type:|NtpServer:|AnnounceFlags:' | ForEach-Object { $_.Line.Trim() }
w32tm.exe /query /status | Select-String 'Stratum:|Root Dispersion:|Source:' | ForEach-Object { $_.Line.Trim() }
Write-Output "VMICTimeProvider Enabled: $(Get-ItemPropertyValue -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\VMICTimeProvider' -Name Enabled)"
}
PowerShell output validating W32Time configuration on each domain controller

Validating domain controller time configuration settings.

The .Line.Trim() is there for a reason. Select-String results returned through Invoke-Command are deserialized objects that PowerShell can’t format, so without it you’ll see blank lines instead of the output. The following table shows what to look for on each type of server.

ServerTypeAnnounceFlagsSourceStratumVMICTimeProvider
PDC emulatorNTP (Policy)5 (Policy)time.cloudflare.com,0x840
Other domain controllersNT5DS (Policy)10 (Policy)PDC emulator50
Hyper-V hostsNTP (Local)n/atime.cloudflare.com,0x94n/a

The (Policy) label confirms Group Policy is in control rather than local settings. Root Dispersion will be high immediately after the service restarts and should settle under a second within about 30 minutes. NtpServer lists both time services, but the source should show time.cloudflare.com. If it shows time.nist.gov, the PDC emulator can’t reach Cloudflare and has switched to the fallback.

Validating Domain Members

On a domain member VM, run the following commands to confirm it follows the domain hierarchy and agrees with the PDC emulator.

w32tm.exe /query /source
w32tm.exe /query /status | Select-String 'Stratum:|Source:|ReferenceId:'
w32tm.exe /stripchart /computer:$Pdc /samples:5 /dataonly
w32tm.exe output on a domain member VM synchronizing with the PDC emulator dc1

Domain member VM synchronizing with the PDC emulator.

The source should be a domain controller, not VM IC Time Synchronization Provider, and the stratum should be one or two levels below the PDC emulator. In my lab, a member VM went from about 77 milliseconds off the PDC emulator to under 10 milliseconds within minutes of switching to the domain hierarchy.

Validating Hyper-V Hosts

On the Hyper-V hosts, run the following commands locally.

w32tm.exe /query /source
w32tm.exe /query /status | Select-String 'Stratum:|Root Dispersion:|Last Successful Sync Time:'
w32tm.exe /query /peers
w32tm.exe output on a Hyper-V host synchronizing with time.cloudflare.com, with time.nist.gov as a fallback peer

Time synchronization settings on the Hyper-V host server.

Both time services are listed as peers. The State for time.cloudflare.com should be Active. A state of Pending that persists usually means the host can’t reach that time server. However, Pending is also normal for up to one polling interval after the service restarts, which is about 17 minutes with a SpecialPollInterval of 1024 seconds, because W32Time rebuilds its peer list and resets the peer statistics. To tell the difference, run w32tm.exe /query /peers /verbose and check LastSyncError. A value of 0x00000000 (Succeeded) means the last sync worked, and the peer will return to Active at its next poll.

Validating the Domain

After things have had time to settle, check the entire domain at once. Every domain controller should show a small offset relative to the PDC emulator, with no errors.

w32tm.exe /monitor /domain:$DomainFqdn
w32tm.exe /monitor output showing all domain controllers in sync with the PDC emulator

All domain controllers synchronizing with the PDC emulator.

You might notice an unusual IPv4 address listed for dc1, such as 36.113.118.130. That’s not dc1’s address, and it’s not a real IPv4 address at all. It’s the RefID, which identifies the server’s upstream time source. The NTP reference ID field is only 32 bits, so when the source is reached over IPv6, as time.cloudflare.com is here, the field contains the first 32 bits of the MD5 hash of the source’s IPv6 address, as defined in RFC 5905. It’s expected behavior and can safely be ignored. In my lab, the PDC emulator went from roughly 840 milliseconds off UTC to closely tracking UTC once it began syncing with Cloudflare. In the customer’s environment, the Kerberos anomalies stopped once all domain controllers and hosts converged on a single source.

Summary

Time synchronization is easy to overlook, especially in virtualized environments where Hyper-V quietly fills in the gaps. In this case, the symptoms showed up as Kerberos anomalies during an AD CS engagement, but the root cause was a domain with no single, authoritative time source. The fix came down to the following steps.

  1. Reset every domain controller to the default W32Time configuration.
  2. Configure the PDC emulator, and only the PDC emulator, to sync with a reliable public time service, plus a second as a fallback, using a WMI-filtered GPO.
  3. Configure all other domain controllers to follow the domain hierarchy and disable VMICTimeProvider on every domain controller with a second GPO.
  4. Disable VMICTimeProvider on domain members with a third GPO linked to the domain root, so virtual machines follow the domain hierarchy too.
  5. Allow outbound UDP 123 for the systems that sync externally.
  6. Explicitly configure any workgroup Hyper-V hosts, since they don’t participate in the domain hierarchy.

With Group Policy managing the domain controllers and domain members, the configuration is consistent, self-documenting, and follows the PDC emulator role automatically if it ever moves.

Additional Information

Always On VPN Security Updates November 2026

Always On VPN security updates

Microsoft released the November 2026 security updates today, which include three vulnerabilities affecting Always On VPN deployments. This month’s release addresses issues in the Secure Socket Tunneling Protocol (SSTP) and Internet Key Exchange (IKE). And for a change, there are NO vulnerabilities in the Windows Server Routing and Remote Access Service (RRAS) this month!

SSTP Vulnerabilities

SSTP is commonly used for Always On VPN user tunnel connections. Because SSTP is, by design, exposed directly to the Internet, vulnerabilities affecting this protocol deserve attention. This month’s updates address the following two SSTP vulnerabilities. Both are rated Important.

CVE-2026-105561 – Windows SSTP Denial of Service Vulnerability (CVSS 7.5)

CVE-2026-105510 – Windows SSTP Elevation of Privilege Vulnerability (CVSS 7.0)

IKE Vulnerability

The November 2026 security updates also address a spoofing vulnerability in the Windows IKE Extension. Always On VPN implementations that use the device tunnel or IKEv2 for the user tunnel are affected. Microsoft rates this vulnerability as Important.

CVE-2026-122169 – Windows IKE Extension Spoofing Vulnerability (CVSS 7.5)

Not Using IKEv2?

If you are not using the device tunnel or IKEv2 for the user tunnel, ensure the following IKEv2 ports are blocked at the edge firewall.

  • Inbound UDP port 500 (IKE)
  • Inbound UDP port 4500 (IKE NAT-T)

In addition, consider disabling IKEv2 on the RRAS server entirely. Guidance for doing this is in my earlier post, Always On VPN IKEv2 Security Vulnerability April 2026.

No RRAS Vulnerabilities

RRAS has been a regular fixture in the monthly security updates, with several CVEs disclosed in most recent releases. September 2026 alone included eight RRAS CVEs, four of them rated Critical. It is refreshing to report that the November 2026 release includes no RRAS vulnerabilities at all.

Summary

This is a relatively light month for Always On VPN administrators. All three vulnerabilities are rated Important, and none are rated Critical. However, SSTP and IKE are both Internet-facing services in most Always On VPN deployments, so administrators should plan to deploy these updates during their next scheduled maintenance window and avoid unnecessary delays.

Additional Information

What’s New in Entra Private Network Connector v1.5.5130.0

Microsoft Entra Private Access

On November 9, 2026, Microsoft released an important update for the Microsoft Entra Private Network Connector. The Entra Private Network Connector is used to publish on-premises web applications to the internet. It is also used for Global Secure Access (GSA) with Entra Private Access, allowing GSA clients to access on-premises resources. Entra Private Network Connector v1.5.5130.0 includes new functionality to improve performance monitoring, name resolution, logging, and overall reliability and security.

New Features

This release introduces new capabilities for monitoring connector performance and resolving names in complex network environments, including the following.

Performance and Diagnostics

The Connector Diagnostics tool, available from the system tray, now includes a new Performance tab. Here, administrators can view up to 24 hours of resource history for the connector server, collected in one-minute aggregates. The Performance tab displays average and peak values for the following metrics.

  • Machine CPU: Total CPU usage across the machine.
  • Connector CPU: Share of total machine CPU used by the connector.
  • Connector resident memory: Physical memory used by the connector process.
  • Machine available memory: Physical memory still available to applications.

Administrators can use the Window drop-down list to display performance history for the last 1 hour, 6 hours, or 24 hours. This gives better visibility into resource consumption over time, which is helpful when sizing connector servers or investigating performance issues. In addition, this update improves the accuracy of connector health reporting.

Entra Private Network Connector Diagnostics Performance tab showing machine CPU, connector CPU, connector resident memory, and machine available memory charts

DNS Resolution

The connector now honors DNS suffixes and DNS servers configured on individual network interfaces in Windows. This update also improves the fallback behavior for DNS SRV record queries.

Improvements

In addition to new features, v1.5.5130.0 includes several improvements to logging, reliability, and security.

Logging and Observability

This update includes the following changes to connector logging.

  • Trace file rotation is now supported.
  • The default capacity for the Session event log has been increased to 3 GB.
  • Error messages for connectivity and backend failures have been improved to streamline troubleshooting.

Note: With the larger default Session event log size, administrators should ensure the connector server has sufficient free disk space on the system drive.

Reliability and Security

This update also includes the following reliability and security enhancements.

  • TCP keepalive has been added to reduce idle connection resets.
  • Memory management during request processing has been improved.
  • Security for local log files and other connector files has been enhanced.

Updating to v1.5.5130.0

Existing Entra Private Network Connector installations will not automatically receive this update. Administrators must manually download the connector from the Microsoft Entra admin center and apply the update themselves to take advantage of these new features and capabilities.

Additional Information

Managing Windows CLAT (WinCLAT) with Intune Remediations

Microsoft Intune icon

Windows CLAT (WinCLAT) allows IPv4 applications to reach IPv4 destinations on IPv6-only and IPv6-mostly networks. Windows does not permit WinCLAT on Wi-Fi or Ethernet by default, and Microsoft Intune does not currently expose a setting to permit it. This post explains how to deploy the permit setting with Intune Remediations, verify that WinCLAT is translating, and maintain connectivity to Intune when removing the setting.

WinCLAT Configuration Options in Intune

At the time of this writing, Intune does not expose WinCLAT configuration settings in the Settings Catalog or through a CSP. The corresponding Group Policy settings are defined in the built-in Windows template tcpip.admx. However, Intune’s custom ADMX import feature is intended for third-party and custom templates. Microsoft explicitly advises against importing built-in Windows ADMX files when the goal is to configure those settings, recommending the Settings Catalog or a custom profile instead.

Configuring WinCLAT with Remediations

An Intune Remediation can write the same registry value that Group Policy uses to permit WinCLAT on non-cellular interfaces. Windows reads that value as policy and gives it precedence over the local permit setting. If Group Policy already configures the setting on a device, continue managing it through Group Policy, since a policy refresh can overwrite the value written by the remediation script.

Deployment Requirements

Before deploying the Remediation, confirm that clients meet the following connectivity, platform, and licensing requirements.

Intune Connectivity Before WinCLAT Starts

The Intune Management Extension must be able to reach the endpoints it uses to retrieve the script package before WinCLAT starts. Native IPv4 provides that path on dual-stack networks and on IPv6-mostly networks where Windows still has a DHCPv4 lease. On an IPv6-only network, DNS64 and NAT64 can provide access to IPv4-only Intune endpoints by name. If the target network has no working path to the required endpoints before WinCLAT starts, deploy the package from a network that does. After deployment, verify that the device can still check in with Intune from the target network.

NetworkPath to Intune before WinCLAT is enabledExpected delivery path available?
Dual-stackNative IPv4Yes
IPv6-mostly (DHCPv4 option 108)Native IPv4. While WinCLAT is not permitted, Windows does not honor option 108 and takes a DHCPv4 leaseYes
IPv6-only with DNS64/NAT64DNS64 and NAT64Yes
IPv6-only without DNS64/NAT64No path to required IPv4-only endpoints in this scenarioNo

Windows and Intune Prerequisites

Devices must run Windows 11 version 25H2 build 26200.9550 or later, be Microsoft Entra joined or Microsoft Entra hybrid joined, and be enrolled in Intune or co-managed. Verify that device users have a qualifying license, such as Windows Enterprise E3 or E5, and that the Intune Management Extension is installed before running the package on demand.

WinCLAT Policy Settings

The WinCLAT Group Policy settings are in tcpip.admx under Computer Configuration > Policies > Administrative Templates > Network > TCPIP Settings > IPv6 Transition Technologies, and they are stored as DWORD values in the following location.

HKLM\SOFTWARE\Policies\Microsoft\Windows\TCPIP\v6Transition\IPxlatCfgSvc
Registry valuenetsh.exe settingModule propertyPurpose
PermitNonCellularCLATpermitPermitPermits WinCLAT on non-cellular interfaces
GetPrefixInfoFromRApref64fromraPref64FromRADiscovers the NAT64 prefix from the PREF64 option in router advertisements
GetPrefixInfoFromDNSpref64fromdnsPref64FromDnsDiscovers the NAT64 prefix by querying ipv4only.arpa against a DNS64 server

Interpreting WinCLAT Policy Values

Each policy value is a REG_DWORD. A value of 1 enables the setting, and a value of 0 disables it. Deleting the value returns control to the local setting. Windows allows NAT64 prefix discovery through both router advertisements and DNS by default, so the scripts in this post manage only PermitNonCellularCLAT.

Deploying the WinCLAT Remediation

Detect-WinClatPermitPolicy.ps1 compares PermitNonCellularCLAT with the desired registry state. It returns exit code 0 when the state matches and 1 when a change is needed. When detection returns 1, Intune runs Remediate-WinClatPermitPolicy.ps1 to write or remove the policy value.

Setting the Desired Policy State

Both scripts begin with a $DesiredState variable that corresponds to the three states of the Group Policy setting. Remediations do not accept parameters, so set the variable to the same value in both scripts before uploading them and create a separate Remediation for each state that is needed, such as Enable WinCLAT and Remove WinCLAT Policy.

# Enabled, Disabled, or NotConfigured. Must match the remediation script.
$DesiredState = 'Enabled'
Desired stateRegistry valueResult
Enabled1WinCLAT is permitted, and the setting is under policy control
Disabled0WinCLAT is not permitted, and the setting is under policy control
NotConfiguredDeleted, along with the IPxlatCfgSvc key if it is then emptyThe setting returns to the local configuration

Creating and Assigning the Package

Perform the following steps to create the Remediation in the Microsoft Intune admin center.

  1. Go to Devices > Manage devices > Scripts and remediations, then select Create script package.
  2. Enter a name, such as Enable WinCLAT, and upload the detection and remediation scripts with $DesiredState set to Enabled.
  3. Configure the following settings:
    1. Run this script using the logged-on credentials: No. The scripts write to HKLM and must run as SYSTEM.
    2. Enforce script signature check: No, unless the scripts are signed.
    3. Run script in 64-bit PowerShell: Yes.
  4. Assign the Remediation to a group of devices and choose a schedule. An hourly or daily schedule keeps the value in place if it is removed.
Intune Remediation script package settings

Intune Remediation script configuration settings.

Testing the Remediation on a Single Device

To test the package, open the device’s Overview page in the Intune admin center, select Run remediation, and choose the WinCLAT script package. You can run the package on demand without assigning it to the device. The device must be online, have the Intune Management Extension installed, and be able to communicate with Intune and the Windows Push Notification Service (WNS).

Run remediation action on an Intune device page

Run Remediation interactively on a specific endpoint.

Reviewing Remediation Results in Intune

On the device page in the Intune admin center, select Remediations to review the script package results. In the example below, With issues indicates that the registry state differed from the desired state, and Issue fixed indicates that the script corrected it. Verify the effective permit setting and translation state separately on the client.

Intune device Remediations results showing With issues and Issue fixed

Remediation results.

WinCLAT Activation After Remediation

Applying the permit policy allows Windows to start WinCLAT automatically on eligible interfaces. What happens next depends on whether the interface already has a native IPv4 address and whether Windows can discover a NAT64 prefix.

IPv6-Only Networks

On an IPv6-only test network, WinCLAT begins translating about a minute after the script writes the permit value, without a reboot, Group Policy refresh, or service restart. The instance uses an address from the IPv4 Service Continuity Prefix (RFC 7335), typically 192.0.0.1. Automatic activation requires an eligible interface with a Stateless Address Autoconfiguration (SLAAC) address, a discoverable NAT64 prefix, and autoenable enabled. The policy value persists across reboots.

IPv6-Mostly Networks

On an IPv6-mostly network, Windows already has a DHCPv4 lease when the remediation runs. Neither applying the permit policy nor running ipconfig /renew releases the existing lease. After the adapter restarts, Windows honors DHCPv4 option 108 (IPv6-Only Preferred), comes up without a native IPv4 address, and starts translating within seconds. For a production rollout, let devices reconnect normally or restart the target adapter during a maintenance window. Restarting it interrupts connectivity.

WinCLAT Activation Events

Use the Microsoft-Windows-IPxlatCfg/Operational log to verify that WinCLAT started. Event 1106 (Instance enabled) records why Windows enabled the instance, and Get-WinClatInstance reports that reason in TriggerSource when the event is available. When a new instance starts translating, event 1106 is typically followed by event 1108 (Remote prefix discovered) and event 1109 (Translation started). For more on event 1106 and how to identify the associated network adapter, see Understanding Windows CLAT (WinCLAT) Event Logging.

Event 1109 in the IPxlatCfg Operational log showing that WinCLAT translation started

Event 1109 shows that WinCLAT began translating.

Verifying Policy and Translation

Verify the effective permit setting first, then check whether WinCLAT is translating on the target interface. Use netsh.exe or the WinCLAT PowerShell module for both checks.

Verifying the Effective Permit Setting

Run netsh.exe interface clat show global store=both or Get-WinClatConfiguration -Store Both to compare the active and persistent stores. The active store shows the effective configuration, and the persistent store shows the saved local configuration. In this example, policy enables permit in the active store while the local setting remains disabled. Use the module’s PolicyControlled property to confirm that policy controls Permit, even when both stores report the same value.

Output of netsh interface clat show global store=both

Output of netsh.exe interface clat show global store=both.

Get-WinClatConfiguration -Store Both | Format-List
Output of Get-WinClatConfiguration -Store Both

Output of Get-WinClatConfiguration -Store Both.

Verifying Translation on an Interface

From an elevated command window, run netsh.exe interface clat show instance interface=<index> using the interface index from Get-NetAdapter, and look for Is translating : yes. Alternatively, run Get-WinClatInstance and look for IsTranslating : True on the target interface. The module lists active adapters with IPv6 enabled, so you can run it without supplying an interface index. To verify end-to-end connectivity, test an IPv4-only application or connect to a literal IPv4 address from the target network.

Output of netsh interface clat show instance

Output of netsh.exe interface clat show instance.

Output of Get-WinClatInstance

Output of Get-WinClatInstance.

Removing the WinCLAT Policy

Unassigning the enablement package leaves the policy value in the registry. To restore local control, create a removal package using the same scripts with $DesiredState set to NotConfigured. Use Disabled when you want policy to enforce a disabled permit setting.

Maintaining Intune Connectivity During Removal

Before removing the policy, confirm that the device will still be able to reach Intune if automatic WinCLAT translation stops. A device that relies on WinCLAT to reach IPv4-only Intune endpoints can lose its ability to report the result or receive a recovery package. Use a network with a working path to Intune through native IPv4 or DNS64 and NAT64. On an IPv6-mostly network, check whether the device has a native IPv4 address after removal. Reconnect the adapter if it needs to obtain a new DHCPv4 lease.

Replacing the Enablement Assignment

Before assigning the Remove WinCLAT Policy package, remove the target devices from the enablement assignment. Use a pilot device to confirm that it has received the assignment change and that the enablement package no longer runs on it. After the target devices report successful removal, you can assign the removal package more broadly.

Verifying Policy Removal

Run Get-WinClatConfiguration and confirm that PolicyControlled no longer lists Permit. The effective Permit value should now match the local setting, which is disabled by default. If removal stops an automatically enabled instance, Get-WinClatInstance should report IsTranslating : False for that interface. The operational log may also show event 1110 (Translation stopped) and event 1107 (Instance disabled).

Event 1107 showing that Windows disabled the WinCLAT instance

Event 1107 shows that Windows disabled the WinCLAT instance on the interface.

Get-WinClatConfiguration output showing Permit False and an empty PolicyControlled field

Get-WinClatConfiguration shows Permit=False and an empty PolicyControlled field.

Get-WinClatInstance output showing IsTranslating False

Get-WinClatInstance shows IsTranslating=False.

Limits of Registry-Based Management

The script packages manage the WinCLAT permit policy. Automatic activation, manually enabled instances, and local changes to policy-controlled settings require separate checks.

Automatic Activation

The autoenable setting is enabled by default and has no corresponding WinCLAT Group Policy setting. If an administrator has disabled it, setting PermitNonCellularCLAT to 1 permits WinCLAT but leaves automatic activation disabled. To restore automatic activation, use netsh.exe interface clat set global autoenable=enabled or Set-WinClatConfiguration -AutoEnable Enabled.

Manually Enabled Instances

Disabling Permit stops automatically enabled instances. A manually enabled instance can continue translating until you disable it explicitly or the device reboots. Check the instance state on the target interface if your objective is to stop translation.

Local Changes to Policy-Controlled Settings

When policy controls a WinCLAT setting, netsh.exe interface clat set global can report success and update the local value in the persistent store while the active value continues to follow policy. Use netsh.exe interface clat show global store=active to verify the effective value. If you use Set-WinClatConfiguration to request a value that differs from the effective policy value, the cmdlet reports PolicyOverride.

Using netsh.exe in a Remediation

A Remediation can also run netsh.exe to configure WinCLAT, and this is the only way to enforce autoenable. However, netsh.exe changes the local configuration rather than policy, and reliable detection requires parsing localized command output, so this approach is outside the scope of this post.

Summary

Intune Remediations can deploy and remove the WinCLAT permit policy on Windows 11. Make sure devices can reach Intune before deployment, then verify the effective policy and translation state on the target interface. On IPv6-mostly networks, devices with an existing DHCPv4 lease may need to reconnect before Windows uses WinCLAT. Before removing the policy, confirm that devices will still have a working path to Intune.

Additional Information