How can I fix windows defender offline scan flashing a blue screen for a split second on restart

Cameron Boukal 0 Reputation points
2025-06-23T21:31:21.9966667+00:00

I downloaded something that contained unusual anti virus programs which I believe I uninstalled all of them. After doing so I opened windows defender and ran a full scan with 1 threat which I removed from my pc. I then tried running offline scan through windows defender. It restarted my pc like normal then my screen flickered a blank blue screen then restarted again. My question is how can I fix this issue on offline scan not working? Thank you

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Henry Mai 1,965 Reputation points Independent Advisor
    2025-06-25T02:09:29.4266667+00:00

    Hi Cameron Boukal, this is Henry. I'd like to share some insights regarding the issue.

    The third-party antivirus programs you previously uninstalled have likely caused corruption in the Windows Recovery Environment (WinRE). This specialized environment is responsible for running offline scans, and the flashing blue screen suggests that it’s failing to load properly. Rebuilding the Recovery Environment is a solution I recommend to address this issue.

    This process forces Windows to rebuild the environment with fresh, correct files.

    1. Open Command Prompt as administrator.
    2. In the command window, type the following commands, pressing Enter after each one:
      1. reagentc /disable
      2. reagentc /enable
    3. You should see a message confirming the operation was successful. Now, restart your PC and try the Windows Defender Offline scan again. It should now boot into the scan correctly.

    If that fails, run these two additional commands in the same administrator command prompt to repair any underlying system files, then try the reagentc commands again:

    • sfc /scannow
    • DISM /Online /Cleanup-Image /RestoreHealth

    Hope this helps you.

    0 comments No comments

Your answer

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