How to Connect RD Gateway to Microsoft Entra MFA
Windows Server 2022 and 2025 · Microsoft Entra MFA · Public cloud
RD Gateway can send connection-authorization requests to a central NPS server that performs Microsoft Entra MFA. The gateway continues to enforce its own resource policies after that authentication succeeds.
This guide assumes the NPS extension and its tenant certificate are already configured on a separate server. Use a pilot gateway or a planned cutover because changing the CAP store affects that gateway's authentication path.
Updated 7 November 2026
Before You Begin
- A working gateway, an MFA-enabled NPS server registered in AD, and an enrolled pilot user with the required license.
- The gateway's actual RADIUS source IP, the NPS address, a strong shared secret and approved UDP connectivity.
- A dedicated allowed-user group and existing RD RAPs that restrict destinations appropriately.
- Saved gateway and NPS settings, a recovery management route and a clear rollback plan.
-
Add the gateway as a RADIUS client on central NPS
On the separate MFA NPS server, open Network Policy Server → RADIUS Clients and Servers → RADIUS Clients. Create a new enabled client with a recognizable name and the source IP used by the gateway's RADIUS traffic.
Set a strong shared secret and retain it in your approved secret store. If a firewall performs address translation, the client definition must match the source that NPS actually receives. Add each gateway deliberately rather than allowing an unnecessarily broad address range.
-
Prepare a scoped central network policy
Under Policies → Network Policies, duplicate Connections to other access servers and give the copy a clear RD Gateway name. Enable it, select Grant access, and use the RD Gateway server type where available.
Add conditions for the intended Windows security group and gateway RADIUS client. Under Constraints → Authentication Methods, select Allow clients to connect without negotiating an authentication method, as required for this RD Gateway integration. Apply this only to the dedicated gateway policy.
Order policies so the scoped gateway policy matches before conflicting rules. On this central server, the matching Connection Request Policy must authenticate requests locally; it must not proxy them to another NPS server. Review account dial-in restrictions and existing deny rules if the policy still rejects an intended user.
-
Point the gateway's CAP store to NPS
On the gateway, open RD Gateway Manager, right-click the server and select Properties → RD CAP Store. Choose Central server running NPS, add the separate NPS server and enter the matching shared secret.
Apply the setting during the planned cutover. Keep RD RAPs on the gateway and confirm they still restrict the pilot user to approved destinations. Moving CAP evaluation to NPS does not move RAP evaluation.
-
Verify gateway forwarding and increase the timeout
On the gateway's local NPS console, inspect Policies → Connection Request Policies → TS GATEWAY AUTHORIZATION POLICY. Confirm authentication forwards to the intended TS GATEWAY SERVER GROUP.
Under RADIUS Clients and Servers → Remote RADIUS Server Groups, edit that group's NPS entry. On Load Balancing, set the no-response timeout to a value in the documented 30–60 second range, such as 60 seconds. Set the unavailable-server retry interval equal to or greater than that value. Review every configured NPS entry.
-
Resolve the gateway's MFA-method limitation
Use a method this flow can complete: phone verification or Authenticator approve-or-deny push. RD Gateway cannot collect SMS or TOTP codes, and NPS does not support Authenticator number matching.
If the registered method combination causes a TOTP challenge, and your security policy approves the weaker approve-or-deny experience, configure the following on each MFA NPS server using Registry Editor. Create or edit a String Value (REG_SZ), then restart NPS in the planned window.
Conditional approve-or-deny compatibility setting
Path: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\AzureMfa Name: OVERRIDE_NUMBER_MATCHING_WITH_OTP Type: REG_SZ Data: FALSEThis is a deliberate compatibility choice, not a way to obtain number matching on RDS. If it does not meet your security requirements, use a different approved authentication architecture.
-
Test acceptance, rejection and resource restrictions
Start a fresh external connection with the pilot account and make sure it uses the protected gateway. Approve the MFA request and confirm the intended resource opens. Then test rejection, no response and an unenrolled account; none should establish the new session.
Test a disallowed destination and an account outside the allowed group. Verify the gateway's CAP and RAP events and the matching NPS and AzureMfa logs. Do not use a reused session as your only MFA test.
-
Verify redundancy before expanding access
If multiple NPS servers are configured, repeat the test through each node and during a controlled node outage. All fallback nodes must enforce equivalent MFA and authorization rules.
Confirm
REQUIRE_USER_MATCHis absent orTRUE, record the working settings and onboard the remaining users before routing them to this gateway path. Preserve the intended host and collection permissions after the MFA cutover.
Frequently Asked Questions
The user can pass MFA and then fail a gateway resource policy, target logon right, certificate check or RDS licensing check. Follow the next component's error.
Admin Note: Do not use broad grant policies or unenrolled-user bypass as a shortcut during rollout. Pilot on a controlled route and enroll users before moving their connections.
Planning Your RDS Deployment?
Review the RDS CAL requirements for your Session Hosts alongside your technical setup. MFA subscriptions and application licenses have separate requirements.
Author Bio
Microsoft Certified Professional
With over 20 years of experience deploying and managing enterprise Windows Server environments, Keloth leads technical implementation at RDS CAL Store. He specializes in Remote Desktop Services infrastructure, secure remote architecture, and helping IT teams seamlessly scale their official licensing.
Related Posts
Understanding RDS CAL Downgrade Rights
Home – Understanding RDS CAL Downgrade Rights Understanding RDS CAL Downgrade Rights When managing a Remote Desktop Services environment, hardware and software upgrades rarely happen all at once. You might purchase new Client Access Licenses (CALs) today, but still need them to authorize connections to older servers running in your datacenter. Microsoft accommodates this reality…
How to Disable Remote Desktop Easy Print in Windows Server (2016-2025)
Home – How to Disable Remote Desktop Easy Print in Windows Server (2016-2025) How to Disable Remote Desktop Easy Print in Windows Server (2016-2025) Remote Desktop Easy Print is the default driver Windows uses to map local client printers into a remote session. While convenient, it strips away advanced printer features (like stapling, tray selection,…
How to Create a Remote Desktop User in Windows Server (2016, 2019, 2022 & 2025)
Home – How to Create a Remote Desktop User in Windows Server (2016, 2019, 2022 & 2025) How to Create a Remote Desktop User in Windows Server (2016, 2019, 2022 & 2025) Provisioning remote access for a new employee requires more than just creating a standard Windows account. To securely connect to a Session Host,…
How to Fix the CredSSP “Encryption Oracle Remediation” RDP Error
Home – How to Fix the CredSSP “Encryption Oracle Remediation” RDP Error How to Fix the CredSSP “Encryption Oracle Remediation” RDP Error If you are managing Windows Servers, you have likely encountered this terrifying error message when trying to connect via Remote Desktop: “An authentication error has occurred. The function requested is not supported… This…