Quick answer
Right-click the file or shortcut, go to Properties, and if you see an 'Unblock' checkbox at the bottom of the General tab, check it and click Apply. That's the fix 80% of the time. If it's not there, move to the numbered steps below.
Why this happens
This error usually shows up when you try to open a program or file that Windows 10 or 11 thinks is unsafe. It's Windows Security doing its job, but sometimes it gets it wrong. The file might have been downloaded from the internet, copied from a network drive, or it's stored in a folder where your user account doesn't have full permission. I've seen this most often with old installers, portable apps, or scripts people saved from email attachments. The real fix is to unblock the file or adjust the file path so Windows stops second-guessing you.
Step-by-step fix
- Unblock the file. Right-click the file or shortcut, choose Properties. On the General tab, look near the bottom. If you see 'This file came from another computer and might be blocked to help protect this computer' — there's an Unblock checkbox. Check it. Click Apply, then OK. Now try opening the file again.
- Check the file path. If the file path is too long (over 260 characters) or has weird characters like & or %, Windows can choke. Shorten the folder names. Move the file to C:\temp or your desktop. That solves path issues on older Windows versions, but Windows 10 and 11 handle long paths better. Still worth a try.
- Take ownership of the file. Right-click the file, go to Properties > Security tab. Click Advanced. Next to 'Owner', click Change. Type your Windows username (e.g., JohnDoe) into the box, click Check Names, then OK. Check 'Replace owner on subcontainers and objects' if it's a folder. Click Apply. Then on the same Security tab, click Edit, add your username, give it Full Control. Apply, close, try again.
- Run the program as administrator. Right-click the file, choose 'Run as administrator'. If it works, go back to Properties > Compatibility tab, check 'Run this program as an administrator', click Apply. That bypasses a lot of permission blocks.
- Disable SmartScreen temporarily. This is a last resort. Go to Start > Settings > Privacy & security > Windows Security > App & browser control. Under 'Check apps and files', select 'Off'. Try running the file. Re-enable it after you're done — SmartScreen is useful for catching real malware.
Alternative fixes if the main steps fail
- Copy the file to a local drive. If it's on a network share or USB drive, copy it to your desktop. Network locations sometimes have stricter permissions.
- Use the command line to unblock. Open Command Prompt as administrator. Type
unblock-file -path "C:\full\path\to\file.exe"and press Enter. This does the same as the checkbox, but works for multiple files at once. - Check if the file is actually corrupt. Re-download or re-copy it from the source. Old download links sometimes break files.
- Temporarily disable antivirus. If you have third-party antivirus (Norton, McAfee, etc.), turn it off for a minute. Some of them block files even when Windows doesn't. If the file runs with antivirus off, you'll need to add an exception for that file or folder in your antivirus settings.
Prevention tip
Always download trusted software from official websites. Use a download manager that doesn't strip security metadata — that's usually the culprit. When you save a file, right-click it and unblock it right away before you need to run it. Also, keep your Windows user account as a standard user day-to-day, but use the 'Run as administrator' trick only when needed. This keeps the error from popping up for everything.
I've seen this error on Windows 10 versions 1809 through 22H2, and on Windows 11 from release to 23H2. It's not a sign of a broken system — just a safety lock you need to open.