Windows Protected Your PC? Run It Safely or Unblock It

Mudin Saiful

A cartoon front door opened a crack and held by a security chain, illustrating how to fix Windows protected your PC

Tested on Windows 11 version 26H2 (OS Build 26300.9974), Pro edition.

Downloading a small tool from a developer’s website is something most of us do every week. A free screen recorder, a driver utility, a game mod, an installer a friend sent you. Most of the time you double-click it and it simply opens.

There are times when Windows stops you instead. You double-click the file, and a big blue box says “Windows protected your PC” with only a “Don’t run” button. Unfortunately, a lot of people think the file is broken or that Windows has found a virus, and some go straight to switching off protection for the whole PC.

In this article, we’ll cover what the “Windows protected your PC” message really means, how to run a file you trust with “More info” and “Run anyway”, how to unblock a file in Properties and with the Unblock-File command, why the “Run anyway” button is sometimes missing, and which settings in Windows Security control all of this. I made my own small test app, gave it the same download mark a browser adds, and went through every screen on a real Windows 11 PC. Everything I changed was put back to the default at the end.

Causes of the “Windows Protected Your PC” Message

The blue box comes from Microsoft Defender SmartScreen. Basically, SmartScreen is a reputation check. When you open a program that came from the internet, Windows asks Microsoft’s service whether lots of people have already run that exact file safely and whether it’s signed by a known publisher. If the answer is “we’ve never seen this one”, you get the message “Microsoft Defender SmartScreen prevented an unrecognized app from starting”.

So, the warning doesn’t mean the file is a virus. It means the file is unknown. A brand new app from a small developer, a tool you built yourself, or a file that isn’t digitally signed will all trigger it. A real virus can trigger it too, which is exactly why you shouldn’t click past it without thinking. How does Windows know a file came from the internet in the first place? Here’s how that should go:

See the download mark on the file

The Zone.Identifier stream with ZoneId=3, the mark that tells Windows 11 a file came from the internet

Every browser adds a small hidden tag to the files it downloads. It’s called the Mark of the Web, and it lives in a hidden part of the file named “Zone.Identifier”. ZoneId=3 (number 1) means “Internet”. SmartScreen only checks files that carry this mark, which is why the same program copied from a USB drive often opens with no warning at all. My test file, TaskNotes-setup.exe, is a tiny app I compiled myself that only shows a message box, and I gave it exactly this mark so Windows treats it like a fresh download.

You can read the mark yourself in PowerShell. Replace the file name with your own:

Get-Content .\TaskNotes-setup.exe -Stream Zone.Identifier

Note: “Unknown publisher” in the warning means the file has no digital signature. Big companies sign their installers, so a well-known installer from the official website rarely shows this box. If you see “Unknown publisher” on something that claims to be from a big brand, I would strongly suggest deleting it and downloading it again from the official site.

How to Fix Windows Protected Your PC Using More Info and Run Anyway

This is the normal fix, and it’s the one Microsoft intends you to use. You don’t need to change any settings. You only tell SmartScreen, for this one file, that you know what it is.

Before you click anything, ask yourself where the file came from. If it came from the developer’s official website, a store page you trust, or you made it yourself, go ahead. If it arrived as an email attachment you didn’t expect, or from a “free download” site full of ads, close the box. Here’s what you do:

Click More info on the warning

The blue Windows protected your PC SmartScreen window with the More info link

Double-click the file. When the blue “Windows protected your PC” window appears, don’t close it. Click on “More info” (number 1) under the message. At this point only “Don’t run” is visible, which is why many people think there’s no way through.

Check the app name and publisher, then click Run anyway

App name, Unknown publisher and the Run anyway button on the Windows protected your PC screen

After a moment you will see two new lines, “App” and “Publisher” (number 1). Make sure the app name matches the file you meant to open. In my case it says TaskNotes-setup.exe and “Unknown publisher”, which is what I expected because I didn’t sign my own test app. If everything looks right, click on “Run anyway” (number 2). If something looks off, click “Don’t run”.

The app opens

The test app opening normally after clicking Run anyway in Windows 11

The app starts like any other program. My test app just shows a “Hello from my own test app” message (number 1). If the program needs administrator rights, you’ll see the usual User Account Control prompt right after this. Mine didn’t need it, so it opened straight away.

Run it again without the warning

PowerShell showing the Zone.Identifier mark removed from the file after Run anyway

Next, close the app and double-click the same file again. This time there’s no blue box at all. I checked the file in PowerShell and found out why: after “Run anyway”, Windows removed the Zone.Identifier mark from the file (number 1). Only the normal data part, “:$DATA”, is left. So “Run anyway” is a one-time decision for that file, not for every copy you download later.

Get-Item .\TaskNotes-setup.exe -Stream * | select Stream,Length

My experience: This surprised me a bit. I expected SmartScreen to remember my choice somewhere online. It doesn’t. It simply strips the download mark from that one file. When I made a fresh copy with the mark and opened it, the blue warning came back immediately, even though the file was byte for byte the same app I had just allowed.

How to Unblock a File in Properties

Sometimes you don’t want to see the warning at all, for example when you’ve downloaded a portable tool you’ll run many times, or a ZIP file full of programs. Removing the Mark of the Web before you open the file does the same thing as “Run anyway”, just earlier.

It’s also advisable to unblock a ZIP file before you extract it. When you extract a marked ZIP with the built-in Windows tool, the files inside get the mark too, and you’d have to deal with the warning for every one of them. The process has several steps:

Open the file’s Properties

The Properties option in the right-click menu of an exe file in File Explorer

Go to the folder with the file, right-click it, and click on “Properties” (number 1). You can also select the file and press Alt + Enter.

Tick Unblock and click Apply

Ticking Unblock on the General tab of a file's Properties and clicking Apply

On the “General” tab, look at the bottom. If the file has the download mark, you’ll see “Security: This file came from another computer and might be blocked to help protect this computer” (number 1). Tick the “Unblock” box next to it, then click on “Apply” (number 2) followed by “OK”. After you click “Apply”, the whole Security line disappears. If you don’t see that line at all, the file isn’t marked, and whatever is blocking it isn’t the Mark of the Web.

I double-clicked my unblocked copy afterwards, and it opened directly with no SmartScreen window.

How to Unblock a File with PowerShell Unblock-File

If you have a whole folder of downloaded scripts or tools, clicking through Properties for each one gets old fast. PowerShell has a built-in command for this called Unblock-File. It removes the same Zone.Identifier mark, and you don’t need to run PowerShell as administrator for files in your own folders.

As always, only use it on files you already trust. Unblocking a whole Downloads folder in one go also unblocks anything nasty that might be sitting in there. Here’s how that should go:

Remove the mark with Unblock-File

The Unblock-File command in PowerShell removing Zone.Identifier from a downloaded file

Open PowerShell (right-click the Start button and choose “Terminal”), then go to the folder with the cd command. First I checked the file and you can see the “Zone.Identifier” stream (number 1). Then I ran Unblock-File (number 2). When I checked again, only “:$DATA” was left (number 3), which means the mark is gone. Unblock-File doesn’t print anything when it works, so don’t wait for a success message.

Get-Item .\TaskNotes-ps.exe -Stream * | select Stream,Length
Unblock-File -Path .\TaskNotes-ps.exe

To unblock every file in one folder that you trust, use this instead. Change the path to match your own folder:

Get-ChildItem "C:\Users\YourName\Downloads\MyTool" -Recurse | Unblock-File

Why the Run Anyway Button Is Missing

This is the part most guides skip. Some people click “More info” and still see only “Don’t run”. There’s no “Run anyway” button anywhere. That’s not a bug. It’s a setting called “Warn and prevent bypass”, and it’s usually turned on by an administrator, a school, or a company IT department.

To be sure about what that looks like, I turned the policy on myself in the Local Group Policy Editor, tested it, and then turned it off again. If you’re on a work or school laptop, don’t change this. Ask your IT team to allow the app instead. If it’s your own PC and you didn’t set it, the steps below also show you how to check and undo it.

Find the SmartScreen policy in Group Policy

Configure Windows Defender SmartScreen under the Explorer folder in the Group Policy Editor

Press Windows + R, type gpedit.msc and press Enter. Go to “Computer Configuration”, “Administrative Templates”, “Windows Components”, “Windows Defender SmartScreen” and click on “Explorer” (number 1). On the right, you’ll see “Configure Windows Defender SmartScreen” (number 2). On my PC it was “Not configured” by default, which is how a home PC normally looks. The Group Policy Editor is only in Pro, Enterprise and Education editions.

What Warn and prevent bypass does

The SmartScreen policy set to Enabled with Warn and prevent bypass selected

Double-click the policy. When it’s set to “Enabled” (number 1) with “Warn and prevent bypass” in the list (number 2), users can’t ignore the warning. The other choice, “Warn”, shows the warning with the normal “Run anyway” button. I chose “Warn and prevent bypass” and clicked “OK” (number 3), then ran gpupdate /force in Terminal so it applied straight away.

The Run anyway button disappears

Windows protected your PC with the Run anyway button missing and only Don't run left

Next, I opened another marked copy of my test app and clicked “More info”. The app name and “Unknown publisher” still show up (number 1), but the only button is “Don’t run” (number 2). This is the exact screen people describe when they say “Run anyway is missing”.

Windows Security says it’s managed

This setting is managed by your administrator with Check apps and files greyed out

Another clue is in Windows Security. Under “App & browser control” and “Reputation-based protection”, there’s now a blue banner that says “This setting is managed by your administrator” (number 1), and the “Check apps and files” switch is greyed out (number 2). If you see this banner on your own PC, a policy is in place.

Check the policy values in the registry

EnableSmartScreen 1 and ShellSmartScreenLevel Block registry values written by the SmartScreen policy

The policy writes two values that you can read without the Group Policy Editor, which is handy on Windows 11 Home. EnableSmartScreen = 1 means SmartScreen is forced on, and ShellSmartScreenLevel = Block means “Warn and prevent bypass” (number 1). “Warn” would mean the normal button is allowed.

Get-ItemProperty HKLM:\SOFTWARE\Policies\Microsoft\Windows\System | select EnableSmartScreen,ShellSmartScreenLevel

See if the policy is enabled

The Enabled state of Configure Windows Defender SmartScreen in the Group Policy Editor

Back in the Group Policy Editor, the “State” column now says “Enabled” (number 1). That’s the quickest way to spot it.

Set the policy back to Not Configured

Setting the SmartScreen policy back to Not Configured so Run anyway comes back

To undo it on your own PC, double-click the policy, choose “Not Configured” (number 1) and click “OK” (number 2). Then run gpupdate /force in Terminal. I strongly recommend “Not Configured” over “Disabled” here, because “Disabled” switches SmartScreen off for apps completely. After this, the reputation settings are back in your hands and “Run anyway” returns.

My experience: While the policy was on, I also tried the Properties “Unblock” box on a marked copy. It worked, and the app opened without any warning. So on a PC you own, unblocking a file you trust still gets you through. On a company laptop, please don’t use that as a way around your IT department’s rules.

How to Check Reputation-Based Protection Settings

All the switches that decide when SmartScreen jumps in live in one place in the Windows Security app. It’s worth knowing what each one does, because a few guides tell you to turn them all off without explaining any of them.

On my test PC everything was still on the default values. I’ll go through them from top to bottom so you know which one matters for the “Windows protected your PC” box. Here’s what you do:

Open Reputation-based protection

Check apps and files and SmartScreen for Microsoft Edge in Reputation-based protection

Press the Start button, type Windows Security and open it. Click on “App & browser control” followed by “Reputation-based protection settings”. “Check apps and files” (number 1) is the switch behind the blue warning for programs you open from File Explorer. “SmartScreen for Microsoft Edge” (number 2) checks websites and downloads inside Edge itself, so it can warn you even before the file is saved. Below them is “Phishing protection”, which watches for your Windows password being typed into fake sites.

Potentially unwanted app blocking and Store apps

Potentially unwanted app blocking and SmartScreen for Microsoft Store apps in Windows Security

Scroll down. “Potentially unwanted app blocking” (number 1) catches software that isn’t a virus but behaves badly, like toolbars and bundled “offers”. On my PC it was Off, with “Block apps” and “Block downloads” unticked. If you install a lot of free software, turning it on with both boxes ticked is a good idea. “SmartScreen for Microsoft Store apps” (number 2) checks the web content that Store apps load.

Check the Smart App Control status

Smart App Control in Evaluation mode in Windows 11 Windows Security

Go back one page and click on “Smart App Control settings”. Smart App Control is a different, stricter feature. When it’s “On”, it blocks untrusted and unsigned apps, and there’s no “Run anyway” for those at all. On my PC it was in “Evaluation” (number 1), which means it’s only watching and not blocking yet. If it shows “On” and an app you need is blocked, the “More info” and “Unblock” tricks in this article won’t help. I left it exactly as it was, and I’d suggest you do the same unless you understand what it blocks.

What Happens If You Turn Off Check Apps and Files

A lot of videos and articles tell you to simply switch off “Check apps and files” to get rid of the message. I wanted to see what really happens, so I turned it off for a few minutes, tested a marked file, and turned it back on.

I don’t recommend leaving it off. SmartScreen is one of the few things standing between a fake installer and your PC, and turning it off affects every file, not just the one you trust. If you only need one file to run, “Run anyway” or “Unblock” is always the better choice.

Turn off Check apps and files

The Check apps and files is off warning after turning SmartScreen off in Windows Security

In “Reputation-based protection”, I clicked the “Check apps and files” switch and confirmed the User Account Control prompt. Windows Security immediately shows a yellow warning, “Check apps and files is off. Your device may be vulnerable.” (number 1), and the switch says “Off” (number 2).

A different warning shows up

The Open File Security Warning with Unknown Publisher that appears when SmartScreen is off

Even worse, the file still didn’t open quietly. Instead of the blue box, I got the older “Open File – Security Warning” window that says “The publisher could not be verified” with “Unknown Publisher” (number 1). It’s still caused by the download mark, just without the reputation check. I clicked “Cancel” (number 2). So switching SmartScreen off doesn’t even save you a click; it only removes the smarter part of the check.

Turn it back on

Check apps and files switched back On in Windows Security

Click the switch again, confirm User Account Control, and make sure it says “On” (number 1). Hopefully, the yellow warning is gone too. This is the default, and it’s where it should stay.

Common Problems and How to Fix Them

Most of the time, “More info” and “Run anyway” are all you need. But there are a few situations where the usual fix doesn’t seem to work, and they each have a different cause.

Below are the ones I either saw myself during testing or that come straight from how Windows is designed. If yours isn’t here, the comment section is open.

Run anyway is missing on a work or school laptop

If your PC is managed by a company or school, the “Warn and prevent bypass” policy, or the same setting pushed through Microsoft Intune, removes the button on purpose. Windows Security will show “This setting is managed by your administrator”. The right fix is to ask IT to approve the app. Changing the registry yourself on a managed PC usually gets undone at the next policy refresh anyway.

The file still won’t open after Run anyway

If the app flashes and closes, or nothing happens after “Run anyway”, SmartScreen has already done its part. Check Windows Security, “Virus & threat protection”, “Protection history” to see if Microsoft Defender Antivirus quarantined the file. If it did, don’t restore it unless you’re completely sure about the source. Also, try right-clicking the file and choosing “Run as administrator” if it’s an installer that needs to write to Program Files.

Smart App Control blocked the app instead

Smart App Control uses a different message and doesn’t offer “Run anyway”. If Smart App Control is “On” and blocks an app you need, the only built-in choice is to set Smart App Control to “Off”. Microsoft says recent updates let you turn it back on later without reinstalling Windows, but on older builds that wasn’t possible, so think twice before you switch it off.

You think it’s a false positive

If you’re the developer, or you’re sure an app is safe and SmartScreen keeps warning everyone, you can submit the file to Microsoft through the Microsoft Security Intelligence file submission page and ask for it to be reviewed. Signing your app with a code signing certificate also helps it build reputation over time.

This concludes our guide on fixing the “Windows protected your PC” message without switching off the protection that keeps your PC safe. If you’re working with low-level tools, you might also run into a different block for unsigned drivers, and the way to handle that safely is covered in our guide to disabling driver signature enforcement in Windows 11. If an app you ran turned out to be bad news and Windows started acting up, it’s worth trying to repair Windows 11 with SFC and DISM without reinstalling before you consider anything bigger. And if things are really broken, our walkthrough on how to factory reset Windows 11 and keep your files shows every screen. Did you get a different SmartScreen message, or is your “Run anyway” button still missing? Write the exact text in the comments and I’ll take a look.

Leave a Comment