You right-click the Start button and choose Windows PowerShell, or search for it, but nothing happens. Sometimes a blue window flashes and closes instantly, or an error says the program cannot be found. When Windows 10 PowerShell won’t open, a damaged PAGODA 127 profile script, a policy, or missing system files are usually stopping it.
PowerShell runs a profile script at start-up if one exists. A script with an error, or one that calls exit, can close the window immediately. Antivirus tools sometimes block PowerShell because malware abuses it, and administrators may disable it with policies.
If the PowerShell executable or its components are damaged, it may not launch at all.
Starting it without the profile, then repairing what is broken, usually restores it.
What Might Be Causing It
PowerShell fails to open for these reasons:
- A profile script contains errors or closes the window.
- Security software or a policy blocks powershell.exe.
- PowerShell system files are damaged.
- The Start menu shortcut points to the wrong location.
If Command Prompt works but PowerShell does not, the problem is specific to PowerShell rather than the whole system.
Terminal or console customisation tools can also break PowerShell’s window, especially if they change default fonts or colours.
First Steps to Try
Start PowerShell without the profile.
- Press Windows + R, type powershell -NoProfile, and press Enter.
- If it opens, type $PROFILE and press Enter to see the profile script path.
- Open that file in Notepad and fix or comment out recent changes, or rename the file to disable it.
- Close and open PowerShell normally.
- Try C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe directly if shortcuts fail.
If the Problem Continues
Check blocks and repair files.
- Check Windows Security’s Protection history and third-party antivirus logs for blocked PowerShell activity.
- On Pro editions, check gpedit.msc under User Configuration > Administrative Templates > System for “Don’t run specified Windows applications” listing powershell.exe.
- Repair PowerShell components with sfc /scannow and DISM /Online /Cleanup-Image /RestoreHealth from an elevated Command Prompt.
- Open any privacy or hardening tool you installed and check whether it disabled PowerShell; restore it from that tool’s settings.
- Install the newer PowerShell 7 from Microsoft as an alternative if needed.
Protect Your Data First
Do not run scripts from unknown sources to “fix” PowerShell. On work PCs, PowerShell may be restricted on purpose, so ask IT before changing policies.
The Bottom Line
PowerShell usually fails to open because of a faulty profile script, a block, or damaged files. Start it with -NoProfile, fix or rename the profile, check security blocks and policies, and repair system files.