Windows PowerShell Keeps Popping Up: 7 Ways to Stop It

Corrupt system files are often related to this problem

Reading time icon 6 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team Read more

Key notes

  • Windows PowerShell should only appear when invoked by the user.
  • Corrupt system files and wrong startup settings may cause PowerShell to keep appearing when not initiated.
  • Restarting Windows PowerShell and running SFC & DISM scans can fix the issue.

PowerShell is a powerful tool in Windows PC that helps run commands and carry out tasks in an automated manner. It is usually available only when invoked by running a command or launching the program.

However, users complain that Windows PowerShell keeps popping up when not invoked, and it interrupts the userโ€™s activities. Even more, you can read through our guide on What PowerShell is and how to use itย on Windows PC.

Why does PowerShell keep popping up?

The Windows PowerShell popping up repeatedly on your PC makes it hard to use or work on. The issue can occur for some notable reasons. Some are:

  • Issues with the Startup configuration – You can run into PowerShell repeatedly appearing on your computer if it is set as a startup program. It allows it to launch immediately when the system is booted and runs as an essential component. So, it can cause it to keep appearing even when not prompted.
  • Corrupt system files – The computer can malfunction when you have corrupt system files interfering with the activities of its programs. They can infect the needed components for running PowerShell, causing it to malfunction and appear at will on the computer.
  • Outdated Windows OS – Running an outdated Windows operating system can affect performance. It indicates the system canโ€™t access the needed patches and updates to fix bugs and improve its functionality. So, these bugs can impede the ability of PowerShell.
  • Interference from other programs – Windows PowerShell can malfunction and keep popping up if another program is using its services. It can override the operating behavior of the tool, resulting in PowerShell constantly appearing without being invited.

Fortunately, we have some basic steps prepared to help you fix the issue and get your system running correctly.

What can I do if Windows PowerShell keeps popping up?

Before attempting any advanced troubleshooting steps, we recommend you go through the following:

  • Turn off background apps running on your PC.
  • Temporarily disable antivirus software on your computer.
  • Restart your PC and check if the issue persists.

If you canโ€™t fix the issue, proceed with the troubleshooting steps below:

1. Run the SFC and DISM to repair damaged system files

  1. Left-click the Start button, type Command Prompt, and click the Run as administrator option.
  2. Click Yes on the User Account Control (UAC) prompt.
  3. Type the following and press Enter: sfc /scannow
  4. Type the following commands and press Enter after each: DISM /Online /Cleanup-Image /RestoreHealth
  5. Restart your PC and check if PowerShell continues to appear repeatedly.

Running an SFC scan will detect and repair corrupt system files causing PowerShell to keep popping up. Check how to fix the run as administrator option if itโ€™s not working on your PC.

2. Restart Windows in Safe Mode

  1. Press Windows + I key to open the Settings app.
  2. Click on System and click Recovery
  3. Go to Advanced Startup, then click Restart now.
  4. Windows will automatically restart into the Choose an option window, then click on Troubleshoot.
  5. Click Advanced Options and click on the Startup Settings option.
  6. Press the F4 key to Enable Safe Mode.

Restart windows in Safe Mode will resolve startup issues liable to cause the issues with how Windows PowerShell works and appears.

Read our guide on how to fix the Safe Mode not working on Windows 11.

3. Update Windows OS

  1. Press the Windows + I to open the Windows Settings.
  2. Select the Windows Update and click on Check for Updates. Wait for the Windows update result and click on Install Update if a Windows update is available.

Updating the Windows OS will install patches for fixing bugs affecting your computer. Read about fixing Windows not connecting to update service if the error occurs on your PC.

4. Disable the PowerShell Startup Status on the Task Manager

  1. Press Ctrl + Shift + Esc keys simultaneously to open the Task Manager.
  2. Go to the Startup tab.
  3. Right-click on the Windows PowerShell option and select Disable from the drop-down.
  4. Close the Task Manager and restart your PC to check if PowerShell continues to appear repeatedly.

The above steps will disable PowerShell from the startup menu and prevent it from running when the computer boots.

5. Perform a clean boot

  1. Press Windows + R key to open the Run dialog box, type msconfig, and click OK.
  2. Select the Services tab and check the box for the Hide all Microsoft services option, then click the Disable all button.
  3. Click the Startup tab and open Task Manager.
  4. Click the startup programs, then the Disable button.
  5. Restart your PC and check if the issue persists.

Performing a clean boot can fix background apps actions causing issues with how PowerShell works on your PC.

6. End tasks for background apps via Settings

  1. Press the Windows + I key to open the Settings app.
  2. Select Apps from the left pane and click on Installed apps.
  3. Choose the apps to end the task, then click on the three dots and select Advanced options.
  4. Go to Background app permissions, click the drop-down button, then select Never.
  5. Repeat the steps for all apps you want to restrict background permissions.

Ending tasks for background apps will fix the activities of programs that may prompt PowerShell to appear repeatedly on your computer.

Check ways to turn off background apps in Windows 11 if you have issues using the steps above.

7. Temporarily disable Windows PowerShell

  1. Left-click the Start button, type Command Prompt, and click the Run as administrator option.
  2. Click Yes on the User Account Control (UAC) prompt.
  3. Type the following commands and press Enter: Dism /online /Disable-Feature /FeatureName:"MicrosoftWindowsPowerShellV2Root" 
  4. Wait for the process to complete, and then restart your PC.
  5. Repeat steps 1 & 2, then run the following commands to enable PowerShell: Dism /online /Enable-Feature /FeatureName:"MicrosoftWindowsPowerShellV2Root"

Disabling and reenabling Windows PowerShell helps refresh its process. Check our guide on what to do if Command Prompt keeps crashing on your PC.

Conclusively, our readers may be interested in how to use PowerShell ErrorAction on Windows PC. Also, you can check our guide on how to print Environment Variables in PowerShell.

For further questions or suggestions, use the comments section below.

More about the topics: PowerShell