Fix PowerShell Exe Not a Microsoft Verified Application
In this article
When Windows flags PowerShell with "Microsoft verified app" or "Windows protected your PC" (SmartScreen), it usually means the executable's signature or reputation isn't recognized. This can happen with the built-in PowerShell, a portable copy, or after a corrupted update. The fix depends on whether you're using the system PowerShell or a downloaded copy. In most cases, you can resolve it by using the official Microsoft Store version, re-registering the app, or adjusting SmartScreen settings safely. Below are step-by-step methods, from safest to more advanced.
What You'll Need
- Administrator access to your Windows PC (to change settings or run commands).
- An internet connection if you need to download the official PowerShell from the Microsoft Store or GitHub.
- Your Windows version (10 or 11) – steps are similar, but some menu names differ slightly.
Step-by-Step
Method 1: Use the Official Microsoft Store Version (Recommended)
- Open the Microsoft Store app (search "Store" in the Start menu).
- Search for "PowerShell" – look for the one published by "Microsoft Corporation".
- Click "Install" to get the latest stable version (7.x). This version is signed and verified, so SmartScreen won't block it.
- Once installed, launch PowerShell from the Start menu. It will have a different icon (black window) than the classic Windows PowerShell (blue icon).
- If you still see the warning, right-click the Start button and select "Terminal" or "Windows Terminal" (if installed) and run PowerShell from there – that also uses the verified path.
Method 2: Re-register the Built-in Windows PowerShell
- Right-click the Start button and select "Windows PowerShell (Admin)" or "Terminal (Admin)". If you can't open it, use the Run dialog (Win+R), type
powershell, and press Ctrl+Shift+Enter. - In the admin window, run this command to re-register the built-in app:
Get-AppxPackage -Name Microsoft.PowerShell | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppxManifest.xml"} - Wait for the command to finish (it may take a minute). Close the window.
- Try launching PowerShell again. If the warning persists, restart your computer.
Method 3: Check the File Signature (For Portable or Downloaded Copies)
- If you downloaded PowerShell from GitHub or another source, right-click the
powershell.exefile (usually inC:\Program Files\PowerShell\7\or your download folder). - Select "Properties" and go to the "Digital Signatures" tab.
- Check that the signer is "Microsoft Corporation". If it says "No signatures" or a different signer, the file is not the official build. Delete it and download from the official Microsoft GitHub releases page (github.com/PowerShell/PowerShell).
- If the signature is valid but Windows still blocks it, click "Details" and then "View Certificate" to ensure it's not expired or revoked.
Method 4: Adjust SmartScreen Settings (Use with Caution)
- Open Windows Security (search "Windows Security" in Start).
- Go to "App & browser control" > "Reputation-based protection settings".
- Under "Check apps and files", you can turn it off temporarily. This will stop the warning for all unrecognized apps, not just PowerShell. Turn it back on after testing.
- Alternatively, if you see the "Windows protected your PC" dialog, click "More info" and then "Run anyway" – but only if you are certain the file is from Microsoft.
Method 5: Repair or Reset via Settings (For Windows PowerShell from Microsoft Store)
- Go to Settings > Apps > Installed apps (or Apps & features).
- Search for "PowerShell" (the Store version).
- Click the three-dot menu next to it and select "Advanced options".
- Click "Repair" first. If that doesn't help, click "Reset" – this will delete your PowerShell profile and custom settings, but your scripts and files are safe.
- After reset, relaunch PowerShell.
Common Mistakes
- Disabling SmartScreen entirely – This leaves your PC open to other unverified downloads. Only turn it off temporarily.
- Downloading PowerShell from random websites – Always use the official Microsoft Store or the official GitHub repository.
- Running the wrong command for re-registration – Make sure you copy the command exactly, including the pipe symbol.
- Ignoring the file path – If you have multiple copies of powershell.exe, you might be launching the wrong one (e.g., a portable version from a USB drive).
Tips
- Always run PowerShell as Administrator only when needed – it has full system access.
- If you use scripts, keep them in a trusted folder (like Documents) and mark them as unblocked via Properties > Unblock if they come from the internet.
- For daily use, the Microsoft Store version updates automatically and is always signed.
- If you're a developer, consider using Windows Terminal – it hosts PowerShell and other shells in tabs, and the app itself is verified.
Troubleshooting
If the warning still appears after trying the methods above:
- Check Windows Update – Go to Settings > Windows Update and install any pending updates. A stale OS can cause signature verification issues.
- Run System File Checker – Open an elevated Command Prompt (not PowerShell) and run
sfc /scannow. This repairs corrupted system files that might affect app verification. - Clear SmartScreen cache – In Windows Security, under "App & browser control", click "Clear" next to "Clear Microsoft Store cache" (if available).
- Check group policy (Pro/Enterprise only) – If you're on a managed PC, an administrator may have set a policy that blocks certain apps. Contact your IT department.
- Use the command line to launch directly – Press Win+R, type
powershell.exe, and press Enter. If it opens without warning, the issue is with a shortcut, not the executable itself.
Frequently Asked Questions
Why does Windows say PowerShell is not a Microsoft verified app?
This happens when the executable's digital signature is missing, invalid, or not recognized by SmartScreen. It can occur with portable copies, old versions, or after a corrupted update.
Is it safe to click "Run anyway"?
Only if you are 100% sure the file came from an official Microsoft source (like the Microsoft Store or the official GitHub repository). If you downloaded it from a third-party site, do not run it – delete it and get the official version.
Will disabling SmartScreen harm my computer?
It reduces protection against unknown apps. It's not recommended to leave it off permanently. Turn it back on after you've resolved the issue.
Can I use Windows PowerShell 5.1 instead of PowerShell 7?
Yes, Windows PowerShell 5.1 is built into Windows and is always verified. You can open it by searching "Windows PowerShell" in the Start menu. It's older but still supported for many tasks.
How do I know if my PowerShell is the official version?
Right-click the .exe file, go to Properties > Digital Signatures, and check that the signer is "Microsoft Corporation". The official version also has a version number like 7.x.x.x.
What if I don't have administrator access?
You can still install the Microsoft Store version without admin rights. For other methods, you'll need to ask an administrator to run the commands or change settings.