Fix "You Are Not Allowed to Run This Program" on a Work Laptop
This runbook is for anyone using a managed work laptop who gets blocked when opening an app, installer, script, or downloaded tool. It walks you through the fastest checks first, helps you identify whether the block is from company policy, antivirus/EDR, permissions, or OS trust settings, and gives concrete next steps you can hand to IT if you cannot change it yourself.
TL;DR — This message usually means your work laptop is blocking the app on purpose: most often because of company policy, endpoint security software (security software that watches and blocks risky activity), or the app being untrusted because it came from the internet. Start with the exact error text and whether the app is company-approved; the single most likely fix is to install or request the app through your company’s approved software portal or ask IT to allowlist it. Reading time: ~6 min
The scenario
It is a normal Tuesday afternoon. You download a PDF tool, VPN client, or small helper app your project needs, double-click it, and Windows or macOS stops you with some version of "you are not allowed to run this program." You try again as administrator, but it still fails, and now you are not sure whether the file is broken, your account is restricted, or your company security tools are blocking it. Meanwhile, you just need the app to open so you can finish your work.
Symptoms
- A pop-up says one of these exact or near-exact messages:
- "You are not allowed to run this program"
- "This app has been blocked by your system administrator"
- "This app has been blocked for your protection"
- "Your organization used Windows Defender Application Control to block this app"
- "Operation did not complete successfully because the file contains a virus or potentially unwanted software"
- "The application can’t be opened because you do not have permission"
- "App is damaged and can’t be opened. You should move it to the Bin"
- Right-clicking and choosing Run as administrator does not help.
- The same file works on a personal laptop but not on the work laptop.
- The file was downloaded from email, chat, a browser, or a shared drive.
- In Windows Event Viewer (Windows log viewer), you may see AppLocker or WDAC events.
- In macOS, System Settings → Privacy & Security may show a message about a blocked app or unidentified developer.
Likely causes
| Cause | How common | Quick check |
|---|---|---|
| Company application control policy (AppLocker, WDAC, MDM policy) is blocking the app | Very common | Windows: eventvwr.msc → Applications and Services Logs → Microsoft → Windows → AppLocker or CodeIntegrity → Operational |
| Endpoint security/antivirus blocked the file as risky or unknown | Very common | Windows Security → Virus & threat protection → Protection history |
| The app is not installed from the company-approved software portal | Common | Open your company software portal (often "Company Portal", "Software Center", or your provider's managed apps page) and search for the app name |
| The file is marked as downloaded from the internet and blocked by OS trust settings | Common | Windows: right-click file → Properties; macOS: System Settings → Privacy & Security |
| Your account lacks permission to the folder or executable | Less common | Windows: right-click file → Properties → Security; macOS: right-click app → Get Info → Sharing & Permissions |
| The file is corrupt, unsigned, or tampered with | Less common | Re-download from the vendor’s official site and compare behavior with the new copy |
Step-by-step diagnosis
-
Capture the exact message and where it appears.
- Action: take a screenshot of the full pop-up, including any "More info" or "Details" link.
- This is your problem if: the message names a blocker such as system administrator, Defender Application Control, AppLocker, virus, or unidentified developer.
- Jump to: the matching fix section below.
-
Check whether the app is already approved by your company.
- Action: open your company’s software portal. Common names are Company Portal, Software Center, or your device-management app. Search for the app by name.
- This is your problem if: you find the app there and your downloaded copy is blocked, or the portal says you must install it from there.
- Jump to: ### App is not installed from the company-approved software portal.
-
Check your security software history.
- Windows path: Start → Windows Security → Virus & threat protection → Protection history.
- macOS path: if your company uses a security agent, open that app from the menu bar or Applications and look for History, Quarantine, or Detections.
- This is your problem if: the file name appears with words like blocked, quarantined, PUA (potentially unwanted application), malware, or unknown reputation.
- Jump to: ### Endpoint security or antivirus blocked the file.
-
Check for application control policy events.
- Windows path: press Start, type and open Event Viewer. Then go to:
Applications and Services Logs → Microsoft → Windows → AppLocker → EXE and DLL
- Also check:
Applications and Services Logs → Microsoft → Windows → CodeIntegrity → Operational
- This is your problem if: you see an event saying the executable was blocked, not allowed, or denied by policy.
- Jump to: ### Company application control policy is blocking the app.
-
Check whether the file is blocked because it came from the internet.
- Windows path: right-click the
.exe,.msi, or.batfile → Properties → General tab. - This is your problem if: you see an Unblock checkbox or message such as "This file came from another computer and might be blocked to help protect this computer."
- Jump to: ### File is blocked by OS trust settings.
- macOS path: System Settings → Privacy & Security and scroll to the security section after trying to open the app once.
- This is your problem if: you see Open Anyway for that app or a warning about an unidentified developer.
- Jump to: ### File is blocked by OS trust settings.
- Windows path: right-click the
-
Check file/folder permissions.
- Windows path: right-click the file → Properties → Security.
- This is your problem if: your user account or the Users group does not have Read & execute.
- Jump to: ### Your account lacks permission to the file or folder.
- macOS path: right-click app → Get Info → Sharing & Permissions.
- This is your problem if: your account has No Access.
- Jump to: ### Your account lacks permission to the file or folder.
-
Rule out a bad download.
- Action: delete the downloaded copy, then download a fresh copy from the vendor’s official site or your company portal.
- This is your problem if: the old file fails but the fresh copy opens, or the old file shows a damaged/corrupt warning.
- Jump to: ### File is corrupt, unsigned, or tampered with.
Fixes
Company application control policy is blocking the app
This is the most common cause on managed work laptops. The laptop is enforcing a company rule that only approved software can run.
- Best fix: install the app from the company-approved portal instead of a browser download.
- If the app is not in the portal, send IT the exact file details:
- App name and version
- Publisher/vendor name
- Download URL
- Screenshot of the error
- On Windows, the event details from Event Viewer
Windows event export path:
Event Viewer → relevant AppLocker or CodeIntegrity event → right-click → Copy → Copy Details as Text
If your IT team asks for the file hash (a fingerprint of the file), use:
Get-FileHash "C:\Path\To\YourApp.exe" -Algorithm SHA256
Verify it worked: after IT allowlists the app or publishes it in the software portal, opening the app no longer shows a policy-block message.
Endpoint security or antivirus blocked the file
If the file was quarantined or blocked as suspicious, do not keep retrying random copies from mirrors or email attachments.
Windows steps:
Windows Security → Virus & threat protection → Protection history → select the detection → review the file path and threat name
If this is a legitimate business app, send IT/security:
- the file path
- screenshot of the detection
- vendor download URL
- SHA256 hash
If your company policy allows self-service restore, the option may appear in the detection details. Only use it if you are certain the file came from the official vendor.
⚠️ Restoring or excluding a file can expose the laptop to malware. If this is a work-managed device, use your IT/security process instead of adding your own exclusions.
If IT asks for the hash:
Get-FileHash "C:\Path\To\Installer.msi" -Algorithm SHA256
Verify it worked: the file is no longer listed as blocked/quarantined in Protection history, and the app opens normally.
App is not installed from the company-approved software portal
Many companies only allow software installed through their managed catalog because it comes with the right trust and policy settings.
- Open your company software portal.
- Search for the app.
- Choose Install there instead of running the downloaded installer.
If the app is missing, submit a software request with:
- app name and version
- business reason
- vendor website
- whether you need it for one project or ongoing use
Verify it worked: the app appears in your installed apps list and opens without a warning.
File is blocked by OS trust settings
For files downloaded from the internet, the operating system may attach a trust warning.
Windows fix:
Right-click the file → Properties → General → check "Unblock" → Apply → OK
Then try again.
If you prefer PowerShell and are allowed to use it:
Unblock-File "C:\Path\To\YourApp.exe"
macOS fix:
Try to open the app once → System Settings → Privacy & Security → scroll down → click "Open Anyway" for that app
Then confirm when prompted.
If macOS says the app is damaged, do not bypass that warning unless IT or the vendor confirms the file is valid. Re-download from the official source first.
Verify it worked: the file opens after unblocking, and the warning does not reappear for that same copy.
Your account lacks permission to the file or folder
This usually happens when the file is stored in a restricted folder, copied from another user profile, or inherited bad permissions from a network share.
Windows quick fix:
- Move the file to a folder you own, such as Downloads or Desktop, then try again.
- Check permissions:
Right-click file → Properties → Security → select your user → confirm "Read & execute" is allowed
If you manage the file yourself and are allowed to use PowerShell:
icacls "C:\Path\To\YourApp.exe"
Look for your user account or the Users group with (RX).
macOS quick fix:
- Move the app to Applications or your home folder.
- Then check:
Right-click app → Get Info → Sharing & Permissions
Set your user to Read only or Read & Write if company policy allows it.
Verify it worked: your account has execute/read access and the app opens from the new location.
File is corrupt, unsigned, or tampered with
A damaged or modified file can trigger both OS trust warnings and security blocks.
Fix:
- Delete the current copy.
- Download a fresh copy from the vendor’s official website or your company portal.
- Avoid copies from chat attachments, forwarded email, or third-party download sites.
If the vendor publishes checksums, compare them. Windows PowerShell example:
Get-FileHash "C:\Path\To\YourApp.exe" -Algorithm SHA256
Compare the output to the SHA256 value on the vendor’s site.
Verify it worked: the fresh copy has the expected checksum and opens without a damaged/corrupt warning.
Prevention
- Use the company software portal first. If an app is business-critical, ask IT to publish it there so everyone installs the same approved build.
- Keep a standard request template for allowlisting. Example fields:
{
"app_name": "Example App",
"version": "3.2.1",
"vendor": "Example Corp",
"download_url": "https://vendor.example/download",
"sha256": "paste-file-hash-here",
"business_justification": "Needed to open client project files"
}
- Download only from the official vendor site or your managed portal. This reduces trust warnings and false positives from security tools.
- Store installers in your user profile, not random shared folders. Use Downloads or a company-approved software folder so inherited permissions do not block execution.
- Ask IT to monitor block events centrally. On Windows, AppLocker and Code Integrity logs are the useful sources:
Event Viewer → Applications and Services Logs → Microsoft → Windows → AppLocker
Event Viewer → Applications and Services Logs → Microsoft → Windows → CodeIntegrity → Operational
- For internal tools, sign releases and publish checksums. If your agency distributes in-house apps, code signing and SHA256 checksums reduce "unknown app" blocks and make security reviews faster.
This article was written by an AI system and published pending human review. Verify anything you intend to act on.
Have a project in mind?
Get an instant AI price estimate for it, or talk directly to our team.
One email a month on what we learn building with AI