HP Laptop Windows 10 blocks a Microsoft Diagcab WinSecurity.exe

Anonymous
2025-04-27T14:04:39+00:00

Greeting,

I'm trying to fix the current problem along with Copilot it's been two days and with every step we take my HP ENVY Laptops system I believe Windows Security is inside some Firewall rule when I download WinSecurity from the Microsoft website the Diagcab gets Blocked. It gives a message that it has blocked the download for security reasons but doesn't explain why except to say it could be malicious. I had that same Diagcab download two nights ago that we somehow unblocked I forget exactly how and when we ran it although everything in Windows Security is set to the proper settings and so is the firewall best to my knowledge and Copilot's knowledge when I ran the WinSecurity.exe (the Diagcab) it states Unable to recognize your Firewall. Windows Defender is not your Default Firewall which it is I have no other programs that have any security capabilities so I deleted the WinSecurity Diagcab thinking maybe somehow it became corrupt. I went back to the Microsoft website to re-download the WinSecurity Diagcab, which was blocked. This is sort of a two-part question the 1st being how do I get that Diagcab to download without being blocked and 2: why do you think it's not recognizing a Firewall built by the same company?

Anything would be greatly appreciated.

Thanks,

Barry

Windows for home | Windows 10 | Security and privacy

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.

0 comments No comments
Answer accepted by question author
Ramesh 180.3K Reputation points Volunteer Moderator
2025-05-05T13:44:22+00:00

Hi Barry,

  1. Edge blocks most Microsoft diagcab files. Chrome downloads them fine.

Since it's a legit MS file, click the "Keep" option on the Downloads page in Edge.

Image

  1. Run the tool and post the troubleshooting report in text or image format.

Image

  1. Also, does Windows Firewall work correctly on your computer? You can check its status by running "firewall.cpl" from the Start-Run dialog.

Image

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

7 additional answers

Sort by: Most helpful
  1. Anonymous
    2025-05-01T20:53:18+00:00

    Hi BARRY G.VARGUS Sr.

    I really appreciate the detailed explanation—this sounds incredibly frustrating, especially since you're the Owner and Administrator, yet Windows Security keeps blocking access as if someone else is in control. Let's break this down and tackle both issues:

    Issue 1: Windows Security Troubleshooter Not Recognizing Windows Defender

    Since the Windows Security Troubleshooter claims it can't detect your firewall, but you know Windows Defender is active, try these steps:

    > Verify Windows Defender Firewall is Actually Running

    Open Command Prompt (Admin) and run:

    powershell

    Get-Service | Where-Object {$_.DisplayName -like "*Windows Defender Firewall*"}

    If the service isn’t running, restart it with:

    powershell

    net start mpssvc

    > Reset Windows Defender Firewall

    Open Command Prompt (Admin) and run:

    powershell

    netsh advfirewall reset

    Restart your PC and check if the Troubleshooter recognizes it.

    > Check Group Policy Settings (If Applicable)

    Open Run (Win + R) and type:

    gpedit.msc

    Navigate to:

    Computer Configuration > Administrative Templates > Network > Network Connections > Windows Defender Firewall

    Ensure "Turn off Windows Defender Firewall" is NOT enabled.

    Issue 2: Controlled Folder Access Blocking Apps (Even After Disabling It)

    Since Controlled Folder Access keeps blocking apps even after you turn it off, try these fixes:

    > Manually Allow Blocked Apps

    Open Windows Security > Virus & Threat Protection > Ransomware Protection.

    Click "Allow an app through Controlled Folder Access".

    Add CCleanerUpdate64.exe, DST.exe, and HP DIAG manually.

    > Disable Controlled Folder Access via PowerShell

    If toggling it off in settings doesn’t work, force-disable it:

    Open PowerShell (Admin).

    Run:

    powershell

    Set-MpPreference -EnableControlledFolderAccess Disabled

    Restart your PC and check if the issue persists.

    > Reset Windows Security Policies

    If Windows Security is still blocking apps, reset its policies:

    Open Command Prompt (Admin).

    Run:

    powershell

    secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose

    Restart your PC.

    Perform Repair in-place upgrade: This will reinstall your Operating System and will keep your files and apps. This will take some time depending on the computer performance and internet speed. You can follow the steps from this link: How to do a Windows 10 Repair Upgrade - Microsoft Community

    Let me know if any of these solutions work for you!

    Best Regards,

    Lonex P.

    Microsoft Moderator

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2025-04-30T03:09:46+00:00

    I shut off the Smart screen and firewall completely nothing worked. Also, the WinSecurity Diiagcab can not be run as Administrator.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2025-04-29T02:21:43+00:00

    Hello Lonex,
    I think I may have not explained it correctly. The WinSecurity.diagcab a/k/a Windows Security Troubleshooter is a separate thing. I downloaded it and ran it for the first time a few nights ago because of the Blocked Access in Windows Security to see if it would fix it. Windows Security Troubleshooter, the first few times until tonight, mentioned something like W Sec Troubleshooter can't identify your Firewall or find your Firewall, also mentioning Windows Defender is not your Default Firewall. Until tonight "Troubleshooting couldn't identify the problem. Problem being is I am the Owner and Administrator and it is definitely set as the Default Firewall and is turned on in all the proper places. That's a separate issue; however, it stumps me how a Windows app can't detect a Windows Firewall.
    I ran that because of all the Protected Memory Access Blocked. Virus and Protection > Protection History > 14 different Protected Memory Access Blocked notifications inside most belonging to MS, HP, Windows, and CCleaner, which were never blocked before starting 8 AM 04/21/2025 to 04/24/2025 at 2:29 PM. I used to be able to see all 14 paths and wish I could now, but it doesn't display the paths or names like CCleanerUpdate64.exe or partial DST.exe an HP DIAG/diag, whatever. I'm no computer wiz and forget most of the names and paths. I do know that there was at least one each of the Microsoft, Windows, and HP files or whatever that was Blocked. Now, when I click on any one of the 14 Blocked items, the box pops up like it's supposed to, asking: Do you want to allow this app to make changes to your device? YES - NO and I click on YES instead of it performing whatever function it performs and allows access by clicking on YES instead it shows the same item in the same place inside Windows Security > Virus and Threat Protection > Protection History Reading: how it was blocked again stating "Your Administrator has blocked this action" where I now see beneath this first one App or process blocked: DST.exe Protected Folder: \Device\Harddisk0\DRO - whatever that is. Blocked by: Controlled Folder Access. You should allow apps to access your protected memory, but you should only allow apps that you trust. Underneath in blue: Controlled Folder Access settings. I can and have clicked on that, toggled the controlled folder access to OFF, and tried again to tap YES only to have it displayed as typed above Exactly the same. Your Administrator...
    So, although I'm the Owner and Administrator, it's telling me the Administrator has blocked access to this and the other 13 actions. Crazy huh. I hope that gives you a better understanding of what I'm facing and hopefully to be able to give advice if possible.
    Thank you very much!
    Respectfully,
    Barry

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2025-04-28T17:35:14+00:00

    Hi BARRY G.VARGUS Sr.

    Thank you for posting in Microsoft Community.

    I understand the issue you are facing with downloading the WinSecurity Diagcab on your HP ENVY laptop running Windows 10. To address your concerns:

    Possible Fixes

    Temporarily Disable Windows Defender SmartScreen – Go to Settings > Privacy & Security > Windows Security > App & Browser Control, then turn off SmartScreen for Microsoft Edge and SmartScreen for Microsoft Store apps.

    Manually Allow the File in Windows Defender – Open Windows Security, go to Virus & Threat Protection > Protection History, find the blocked file, and select Allow.

    Run the File as Administrator – Right-click the WinSecurity.exe, select Run as Administrator, and see if it bypasses the restriction.

    Check Windows Firewall Rules – Open Windows Defender Firewall, go to Advanced Settings > Inbound Rules, and ensure that Diagcab files are not being blocked.

    Use PowerShell to Unblock the File – Open PowerShell (Admin) and run:

    Unblock-File -Path "C:\Users\YourUsername\Downloads\WinSecurity.exe"

    This removes any security restrictions on the file.

    Try Downloading in Safe Mode – Boot into Safe Mode with Networking (Shift + Restart > Troubleshoot > Advanced Options > Startup Settings > Restart > Select Safe Mode with Networking) and attempt the download again.

    Perform Repair in-place upgrade: This will reinstall your Operating System and will keep your files and apps. This will take some time depending on the computer performance and internet speed. You can follow the steps from this link: How to do a Windows 10 Repair Upgrade - Microsoft Community

    Let me know if any of these solutions work for you!

    Best Regards,

    Lonex P.

    Microsoft Moderator

    Was this answer helpful?

    0 comments No comments