ADFS fails to start after reboot.

Cameron Gregory 0 Reputation points
2025-07-24T18:06:55.1333333+00:00

We've had an issue for a while now where ADFS fails to start on our server. It's pretty intermittent, but it does cause a work when it happens.

When it happens, we have to restart WID, then start ADFS manually.

We have SentinelOne installed. We've removed Defender. We've set ADFS to a delayed start. This is what we were told to do by SentinelOne. They asked that we get with MS to see if we could enable debug logging for ADFS/WID. We haven't been able to get this information from MS.

Has anyone else ran into this? Does anyone have a fix?

Thank you!

Windows for business | Windows Server | Performance | Application technologies and compatibility
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Smith Pham 2,700 Reputation points Independent Advisor
    2025-07-25T08:19:57.4366667+00:00

    Dear Team,

    This is a known problem with ADFS when running on Windows Internal Database (WID): after a reboot, the ADFS service sometimes starts before the WID service is fully up, causing ADFS to fail. That’s why manually starting WID, then ADFS, works.

    Permanent fix: Set the ADFS service to depend on the WID service. This forces Windows to wait for WID before starting ADFS.

    How to do it:

    1. Open Command Prompt as Administrator.
    2. Run this command:
         
         sc config adfssrv depend= "MSSQL$MICROSOFT##WID"
      
    3. Reboot the server.

    Best Regards,


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.