6 Ways to Fix Windows Powershell Keeps Popping Up

6 Ways To Fix Windows Powershell Keeps Popping Up

Some apps are set to run on startup, making them launch as soon as Windows boots up. But if it’s the Windows Powershell popping up, then you have a problem. As it turns out, this is a known issue affecting a fair share of Windows users. Fortunately, there are ways to fix it, as detailed in this guide.

Tip: you can use Powershell to hide annoying Windows updates. We show you how.

General Fixes

Before applying problem-specific fixes, these general tips could help you solve the problem if it was caused by a virus or a bug in the system.

  • Scan PC with malware removal tool: if you have a third-party antivirus or anti-malware program, you can search the computer for any malicious software. But if you don’t, you can have Windows Defender run a full scan on your computer.
  • Perform Chkdsk, DISM, and SFC scans: Windows has a few valuable utilities to check system files and ensure they are intact and that no corrupted files exist in your system folder. By typing the associated commands, you can run these utilities in the Windows Terminal or PowerShell.
  • Update Windows: go to settings and check for any available updates in the Windows Update tab.
  • Run the System Maintenance troubleshooter: Open the Run window by pressing Win + R, then type in %systemroot%\system32\msdt.exe -id MaintenanceDiagnostic and hit Enter to open the System Maintenance utility.

1. Check Whether a Task or Script Is Running in the Background

Your Windows system relies on PowerShell to launch background processes or authorize applications to access security files. If Windows PowerShell keeps popping up, there is a good chance that your system is running update processes or vital background tasks. You can check whether that’s the case by following these steps:

  1. Right-click on the Start menu and choose “Task Manager.”
Getting to Task Manager from the Quick Menu in Windows.
  1. In the “Processes” tab, click on “CPU” to reorganize the list based on the process CPU usage.
Task Manager with "Processes" tab visible.
  1. Review the list to see which process uses the abnormal amount of CPU. If it’s an unknown process, search the name in Google to see if it’s okay to end the task.
  2. Alternatively, if it’s a process named “wsappx” or any service using too much CPU, it means Windows is updating an app or itself.

Note: if you notice PowerShell in Task Manager, then ending the task would not help, and you should move on to the next fixes.

2. Boot in Clean Mode

Third-party apps are notorious for creating harmful files in your system and taking advantage of Windows PowerShell to make changes in your computer. The only way to identify these apps and cut access to your PC is to boot it in Clean Mode.

  1. Launch the Run box by pressing the Windows + R keys simultaneously. Type in msconfig and press Enter.
Typing "msconfig" in Run window.
  1. In the “General” tab, select “Selective Startup” and uncheck “Load startup items.”
"General" tab options in System Configuration window.
  1. Head to the “Services” tab and click “Hide all Microsoft services.” Select “Disable all” at the bottom of the window and click “OK.”
"Services" view in System Configuration window.
  1. Click the “Startup” tab and choose “Open Task Manager.”
"Open Task Manager" option via System Configuration.
  1. On the “Startup” tab of Task Manager, right-click each item and “Disable” it.
  2. Finally, click “OK” and restart your PC. If your PC boots up without issue, this means that a recently installed app was to blame, and you should uninstall it to solve the problem. If not, proceed to the next method.

Good to know: learn how to run a Java program in Command Prompt.

3. Disable Windows Powershell Temporarily

You can use the Command Prompt to disable Windows PowerShell temporarily. If you use PowerShell to disable itself, it may end up crashing and causing issues. Note that this method works on Windows 10 1803 and requires admin privileges.

  1. Click the Windows Search button and type “Command Prompt.” Right-click on the best result and choose “Run as administrator.”
Typing "Command Prompt" in Windows Search.
  1. Type the following commands and press Enter after each one. Remember to re-enable the PowerShell later. To disable it, type:
Dism /online /Disable-Feature /FeatureName: MicrosoftWindowsPowerShellV2Root
  1. To re-enable it, type:
Dism /online /Enable-Feature /FeatureName: MicrosoftWindowsPowerShellV2Root

4. Delete Powershell Shortcut from Startup Folder

The Startup folder contains all the Startup application shortcuts so that Windows can run them as soon as it boots up. The Windows “PowerShell.exe” shortcut can also be found in this folder, as, most of the time, this app is set to launch on startup. Thus, if Windows PowerShell keeps popping up, you should locate and delete this app’s shortcut from the Startup folder.

  1. Launch the Run box by pressing the Windows + R keys. Type in %ProgramData%\Microsoft\Windows\Start Menu\Programs\StartUp and hit Enter.
Typing command in Run window.
  1. Find and right-click on the PowerShell shortcut and choose “Delete.” If the list is empty or you can’t find PowerShell, proceed to the next method.

Tip: check out all of the options available to open Task Manager in Windows.

5. Delete the Powershell Startup Status on the Task Manager

You can also disable the PowerShell startup status via Task Manager to prevent it from launching on startup.

  1. Right-click on the Start menu and choose “Task Manager.”
Getting to Task Manager from the Quick Menu in Windows.
  1. Click on the “Start-up” tab and find “Windows PowerShell.” Right-click on it and select “Disable.”
Disabling start-up programs from Task Manager.

6. Use the Microsoft Autoruns Program

Microsoft offers a powerful tool to stop apps that are set to run automatically on your Windows.

  1. Download Autoruns.
  2. Open the app, and In the “Logon” tab, locate “PowerShell” and uncheck its box.
"Logon" tab in Autoruns app for Windows.

Tip: Is Microsoft Store not functioning as it should? We show you how to fix it.

Frequently Asked Questions

Is it OK to disable PowerShell indefinitely?

Although we don’t encourage you to do so, sometimes your only choice is to disable this console indefinitely. Windows should be fine without PowerShell since it can use Command Prompt, but PowerShell is an upgraded version of Command Prompt that can do much more than cmd.

What can PowerShell do that Command Prompt can't?

While PowerShell is built on the .NET platform, it can communicate with Windows objects even at the core level, unlike Command Prompt, which can’t.

Can I update Windows PowerShell?

Windows updates system-related apps with each Windows update, so there is no need to update PowerShell separately. Still, you can update PowerShell manually without waiting for Windows to do it for you with the next update. To get PowerShell updates from the Microsoft Store app, search Windows PowerShell in the Microsoft Store Windows application, and the first app displayed is the one you are looking for.

Image credit: Pexels. All screenshots by Farhad Pashaei.

Is this post useful?
Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Farhad Pashaei

As a technophile, Farhad has spent the last decade getting hands-on experience with a variety of electronic devices, including smartphones, laptops, accessories, wearables, printers, and so on. When he isn’t writing, you can bet he’s devouring information on products making their market foray, demonstrating his unquenchable thirst for technology.