Facing 0x8007045b error with Windows Firewall on Windows server

Anonymous
2024-04-09T11:48:28+00:00

Just have this issue on one Windows server 2022 but this issue been there since it's still on Windows server 2019. We proceed with in-place upgrade which fix many issues except Windows defender firewall. I can see that the Windows defender firewall service keep start and stop itself and show as running just a few second. When I run the command "netsh advfirewall reset" it return with "an unrecoverable windows defender firewall error (0x8007045b) occurred" error.

Any idea? I've tried things like Dism.exe /online /cleanup-image /scanhealthDism.exe /online /cleanup-image /restorehealth and SFC /scannow but still no luck.

Thank you all in advance!

Windows for business | Windows Server | Devices and deployment | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes
Accepted answer
  1. Anonymous
    2024-04-11T10:05:29+00:00

    Thanks Lei, the tool I use to fix this issue is Windows repair (All in one). It's actually made for a client OS like Windows 10/11 but it's also working on Windows server 2022. I choose to repair only the Windows firewall and I've not found any issue after the repair. I can RDP to this server just fine.

    2 people found this answer helpful.
    0 comments No comments

6 additional answers

Sort by: Most helpful
  1. Anonymous
    2024-04-10T09:23:28+00:00

    Hi Itsarapong Intoum,

    since you have already tried running the DISM and SFC commands, I would suggest you trying check if there are any third-party firewall applications installed on the server that might be conflicting with the Windows Defender Firewall. If so, try disabling or uninstalling them temporarily and see if the issue persists.

    Regards,

    Lei

    0 comments No comments
  2. Anonymous
    2024-04-10T09:36:25+00:00

    Hi Lei,

    Thanks for your reply. I have already check that but there's no other firewall application installed. Only CrowdStrike falcon sensor install but I have already tried uninstalling it and it's not help.

    From event log show the error access denied when turning on the firewall. So, I check the permission for SharedAccess and mpssvc in registry, but it looks literally the same compared to other Windows server 2022 that we have.

    0 comments No comments
  3. Anonymous
    2024-04-10T09:51:33+00:00

    Hi Itsarapong Intoum,

    please try disabling the Windows Defender Firewall service and restarting the server, and then try running the netsh advfirewall reset command again. You can disable the Windows Defender Firewall service using the following command:

       net stop "Windows Defender Firewall" 
    
       sc config mpssvc start= disabled 
    

    If the issue persists, you can try reinstalling the Windows Defender Firewall service. You can reinstall the Windows Defender Firewall service using the following command:

       sc config mpssvc start= auto 
    
       net start "Windows Defender Firewall
    
    0 comments No comments
  4. Anonymous
    2024-04-10T10:04:30+00:00

    Hi Lei,

    It throw back to me with error message "an error occurred while attempting to contact Windows defender firewall service" after I disable firewall, restart the server.

    Also, I got access denied error when trying to run "sc config mpssvc start= auto" even if I run it with local admin account and with elevated command prompt.

    0 comments No comments