Hi Antonin,
Thank you for the detailed investigation. Based on the information you’ve shared, I don’t believe this matches any currently documented Windows Server 2025 RRAS known issue or published hotfix.
1. Is this a known RRAS/RasMan deadlock after
Set-RemoteAccess -SslCertificate
?
At this time, Microsoft has not published a KB article or Release Health advisory describing a reproducible RemoteAccess service deadlock after rotating the SSTP certificate on Windows Server 2025.
Your observations are consistent with a thread becoming blocked in kernel mode, particularly because:
- RemoteAccess remains indefinitely in STOP_PENDING.
- TerminateProcess reports success, but the svchost.exe process never actually exits.
- Graceful shutdown also blocks on the service.
- Only a VM power cycle clears the condition.
Those symptoms generally indicate that at least one thread cannot return from a kernel-mode wait rather than a normal Service Control Manager timeout.
2. Is there a supported certificate rotation sequence?
Microsoft does not currently document a special certificate rotation procedure beyond updating the certificate and restarting the RRAS service.
As a precaution, you could test whether performing the rotation during a maintenance window with no active SSTP connections reduces the likelihood of the issue. If the problem consistently occurs immediately after rebinding the certificate, that information would be valuable for Microsoft Support.
3. What diagnostics should be collected?
If the issue reproduces again, I would recommend collecting the following before powering off the VM:
- A kernel memory dump, since the blocked thread may be waiting in kernel mode.
- A WPR trace covering networking and service activity.
- An ETW trace including RRAS/RasMan-related providers, if possible.
- A user-mode dump of the affected svchost.exe instance hosting RemoteAccess and RasMan, although if the thread is blocked in kernel mode, the kernel dump will usually provide more useful information.
These artifacts would give Microsoft engineering the best chance of identifying where the stop request is blocked.
4. Are there any available hotfixes?
At present, I’m not aware of any public hotfix or cumulative update that specifically addresses this behavior on Windows Server 2025.
If the issue is reproducible, I would recommend opening a Microsoft Support case. Given the kernel-mode symptoms and the fact that the problem occurs immediately after certificate rotation, this is the type of issue that typically requires internal debugging with private symbols.