Why Smart App Control Blocks Your Compiled AutoHotkey Scripts

I compiled one of my AutoHotkey scripts into an .exe the other day, double-clicked it, and Windows basically said: “Nope.”

No “Run anyway” button. No “I know what I’m doing” option. Just a polite little box telling me Smart App Control blocked an app that may be unsafe.

Holy cow. I WROTE the thing. Five minutes ago. 😃

If you build your own tools (AutoHotkey, Python, C#, whatever) and compile them into .exe files, you’ve probably hit this too. Or you will. So I dug into what Smart App Control actually is, how it decides what runs, and why a lot of developers are turning it off.

Have you run into it yet? Now on with the show…

What Is Smart App Control?


Think of Smart App Control (SAC) as a bouncer with a guest list.

Every time a program tries to run, the bouncer checks two things:

  1. Do I recognize you? Windows asks Microsoft’s cloud service (the “Intelligent Security Graph”) if this exact file is known to be safe. Popular apps that millions of people run are on the list.
  2. Do you have ID? If the cloud isn’t sure, SAC checks for a valid digital signature from a trusted certificate authority.

If you’re not on the list AND you don’t have ID, you don’t get in. Period.

It shipped with Windows 11 22H2 back in 2022, and it’s been tightened up with every release since. It’s Windows 11 only (Windows 10 doesn’t have it).

The important difference from regular antivirus: SAC doesn’t look for bad stuff. It blocks anything it can’t prove is good. That’s a HUGE difference if you make your own software.

Why Compiled AutoHotkey Scripts Get Blocked


Here’s the thing that took me a minute to understand.

When you compile a script with Ahk2Exe, your code gets bundled into a copy of the AutoHotkey program. That produces a brand new file that nobody on Earth has ever seen before. Change one line and recompile? Another brand new file.

So when the bouncer checks the guest list, you’re not on it. And unless you paid for a code signing certificate, you don’t have ID either. Blocked.

A few other things I found interesting:

  • Plain AutoHotkey usually gets through. AutoHotkey64.exe isn’t signed, but so many people run it that Microsoft’s cloud already knows it.
  • Usually. Just this week (October 5, 2026) someone reported SAC blocking the AutoHotkey 2.0.29 installer during a winget upgrade, because Microsoft’s cloud hadn’t “learned” the new version yet.
  • Building it on your own PC doesn’t help. SAC doesn’t care that you made the file locally. No signature plus no reputation equals blocked.
  • It’s not just .exe files. SAC checks DLLs, .msi installers, and PowerShell scripts too. It also flat-out blocks a bunch of file types downloaded from the internet, including .bat, .cmd, .ps1, .vbs, .js, .lnk and .iso.
  • Self-signing won’t fool it. A self-signed certificate doesn’t count. The cert has to chain back to a real, trusted certificate authority.
❗ The part that really stings: there is NO way to whitelist a single app. Microsoft says it plainly: “There is currently no way to bypass Smart App Control protection for individual apps.” It’s all or nothing.

The Two Modes: Evaluation and On


On a fresh Windows 11 install, SAC starts in Evaluation mode. It quietly watches what you run for a while to decide if you’re a “good candidate.”

If you mostly use mainstream apps, it flips itself On and starts enforcing.

If you look like a developer (running lots of unsigned, homemade stuff), Microsoft says it may decide you’re a poor fit and turn itself off automatically.

Don’t get me wrong, that’s a reasonable idea. But it doesn’t always guess right, which is how a lot of us end up with it ON and our own tools blocked.

Good News: Turning It Off Is No Longer Permanent


This used to be the scary part. For years, once you turned SAC off, the only way to get it back was to reinstall Windows. That made a lot of people nervous about touching it.

That changed with the April 14, 2026 update (KB5083769) for Windows 11 24H2 and 25H2. Now you can flip it off and back on right in the Windows Security app. If your PC is up to date, you’re not making a one-way decision anymore. 🚀

Why People Who Build Tools Turn It Off


If you write code for a living (or for fun), SAC fights you every day:

  • Every compile is a “new” app. Your build, test, tweak, rebuild loop gets blocked over and over.
  • No exceptions allowed. You can’t say “trust my Projects folder.” No path exclusions, no per-app allow list.
  • Dev tools get caught too. Unsigned helper utilities, little CLI tools, plugins, and even legit installers can get stopped.
  • Time. This is the big one for me. Every block is a few minutes of “what just happened?” and those minutes add up FAST.

And you’re not unprotected when it’s off. Microsoft Defender antivirus keeps scanning in real time, and SmartScreen comes back into play (that’s the warning that at least gives you a “Run anyway” button).

How to Turn It Off


  1. Press Win+R, paste windowsdefender://smartapp/ and hit Enter. (Or go Windows Security > App & browser control > Smart App Control settings.)
  2. Pick Off.
  3. That’s it. If you’re fully updated, you can switch it back On later from the same screen.

Want to check the current setting from AutoHotkey? SAC stores its state in the registry. Here’s a tiny v2 script that tells you what mode you’re in:

#Requires AutoHotkey v2.0
; Read Smart App Control’s current mode from the registry
RegKey := “HKLM\SYSTEM\CurrentControlSet\Control\CI\Policy”
State := RegRead(RegKey, “VerifiedAndReputablePolicyState”, -1)
; 0 = Off, 1 = On (enforcing), 2 = Evaluation
Modes := Map(0, “Off”, 1, “On”, 2, “Evaluation”)
MsgBox(“Smart App Control is: “ (Modes.Has(State) ? Modes[State] : “Unknown”))

But What About the People I Share My Tools With?


Turning SAC off on YOUR machine fixes your problem. It doesn’t fix it for your coworkers, clients, or the folks downloading your tool. You can’t (and shouldn’t) ask everyone to lower their security for you.

Here are your realistic options:

OptionCostThe catch
Ship the .ahk file instead of an .exe (they run it with AutoHotkey)FreeThey need AutoHotkey installed, and your source is visible
Azure Artifact Signing (formerly Trusted Signing)About $9.99/monthIndividuals must be in the US or Canada; needs a paid Azure subscription and identity verification
Traditional OV code signing certificateUsually a few hundred dollars a yearPaperwork, plus most now require a hardware token or cloud key
SignPath FoundationFreeOpen source projects only, and you have to apply
💡 Tip: If you do sign, use an RSA certificate with SHA256. Folks have reported that SAC doesn’t play nice with ECC signatures. And remember: signing gets you past Smart App Control, but SmartScreen may still warn people for a while until your signature builds up a reputation.

My Take


For my Dad’s laptop? Leave Smart App Control ON. It’s genuinely good protection for people who only run mainstream apps.

For anyone who builds tools? It’s the wrong fit. You’re constantly creating “unknown” software by definition. Turn it off, keep Defender on, and be smart about what you download.

And if you’re handing compiled tools to clients, budget for code signing. It’s quickly becoming the price of admission on Windows.

How about you? Have you turned it off, or found a better workaround? I’d love to hear it. 😊

Sources

Joe Glines

Joe Glines spent 20 years as a corporate data scientist before going all in on automation. He now uses AI to build automation in AutoHotkey, Python and Rust, has made 1,500+ tutorials, and runs the-Automator with a small team that has shipped 450+ time-saving tools.

Comments are closed.