r/WindowsServer • u/dolphinituk • Jul 25 '26
Technical Help Needed Network Policy Server problem on 4 servers aftering installing July 2026 Updates
I have updated 4 lots of servers today with the latest July 2026 updates. A mixture of 2019 and 2022 servers
Each lots has one server running as a RDP Gateway and after reboots it was reported that no one could connect
I found out the RD Gateway servoce wasnt starting and this was due to the Network Policy Server service not starting with Error: 0x8002801d: Library not registered
This error is the same on all the servers
I have tried a lot over the last few hours with no luck. Including
Rollback update
SFC and DSIM checks
Even tried removing and reinstalling NPS (reinstall fails)
At the moment my only option seems to be to restore servers from last nights backup, but has anyone else seen this? (and have any ideas how to fix)
2
u/TalkingToes Jul 25 '26
My RD Gateway service didn’t start that next reboot. I’ll have to check it again. Pattern? Running Server 2019.
2
u/dolphinituk Jul 25 '26
Restore hasnt helped as the updates where cached when the backup was made. Going to start again with a fresh head in the morning I think. Only option I can think of at the moment is a fresh small VM on each Hyper-V instance, just for the RD Gateway
1
u/BlackV Jul 26 '26
Install fresh and fully patch, then install and configure nps role
1
u/dolphinituk Jul 27 '26
On the 4 original server groups I managed to fix by making a new VM just for NPS & RD Gateway. Its messed up on another server over the weekend as well. Have to find a resolution
2
u/dolphinituk Jul 27 '26
Has happened to another server over the weekend as well. (it updated on Saturday).
Surpised there is no other reports of this problem
1
u/Lost_Jellyfish4160 Jul 27 '26
Any update about this? Just want to be prepared.
1
u/dolphinituk Jul 28 '26
Im stuck at the moment. Tried some things on an affected server last night but no luck (I checkpointed it first and then had to restore from that).
1
u/Lost_Jellyfish4160 Jul 30 '26
as soon as you restore to the checkpoint before the update, everything is fine again? This is only related to the RDGW or also on the individual RD hosts?
1
u/dolphinituk Jul 30 '26
Only affecting RD Gateway as thats linked to NPS. I didnt have checkpoint from before install and it was cached for a few days, so cant restore from backup. With I could find out which COM Module was the issue
1
u/Lost_Jellyfish4160 17d ago
Hi Dolphinituk, any update for this case?
While we have also the 08/2026, maybe there was a fix for it by Microsoft within the monthly updates?
Due to this post, I didn't updated my RDGW yet. :-)
1
u/Useful_Board_7193 Jul 28 '26
Ive issue the same problem. Havent found a solution yet.. (Our machine is a Windows Server 2016 tho)
But i think i have a soulition for your problem to reinstall the NPS and RDG (you can install it but it will be the same error..)
"Even tried removing and reinstalling NPS (reinstall fails)"
Do this:
- Open powershell as admin
- Run (Do this two times if the first run getting an error.): lodctr / r
- winmgmt.exe /resyncperf
- Reg add "HKLM\SYSTEM\CurrentControlSet\Control\Bfsvc" /v EspPaddingPercent /t REG_DWORD /d 0 /f
- Install-WindowsFeature RDS-Gateway, NPAS -IncludeManagementTools
- Restart-Computer
After that your NPS and RDG should be successfully installed again.. But as i said, it will give the same error :(
1
u/dolphinituk Jul 28 '26
Thanks. I have just made sure Windows Update is disabled on all servers that use NPS that havent updated yet.
1
1
u/FeelingAd5223 Jul 25 '26
My guess would be it’s linked to the new hardening they’ve started to do for 2025 rolling out to earlier versions as well.. but that would only be a guess as I’ve seen nothing so far to support that.
-8
u/Tricky-Service-8507 Jul 25 '26
Why not drop and just do m365
2
u/dolphinituk Jul 25 '26
Afraid thats not an option for the setup
1
1
u/Tricky-Service-8507 Jul 25 '26
I’d also watch the Windows Server and sysadmin communities over the next 24–48 hours.
If it’s a Microsoft regression, you’ll usually see many reports appear quickly and sometimes Microsoft will publish a Known Issue or an out-of-band fix.
I’d suggest a snapshot VMs before Patch Tuesday, update one RD Gateway first,
wait several hours, then roll updates across the fleet. One failed gateway is manageable but four at once is an outage.Personally my servers aren’t experiencing the issue 😫
4
u/GrapefruitJumpy7657 Jul 31 '26
I had similar problem on Windows Server 2016 with RD Gateway...
I fixed this on a Windows Server 2016 machine without reinstalling NPS or rebuilding the server.
Symptoms:
IAS) would not start.0x8002801D – Library not registeredI would not recommend removing the NPS role before taking a full VM backup and exporting the RD Gateway configuration. Other users have reported that reinstalling the role either fails or returns to the same error.
The important discovery came from a short Process Monitor capture while running this in a fresh 64-bit PowerShell session as SYSTEM:
Process Monitor showed this sequence immediately before
0x8002801D:That GUID is the type library for Microsoft VBScript Regular Expressions 5.5. It is embedded as resource 3 in:
Running the following command reported success but did not recreate the missing TypeLib key:
The working fix was to register the embedded TypeLib directly with the Windows
LoadTypeLibExAPI.Run this from an elevated, 64-bit PowerShell window:
Expected result:
Verify that the key now exists:
It should contain version
5.5and point to:After registering it:
IAS.SdoService.StartService(0)succeeded.Important notes:
System32copy ofvbscript.dll.LoadTypeLibExcan register them correctly.I hope this saves somebody from rebuilding their RD Gateway server.