To configure NPS on Windows Server 2025, you build one RADIUS server that checks Wi-Fi, wired 802.1X, and VPN logins against AD. Before you start, confirm the server is domain-joined. Use Server with Desktop Experience. Microsoft’s NPS overview states that the NPAS role isn’t available when you use the Server Core installation option, so a Core box won’t work here.
You’ll also need a server certificate with the Server Authentication EKU that your clients trust.
The path is short. Install the Network Policy and Access Services (NPAS) role, register it in AD, and add your access points and switches as RADIUS clients. Then build a connection request policy and an 802.1X network policy that uses PEAP or EAP-TLS. Revoking access becomes “disable the account” instead of “rotate the Wi-Fi password on 40 devices.” The same role and nps.msc console apply to Windows Server 2022, 2019, and 2016.
Configure Network Policy Server (NPS) on Windows Server 2025: Quick Reference
| Task | Where | Key setting |
|---|---|---|
| Install role | Server Manager or Install-WindowsFeature NPAS -IncludeManagementTools | Network Policy Server role service |
| Register in AD | nps.msc > right-click NPS (Local) | Register server in Active Directory |
| Add RADIUS clients | RADIUS Clients and Servers > RADIUS Clients | Device IP + shared secret, UDP 1812/1813 |
| Route requests | Policies > Connection Request Policies | Process locally or forward to a remote group |
| Authorize users | Policies > Network Policies | Windows Groups + NAS Port Type + EAP type |
| Log activity | Accounting > Configure Accounting | Text file, SQL Server, or a combination, depending on your setup |
| Redundancy | Templates Management, Export-NpsConfiguration | Secondary NPS server kept in sync |
What NPS Does and When You Need It
NPS is the RADIUS server built into Windows Server. Access points, 802.1X switches, and VPN servers send it login requests. NPS checks the credentials or certificate against AD, runs your policies, and replies with Access-Accept or Access-Reject. It can also act as a RADIUS proxy that forwards requests to other servers (Microsoft Learn: NPS overview). You need it when a shared Wi-Fi key stops scaling:
- Corporate or homelab Wi-Fi: Every user or device logs in with its own AD identity or certificate.
- Wired port security: An unknown laptop plugged into a wall jack gets nothing.
- VPN: Windows RRAS or a third-party VPN reuses the same AD-backed policies.
- Multi-site or multi-domain: An NPS proxy routes each request to the right domain’s NPS server.
Now the trade-offs. NPS ships as a built-in Windows Server role, so there’s no separate license cost for it, and it has a native AD policy GUI. FreeRADIUS handles non-AD backends better but has no comparable point-and-click AD tooling. Cisco ISE and Aruba ClearPass add device profiling and posture checks, at much higher cost and complexity. For a plain AD shop doing 802.1X, NPS is usually the right size.
NPS sits on top of AD authentication, so that layer needs to work first. If Kerberos and SPNs are fuzzy, read our guide on how Kerberos authentication and setspn work in Active Directory before you start.
Prerequisites: Domain Join, AD Security Groups, and the NPS Server Certificate
| Requirement | Details |
|---|---|
| OS | Windows Server 2025 (2022/2019/2016 also support the NPS role; some cmdlets, wizard labels, and firewall behavior differ by version) |
| Installation option | Server with Desktop Experience (Microsoft: the NPAS role isn’t available on Server Core) |
| Domain | Server joined to the AD domain that holds your users |
| Rights | Local Administrators (or equivalent) on the NPS, Microsoft’s stated minimum for registration; cross-domain registration needs rights to edit that domain’s RAS and IAS Servers group |
| Certificate | Server Authentication EKU, issued by a CA your clients trust |
| Network | UDP 1812 (auth) and 1813 (accounting) open from every RADIUS client; also allow legacy ports 1645/1646 if any device still uses them |
| Hardware on the edge | An 802.1X-capable managed switch or WPA2/WPA3-Enterprise access point, such as a Ubiquiti UniFi access point |
Run NPS on a server backed by a UPS. When it goes down without a secondary, nobody joins Wi-Fi.
Step 1: Confirm the server is domain-joined
Open PowerShell as Administrator:
# Shows the domain this computer belongs to and whether it's joined
Get-CimInstance Win32_ComputerSystem | Select-Object Name, Domain, PartOfDomain
Expected output:
Name Domain PartOfDomain
---- ------ ------------
NPS01 corp.example.com True
If PartOfDomain is False, join the domain and reboot before going further.
Step 2: Create AD security groups for access
Policies match on group membership, so build the groups first. One group per access type keeps conditions tight later.
# Requires the ActiveDirectory module (RSAT AD DS tools)
New-ADGroup -Name "NPS-WiFi-Users" -GroupScope Global -GroupCategory Security -Path "OU=Groups,DC=corp,DC=example,DC=com"
New-ADGroup -Name "NPS-Wired-Computers" -GroupScope Global -GroupCategory Security -Path "OU=Groups,DC=corp,DC=example,DC=com"
# Add a test user and a test computer (note the trailing $ on computer accounts)
Add-ADGroupMember -Identity "NPS-WiFi-Users" -Members "jdoe"
Add-ADGroupMember -Identity "NPS-Wired-Computers" -Members "WS-042$"
These commands produce no output on success. Verify with Get-ADGroupMember -Identity "NPS-WiFi-Users".
Step 3: Check the NPS server certificate
Both PEAP and EAP-TLS need a certificate on the NPS server. Per Microsoft Learn’s certificate guidance, it must include the Server Authentication EKU and chain to a CA the clients trust. It also can’t be expired.
| Method | Server certificate | Client certificate |
|---|---|---|
| PEAP-MSCHAP v2 | Required (Server Authentication EKU, trusted by clients) | Not required |
| EAP-TLS | Required (Server Authentication EKU, trusted by clients) | Required (Client Authentication EKU, trusted by NPS) |
PEAP is faster to deploy because only the server needs a certificate. EAP-TLS is stronger, since there’s no password to phish. The catch is that you need an internal CA and autoenrollment for users or computers.
For EAP-TLS, plan the client side before you touch NPS. Each user or computer needs a certificate with the Client Authentication EKU, issued by a CA that NPS trusts.
With the built-in AD CS User and Computer templates, the subject or SAN typically carries the UPN for user certificates and the computer’s DNS name for machine certificates, and that’s what ties the certificate to an AD account. Exact mapping depends on your certificate templates, the client type, and the EAP-TLS settings in your network policy, so test one user and one computer certificate before rollout.
NPS checks client certificate revocation by default, so the issuing CA’s CRL (or OCSP responder, if you publish one) must be reachable from the NPS server. That’s separate from clients validating the NPS server certificate, which needs its own trusted chain on every client. Clients need the root CA in Trusted Root Certification Authorities plus a wired or wireless profile that selects EAP-TLS and names the NPS server. Push both with Group Policy or Intune.
Check what’s in the computer store:
# Lists machine certs with expiry and EKUs
Get-ChildItem Cert:\LocalMachine\My | Format-List Subject, Issuer, NotAfter, EnhancedKeyUsageList
Expected output (trimmed):
Subject : CN=nps01.corp.example.com
Issuer : CN=Corp-Issuing-CA
NotAfter : 11/30/2027 9:00:00 AM
EnhancedKeyUsageList : {Server Authentication (1.3.6.1.5.5.7.3.1), Client Authentication (1.3.6.1.5.5.7.3.2)}
If you run AD Certificate Services, the built-in RAS and IAS Server template is one option for issuing an NPS certificate. Set it up for autoenrollment so the certificate itself renews without a manual request.
Microsoft’s certificate guidance says that when the NPS server certificate is autoenrolled, NPS keeps using the renewed certificate without admin action. That assumes the template stays enabled for the server and the renewed certificate still meets NPS requirements, so confirm the binding after the first renewal. Without it, you must update each policy by hand when the certificate expires (more on this in the troubleshooting section).
Install the NPS Role on Windows Server 2025
Step 4: Install via Server Manager
- Open Server Manager and click Manage > Add Roles and Features.
- Choose Role-based or feature-based installation and click Next.
- Select the destination server (for example,
NPS01) and click Next. - Check Network Policy and Access Services. Accept the prompt to add management tools.
- On Role Services, confirm Network Policy Server is checked.
- Click Next, then Install.
Whether the install needs a restart depends on the server’s current state and any pending updates. When the wizard finishes, Network Policy Server shows up under Tools.
Step 5: Install via PowerShell (repeatable path)
Same result in one line. That’s what you’ll want for a second server later:
# -IncludeManagementTools installs the NPS console (nps.msc) alongside the role
Install-WindowsFeature NPAS -IncludeManagementTools
Expected output:
Success Restart Needed Exit Code Feature Result
------- -------------- --------- --------------
True No Success {Network Policy and Access Services, ...}
Open the console with nps.msc from Run (Win + R) or PowerShell. The left tree shows RADIUS Clients and Servers, Policies, Accounting, and Templates Management.
Register NPS in Active Directory
Per Microsoft Learn: register an NPS, registration gives NPS permission to read the dial-in properties of user accounts during authorization, by adding it to the RAS and IAS Servers group. If NPS can’t read those properties, authorization of AD accounts can fail even with correct credentials.
Step 6: Register the server
- In
nps.msc, right-click NPS (Local). - Click Register server in Active Directory.
- Click OK on both confirmation prompts.
You should get a confirmation that the computer can now read users’ dial-in properties from your domain.
Note: Per Microsoft Learn: register an NPS, membership in Administrators, or equivalent, is the minimum for this step. If users live in another domain, the console option above doesn’t cover it. Add the NPS computer to the RAS and IAS Servers group in that domain with Active Directory Users and Computers, or run
netsh nps add registeredserver <domain> <server>.
Step 7: Verify registration
Registering NPS typically adds the computer account to the RAS and IAS Servers domain group. Confirm it directly rather than assuming:
# NPS01 should appear in the list
Get-ADGroupMember -Identity "RAS and IAS Servers" | Select-Object Name, objectClass
Expected output:
Name objectClass
---- -----------
NPS01 computer
Also check the user side. On a test account, open Active Directory Users and Computers > user Properties > Dial-in. Network Access Permission should be Control access through NPS Network Policy. If it’s set to Deny access, that user fails no matter what your policies say.
Add RADIUS Clients and Shared Secrets
In NPS terms, a RADIUS client is the network device. Your access point, switch, or VPN server is the client. The laptop is the user behind it. NPS doesn’t process requests from a source IP that isn’t configured as a RADIUS client, and the device typically sees no reply. In proxy setups, the upstream proxy is the RADIUS client.
By default, NPS uses UDP 1812 and 1645 for authentication and UDP 1813 and 1646 for accounting. 1812/1813 are the RFC ports; 1645/1646 are for older RADIUS clients (Microsoft Learn: configure firewalls for RADIUS traffic). Check which ports your device uses.
Step 8: Add a RADIUS client in the console
- Expand RADIUS Clients and Servers, right-click RADIUS Clients, and click New.
- Leave Enable this RADIUS client checked.
- Friendly name: something you’ll recognize in logs, like
AP-Floor2. - Address (IP or DNS): the device’s management IP. This must match the source IP of its RADIUS packets.
- Shared secret: choose Generate, or paste a long random string. Enter the identical value on the device.
- Click OK.
Use a separate secret per RADIUS client where you can. Then one leaked secret exposes one device. Sharing a secret across a device class is easier to manage, but a leak from any member exposes the whole class.
Step 9: Add RADIUS clients with PowerShell
The NPS PowerShell module on Windows Server 2025 includes New-NpsRadiusClient, plus Get-, Set-, and Remove-NpsRadiusClient. Run it from an elevated PowerShell session on the NPS server:
# Adds one RADIUS client; use a unique long secret per device
New-NpsRadiusClient -Name "AP-Floor3" -Address "10.0.20.13" -SharedSecret "<long-random-secret>"
# Confirm it was created
Get-NpsRadiusClient | Select-Object Name, Address, Enabled
Microsoft’s cmdlet page notes that you must restart the NPS service after running New-NpsRadiusClient. Run Restart-Service IAS, which briefly pauses RADIUS processing, so batch your additions.
For bulk adds, loop over a CSV with Name, Address, and Secret columns, then restart once:
Import-Csv C:\NPS\clients.csv | ForEach-Object {
New-NpsRadiusClient -Name $_.Name -Address $_.Address -SharedSecret $_.Secret
}
Restart-Service IAS
Protect that CSV like a password file and delete it when you’re done. A RADIUS Clients template under Templates Management helps with console additions. It standardizes new entries but doesn’t change clients you already created.
On the device side, point the RADIUS server setting at the NPS IP with port 1812 and the same secret. Vendor steps differ, so use your switch or AP docs for that part.
Create a Connection Request Policy
This is where admins get tripped up. NPS has two policy types, and they answer different questions.
| Connection request policy | Network policy | |
|---|---|---|
| Question answered | Who handles this request? | Is this user allowed, and how? |
| Evaluated | First | Second, only if the request is processed locally |
| Typical outcome | Authenticate locally, or forward to a remote RADIUS server group | Grant or deny access, require an EAP type, apply settings like VLAN or timeout |
| Matters most for | RADIUS proxy and multi-domain setups | Every deployment |
The connection request policy is routing. The network policy is authorization. If a request matches a connection request policy that forwards it elsewhere, your local network policies never see it.
Step 10: Review the default policy
Go to Policies > Connection Request Policies. On a fresh install you’ll typically see Use Windows authentication for all users, set to authenticate on this server. Names and settings can differ on an upgraded or previously configured server, so open the policy and confirm it authenticates locally. For a single-server deployment, that’s all you need.
Step 11: Create a scoped policy (optional but cleaner)
A dedicated policy makes logs easier to read. It also keeps proxy rules separate later.
- Right-click Connection Request Policies > New.
- Policy name:
802.1X - Local Auth. Type of network access server: Unspecified. Click Next. - Specify Conditions: click Add > NAS Port Type. Check Ethernet and Wireless – IEEE 802.11. Click OK, then Next.
- Specify Connection Request Forwarding: select Authenticate requests on this server. Click Next.
- Leave the authentication method override unchecked. The network policy controls EAP. Click Next through to Finish.
- Right-click the new policy > Move Up so it sits above the default.
Processing order matters. NPS stops at the first connection request policy whose conditions match.
Create a Network Policy for 802.1X (EAP Types, Group Conditions)
Now the actual authorization rule. Build one policy per access type: Wi-Fi users, wired computers, VPN users. Shared conditions turn troubleshooting into guesswork.
Step 12: Start the wizard and set conditions
- Right-click Policies > Network Policies > New.
- Policy name:
802.1X Wireless - Staff. Type of network access server: Unspecified. Click Next. - On Specify Conditions, click Add and add:
- Windows Groups > Add Groups >
CORP\NPS-WiFi-Users - NAS Port Type > Wireless – IEEE 802.11
- Windows Groups > Add Groups >
- Click Next.

For the wired policy, use NPS-Wired-Computers and NAS Port Type Ethernet. For machine authentication, the group must hold computer accounts. User accounts won’t match.
Step 13: Grant access
On Specify Access Permission, select Access granted. Leave Access is determined by User Dial-in properties unchecked unless you manage per-user dial-in settings on purpose. Click Next.
Step 14: Pick the EAP type and certificate
On Configure Authentication Methods:
- Under EAP Types, click Add.
- For password-based Wi-Fi, choose Microsoft: Protected EAP (PEAP). For certificate-based auth, choose Microsoft: Smart Card or other certificate. Microsoft’s EAP reference lists that entry as the EAP-TLS option, but the console label can vary slightly by Windows Server release, so match on “Smart Card or other certificate” if yours differs.
- Select the EAP type and click Edit. In Certificate issued to, pick the NPS server certificate from Step 3. For EAP-TLS, test with one enrolled user or computer before applying the policy broadly, and confirm event 6272 shows this network policy granting access.
- For PEAP, confirm the inner method is Secured password (EAP-MSCHAP v2).
- Uncheck every legacy method under Less secure authentication methods (MS-CHAP, MS-CHAP-v2, CHAP, PAP). 802.1X with PEAP or EAP-TLS doesn’t need them.
- Click Next.
Step 15: Constraints, settings, and order
- Configure Constraints: set Idle Timeout or Session Timeout if your environment needs them. Otherwise click Next.
- Configure Settings: add RADIUS attributes such as VLAN assignment (Tunnel-Type, Tunnel-Medium-Type, Tunnel-Pvt-Group-ID) if your switch or AP supports dynamic VLANs. Click Next > Finish.
- In Network Policies, move your new policy above the built-in deny policies.
Network policies also run top-down and stop at the first match. A broad policy above a specific one wins every time.
To change certificates or EAP settings later, go to Properties > Constraints > Authentication Methods. That’s the same screen the wizard used.
Optional: Azure MFA. If you need cloud MFA on VPN logins, Microsoft offers an NPS extension for Microsoft Entra multifactor authentication. It’s a separate install layered on top of a working NPS. Get basic RADIUS working first and treat MFA as phase two.
Configure NPS Accounting and Logging
Accounting records who connected, when, and from which device. You’ll want it for audits and for “why did my laptop drop off Wi-Fi at 3 p.m.”
Step 16: Run the Configure Accounting wizard
- Click Accounting in the left tree, then Configure Accounting in the details pane.
- Choose a logging destination:
- Log to a SQL Server database
- Log to a text file on the local computer
- A combination of both, if your setup requires it
- For a single server with modest traffic, Log to a text file on the local computer is a reasonable start. Choose SQL Server if you need central reporting across servers, and plan for that database’s availability and permissions. Local log files hold user and device details, so restrict access to the log folder, rotate old files, and watch free space. Click Next.
- Accept the default folder (
C:\Windows\System32\LogFiles) or set your own. - Pick a log file format. DTS Compliant writes XML records, which many XML-aware tools find easier to parse than the legacy ODBC format. Confirm what your SIEM or log tooling expects first.
- Click Next > Next > Close.
The wizard has a setting that discards connection requests if logging fails. That’s strict auditing behavior. Turn it on and a full disk stops all network logins, so watch free space if you enable it.
Step 17: Enable audit events for NPS
The two serve different purposes. Accounting logs record RADIUS session data, such as start, stop, and usage records. Security audit events record NPS grant and deny decisions, but only when the audit subcategory is on:
# Records NPS success and failure events in the Security log
auditpol /set /subcategory:"Network Policy Server" /success:enable /failure:enable
# Verify
auditpol /get /subcategory:"Network Policy Server"
Expected output:
System audit policy
Category/Subcategory Setting
Logon/Logoff
Network Policy Server Success and Failure
If a domain GPO manages advanced audit policy, set it there instead. Otherwise the next Group Policy refresh overwrites your local change.
Testing Authentication End to End
Test with a real client. A packet that reaches NPS and returns Access-Accept is the only result that counts.
Step 18: Confirm NPS is listening and the firewall is open
# Shows each inbound NPS rule with its state, profile, action, and UDP ports
Get-NetFirewallRule -DisplayGroup "Network Policy Server" -Direction Inbound | ForEach-Object {
$pf = $_ | Get-NetFirewallPortFilter
[pscustomobject]@{ Rule = $_.DisplayName; Enabled = $_.Enabled; Profile = $_.Profile; Action = $_.Action; Protocol = $pf.Protocol; LocalPort = ($pf.LocalPort -join ',') }
}
# Shows which profile (Domain, Private, Public) the server's NIC is actually using
Get-NetConnectionProfile | Select-Object InterfaceAlias, NetworkCategory
Look for rules with Protocol UDP and LocalPort covering 1812/1813 (and 1645/1646 if used) that show Enabled: True and Action: Allow for your NIC’s profile. Microsoft says NPS setup normally adds these exceptions, but hardening baselines, GPO-managed firewall policy, or profile scoping can leave them missing or disabled, so don’t assume they’re in place.
It also documents that on Windows Server 2019 the exception needed sc sidtype IAS unrestricted to work (Microsoft Learn: firewalls for RADIUS). If the rules are missing or disabled, enable them or add your own. Then confirm the service is running and bound to the RADIUS ports:
# The NPS service name is IAS (a holdover from Internet Authentication Service)
Get-Service IAS
netstat -ano -p udp | findstr ":1812 :1813"
Expected output:
Status Name DisplayName
------ ---- -----------
Running IAS Network Policy Server
UDP 0.0.0.0:1812 *:* 4120
UDP 0.0.0.0:1813 *:* 4120
That covers the server only. Any firewall or ACL between your access point and NPS also needs UDP 1812 and 1813 allowed toward NPS, with replies allowed back. The real proof is an NPS event for the test in Step 20.
Step 19: Connect a test client
For Wi-Fi, connect a domain-joined Windows laptop to the WPA2/WPA3-Enterprise SSID as a member of NPS-WiFi-Users. For wired, plug a domain workstation into an 802.1X-enabled port with a Cat6 Ethernet cable. Make sure the Wired AutoConfig service is running. On many Windows client images it’s set to manual and isn’t running, so check it:
# Run on the client, not the NPS server. dot3svc handles wired 802.1X.
Set-Service dot3svc -StartupType Automatic
Start-Service dot3svc
netsh lan show interfaces
netsh lan show interfaces should report the adapter state and authentication result for the port. The service alone isn’t enough. The adapter also needs Enable IEEE 802.1X authentication checked on its Authentication tab, with the matching EAP method. Push that through a Group Policy wired network policy rather than per machine.
Step 20: Read the result on the NPS server
Open Event Viewer > Custom Views > Server Roles > Network Policy and Access Services. Or query the Security log directly:
# 6272 = NPS granted access, 6273 = NPS denied access
Get-WinEvent -FilterHashtable @{LogName='Security'; Id=6272,6273} -MaxEvents 10 | Format-List TimeCreated, Id, Message
Event 6272 is the success you want. Look for the Proxy Policy Name and Network Policy Name fields in the message, which show the connection request policy and network policy that matched when NPS logs them. If the “wrong” policy granted access, your ordering is off even though the test passed.
Event 6273 is a denial. Its Reason field tells you which stage failed. Bad credentials, no matching policy, and an EAP type not enabled on the matched policy each give a different reason.
Troubleshooting Common NPS/RADIUS Failures
Start every investigation with one question. Did NPS log anything at all? A 6273 means NPS received the request and denied it. No 6272/6273 usually points at transport, client registration, or secret problems, but also confirm that NPS auditing is on (Step 17), that you’re filtering the right log, and that the request wasn’t sent to another RADIUS server.
| Symptom | Likely cause | First check |
|---|---|---|
| No 6272/6273 on NPS | Wrong client IP, secret mismatch, UDP blocked, auditing off | Audit policy, System log NPS errors, packet capture |
| Repeated credential or certificate prompts | Server cert untrusted, expired, or missing EKU | Cert chain on client, Authentication Methods |
| Policy broke after cert expiry | Bound cert expired without autoenrollment | Reselect a valid cert in EAP properties |
| Wrong policy applied | Policy order or loose conditions | Network Policies order, 6272 message |
| Wired 802.1X flaky at boot | Client auth mode not set | Adapter Authentication > Advanced settings |
A RADIUS client gets no response from NPS
Why it happens: “No response” has two broad causes. Either the packet never reaches NPS (routing, a firewall, or the wrong port), or NPS receives it and discards it. NPS discards requests from an unconfigured source IP, and a shared-secret mismatch commonly leads to discarded requests too.
To tell them apart, capture on the NPS server with pktmon filter add -p 1812, then pktmon start --capture, reproduce, and pktmon stop. If packets arrive, check the System log for NPS errors about an unknown RADIUS client or an invalid message authenticator. If nothing arrives, the problem is on the path.
Fix:
- Find the source IP the device actually uses. Multi-homed switches often send from a different interface than you’d expect.
- Update the RADIUS client Address to match.
- Re-enter the shared secret on both sides. Pasting is safer than typing, since trailing spaces count.
- Confirm UDP
1812/1813are permitted end to end, plus1645/1646if the device uses legacy ports.
Clients loop on credential prompts or show certificate warnings
Why it happens: The NPS certificate is expired, untrusted by the client, or missing the Server Authentication EKU. It may also have a broken chain or fail a revocation check. For EAP-TLS, the client certificate may lack the Client Authentication EKU. It may also chain to a CA NPS doesn’t trust (Microsoft Learn: manage certificates used with NPS).
Fix:
- Open the policy’s Properties > Constraints > Authentication Methods, select the EAP type, click Edit, and pick a valid certificate.
- Make sure the issuing CA’s root sits in Trusted Root Certification Authorities on both server and clients.
- If NPS logs don’t explain the failure, turn on the CAPI2 log, reproduce the failure, and read the chain-building events:
# Enables detailed certificate chain, trust, and revocation logging
wevtutil sl Microsoft-Windows-CAPI2/Operational /e:true
The events land in Applications and Services Logs > Microsoft > Windows > CAPI2 > Operational. Disable the log afterward with /e:false, because it gets noisy. This tip comes from Microsoft Q&A guidance rather than core NPS docs. Still, it’s often the fastest path to a chain error.
A policy stops authenticating after the server certificate expires
Why it happens: Each network policy’s EAP properties bind to a specific server certificate. Per Microsoft Learn’s certificate guidance, servers using certificate autoenrollment renew the certificate before it expires, and NPS continues to use the renewed certificate without administrator intervention. Without autoenrollment, the bound certificate isn’t updated when it expires. Clients that rely on that policy fail until an admin points each policy at a valid certificate.
Fix:
- Check which certificate is current and valid, for example with
Get-ChildItem Cert:\LocalMachine\My. - For each affected network policy, open Constraints > Authentication Methods, select the EAP type, and click Edit.
- In Certificate issued to, confirm the policy points at a valid certificate. Reselect it if it’s still showing the old one, then click OK > Apply.
- Restart the service:
Restart-Service IAS
Warning: Restarting IAS interrupts RADIUS processing for a few seconds. Do it in a maintenance window, or fail over to your secondary NPS first.
If you aren’t using autoenrollment, put the certificate’s NotAfter date in your calendar 30 days ahead and update each policy before it lapses.
The wrong network policy is applied
Why it happens: NPS evaluates network policies in order. An earlier, broader policy matches before the one you meant.
Fix: In Policies > Network Policies, check the Processing Order column. Move specific policies up. Then tighten conditions with a group, a NAS Port Type, and, if needed, a Client Friendly Name condition. Each policy should match only its own traffic.
Wired 802.1X works inconsistently at startup
Why it happens: The client’s authentication mode doesn’t match your policy. For example, the switch expects computer authentication before logon. But the client only sends user credentials after someone signs in.
Fix: On the client, open the adapter Properties > Authentication > Additional Settings. Check Specify authentication mode and pick Computer authentication, or User or computer authentication. Push this through Group Policy wired network policies rather than per machine. If you use certificate-based single sign-on, confirm both machine and user certificates are valid. This Microsoft Q&A thread walks through a similar case.
For deeper client-side diagnosis, see Microsoft’s wireless troubleshooting guidance and KB929847. Both cover tracing and log collection on each end.
Redundancy: Templates, a Secondary NPS Server, and RADIUS Proxy
One NPS server is one outage away from nobody getting on the network. In production, run two.
Step 21: Use Templates Management for shared settings
Under Templates Management, create Shared Secrets, RADIUS Clients, and Remote RADIUS Servers templates. When you add a new access point, pick the template instead of retyping the secret. Right-click Templates Management to export templates to a file and import them on another server. Templates standardize future additions only. They don’t sync existing clients or policies between servers, so re-export the configuration after changes or check both servers on a schedule.
Step 22: Build the secondary server from an export
On the primary:
# Exports NPS configuration to XML, including policies, clients, and shared secrets
Export-NpsConfiguration -Path "C:\NPS-Backup\nps-config.xml"
Warning: Per Microsoft’s
Export-NpsConfigurationreference, the exported file contains unencrypted shared secrets for RADIUS clients and remote RADIUS server group members. Treat it as a credential: restrict access, move it over an encrypted channel, and delete copies after import. SQL Server logging settings aren’t exported, so reconfigure those on the secondary.
On the secondary, after joining the domain:
Install-WindowsFeature NPAS -IncludeManagementTools
Import-NpsConfiguration -Path "C:\NPS-Backup\nps-config.xml"
Restart-Service IAS
Then register the secondary in AD (Step 6). Confirm it appears in RAS and IAS Servers, and check its own server certificate. Imported policies reference a certificate by thumbprint, so the secondary needs a certificate it can bind to. Reselect it in each EAP policy if needed.
Treat the exported file as a starting point rather than a guaranteed exact duplicate. Verify each policy on the secondary matches what you expect after import.
Finally, add the secondary as a backup RADIUS server on every access point and switch, using the shared secret configured for that client on the secondary (an import keeps the same secret, which is simplest). Failover timers, health checks, and whether accounting fails over separately vary by vendor, so check your device docs. Pull the primary’s network cable during a test window. Then confirm 6272 events appear on the secondary.
Step 23: Add a RADIUS proxy when domains or sites multiply
For multi-domain or multi-site setups, NPS can act as a proxy. Create a Remote RADIUS Server Group under RADIUS Clients and Servers. Then add a connection request policy that forwards matching requests to that group. It’s usually matched on a realm or a User Name condition. Order your connection request policies so forwarding rules sit above the local-authentication rule. Microsoft’s proxy planning guide covers realm handling and load balancing across group members.
The cost is one more hop to debug. Each request now has two event logs to read.
Wrapping Up
NPS on Windows Server 2025 now answers RADIUS for Wi-Fi, wired 802.1X, and VPN, with access tied to AD groups and certificates. Expect most of the first build’s effort to go into certificates and client profiles, and the total time depends on your PKI and network gear. After that, adding a device on the NPS side is one New-NpsRadiusClient line plus a service restart, or a few console clicks with a template. You still configure the matching secret and server address on the device itself.
| Step | Action | Applies To |
|---|---|---|
| 1-3 | Domain join, AD groups, server certificate | All deployments |
| 4-7 | Install NPAS, register in AD | All deployments |
| 8-9 | Add RADIUS clients and secrets | APs, switches, VPN servers |
| 10-11 | Connection request policy | All; required for proxy |
| 12-15 | Network policy with PEAP or EAP-TLS | 802.1X Wi-Fi and wired |
| 16-17 | Accounting and audit events | Production and audit |
| 18-20 | End-to-end test via 6272/6273 | All deployments |
| 21-23 | Templates, secondary server, proxy | Production and multi-site |
For upkeep, run Export-NpsConfiguration after each configuration change so every policy change has a rollback point. The file holds unencrypted secrets, so store it on an encrypted, access-reviewed location limited to NPS admins, keep only a few recent copies, and test an import on a lab server now and then. Use certificate autoenrollment for the NPS server certificate. If you can’t, add a calendar reminder 30 days before its NotAfter date to rebind each policy. Those habits cover the failures that take most NPS deployments down.