Software & OS

An Application Control Has Blocked This File: Windows Fix

"An application control has blocked this file" means a Windows code-trust feature refused to run it, either Smart App Control on a home PC or an App Control for Business policy set by an administrator. To find which one, open Windows Security > App & browser control to check Smart App Control, then read the block event in Event Viewer to see the file, the process and the policy name.

What the message means

Windows can decide whether a file may run before it runs at all. Two features do this, and the message you saw can come from either:

  • Smart App Control, a Windows 11 feature that is on or in evaluation mode on some personal PCs. It allows code that Microsoft's reputation service recognises or that is signed by a trusted certificate authority.
  • App Control for Business (formerly Windows Defender Application Control, or WDAC), where an administrator deploys a policy that lists what is allowed. Windows in S mode also uses a policy of this kind.

The exact dialog text varies by Windows version and feature, and the Microsoft pages I opened for this article do not quote this specific sentence. So treat it as a family of messages, and identify the feature behind it rather than searching for the wording alone. If the dialog names Smart App Control, the article Part of This App Has Been Blocked in Windows 11 covers that case in more detail.

Step 1: check whether Smart App Control is on

Open Settings > Windows Security > App and Browser Control. If your PC has the feature, there is a Smart App Control section showing On, Evaluation or Off. Blocking happens in enforcement mode, which is the On state. If the section is missing, the PC either lacks the feature or an administrator manages it. Our article on Smart App Control in Windows 11 lists the conditions that remove it.

One case is worth knowing. Microsoft's support page says Smart App Control automatically blocks files with certain dangerous extensions when they are downloaded from the internet, including .bat, .js and .ps1. If you downloaded a script and it was refused, that is the likely reason, and the fix is to get the tool as a signed installer or to run the script from a source you control.

Step 2: find the blocked file and the policy in Event Viewer

If Smart App Control is off or absent, or you are on a work PC, the block was almost certainly caused by an App Control policy. Windows logs every such block. Open Event Viewer and go to these locations, which Microsoft names in its troubleshooting guide:

  • Applications and Services logs > Microsoft > Windows > CodeIntegrity > Operational: blocks of executables, DLLs and drivers.
  • Applications and Services logs > Microsoft > Windows > AppLocker > MSI and Script: blocks of MSI installers, scripts and COM objects.

Look for the event IDs in this table. They come from Microsoft's event reference.

Event IDLogMeaning
3077CodeIntegrity - OperationalThe main block event for an enforced policy. The file did not pass and was blocked.
3076CodeIntegrity - OperationalThe main block event for a policy in audit mode. The file would have been blocked, but it ran.
3089CodeIntegrity - OperationalSignature details for a blocked file, one event per signature. An unsigned file gets one event with a signature count of 0.
3033CodeIntegrity - OperationalThe file did not meet the requirements. Often a revoked signature, or an expired one that carries the Lifetime Signing EKU.
8029AppLocker - MSI and ScriptA script or MSI was reported as blocked in enforcement mode.
8040AppLocker - MSI and ScriptA packaged app (MSIX or AppX) was prevented from installing or running.

Open the 3077 event and read these fields, as described in Microsoft's guide:

  • File Name: the path and name on disk of the file that was blocked.
  • Process Name: the file that tried to run the blocked file, also called the parent process. The blocked file and the process you started are often different things.
  • PolicyName: the friendly name of the policy that blocked it. If several policies block a file, you get a separate 3077 event for each.
  • Status: a Windows NT status code. Decode it with the command below.
certutil.exe -error <status>

Replace <status> with the value from the event. The matching 3089 events share the same ActivityID under System > Correlation. Their VerificationError field gives the reason a signature failed the policy. Microsoft's guide warns that "Validated Signing Level" means something different on a 3077 event than on a 3089 event: on 3077 it shows how Windows actually treated the file, and on 3089 it shows the best level the signature could have reached.

Step 3: list the active policies

On Windows 11, version 22H2 and later, you can list every App Control policy on the PC from an elevated PowerShell window:

CiTool.exe -lp -json

Microsoft says to check the IsSystemPolicy value in this output. When it is true, the policy is managed by Windows itself. Do not modify, replace or remove those. Windows in S mode, for example, uses a policy that Microsoft's guide says blocks script hosts such as PowerShell.exe on purpose, so a blocked script host on an S mode PC is the policy working as designed.

If the PolicyName in your event matches nothing you recognise on a personal PC, do not delete policy files by hand. Microsoft's removal guidance says not to bypass a removal error by deleting files or changing permissions.

How to fix it

The fix depends on who owns the policy.

On a work or school PC

The policy belongs to your administrator, so send them the event details: the File Name, Process Name, PolicyName and the 3089 VerificationError. Microsoft's guide says an administrator can allow the blocked file by adding rules built from the core event logs, or by redeploying the app through a managed installer if the policy trusts one. If you are the administrator and the policy is yours, Microsoft documents removal with CiTool.exe or through MDM such as Intune, after you disable the method that deployed it (Group Policy or MDM), otherwise the policy can come back. Signed base policies have extra steps, and getting them wrong can cause a boot failure, so read the removal page before touching one.

On a personal PC with Smart App Control

Update the program from the publisher's own site, since newer builds are often signed. If that is not possible, the choices are to ask the developer for a signed build or to turn Smart App Control off in Windows Security. Turning it off applies to every program, not only the one you want to run, so decide with that in mind.

On a PC in S mode

Microsoft's guide says the Windows in S mode policy template does not allow script hosts to run, to limit the attack surface. A blocked script host on an S mode PC is therefore expected. Leaving S mode is a separate Windows decision, so check Microsoft's S mode documentation before you switch.

If it still fails

Microsoft's troubleshooting guide lists a case that matches a common complaint: an app fails and no App Control events appear. Some apps change their behaviour when a user mode policy is active, and script enforcement can break apps whose script hosts do not handle it. Its suggested isolation steps are to check the other event logs it lists (AppLocker EXE and DLL, CAPI2, DeviceGuard and the Windows Application and System logs) and, for administrators, to test with a policy that disables script enforcement or allows all COM objects.

Also check whether event 8029 is the only event. Microsoft notes that although 8029 says a script was blocked, the script host controls what actually happens. PowerShell, for instance, runs a script that the policy does not allow in Constrained Language Mode rather than refusing it outright. A script that "half works" is this behaviour, not a bug.

If you believe you have found a product fault, Microsoft asks for reports through the Feedback Hub, in the category Security & Privacy - Application Control, with the diagnostic data, the blocked file if possible and steps to reproduce it. Information on the signature of a download is covered in What Is a Digital Signature? if you need to judge whether the file's publisher can be trusted. Event IDs and menu names in this article were taken from Microsoft documentation as of November 2026 and may change in later Windows releases.

Frequently asked questions

Is a file that an application control has blocked a virus?
Not necessarily. Application control decides whether code is allowed to run, based on its signature, reputation or a policy rule. It does not scan for malware. A blocked file can be a legitimate but unsigned tool, or something unsafe. Check where the file came from and who published it before you try to run it again.
Can I run the file anyway by clicking Properties and Unblock?
The Microsoft documentation I opened does not describe Unblock as a way past an App Control decision. It describes allowing a file by adding a rule to the policy, or by redeploying it through a managed installer your policy trusts. For Smart App Control, the options are a signed build or turning the feature off.
What does Windows event 3077 mean?
Microsoft documents event 3077 in the CodeIntegrity Operational log as the main App Control block event for enforced policies. It means the file did not pass the policy and was blocked. The event names the file, the process that tried to run it and the policy that blocked it.
Why does the same file work on another PC?
Different PCs can have different policies. A work PC may have an organization policy, one PC may run Smart App Control in enforcement mode while another has it off, and a PC in S mode uses a stricter template. Compare the policy lists and the Smart App Control state on both machines.

Sources