PowerShell is a useful program that can automatically do many different tasks. PowerShell is used a lot by network and system administrators to do important tasks successfully. But if you just updated to Windows 11, the Fix Windows PowerShell Keeps Popping Up reason, which can be annoying.
But it’s much harder to deal with a problem when you don’t know what’s causing it. In some cases, the PowerShell window may keep popping up when the machine starts up. Your operating system could close the PowerShell command prompt after a few minutes.
On the other hand, it only makes every startup feel bad. In the field of computers, the phrase “popping up” is used a lot. This problem can also happen with PowerShell in some cases. PowerShell, a command-line program, also has trouble with windows popping up when it first starts up.
Fix: Windows PowerShell Keeps Popping Up
Boot in Clean Mode
- Launch the Run box by pressing the Windows + R keys simultaneously. Type in
msconfigand press Enter.
- In the “General” tab, select “Selective Startup” and uncheck “Load startup items.”
- Head to the “Services” tab and click “Hide all Microsoft services.” Select “Disable all” at the bottom of the window and click “OK.”
- Click the “Startup” tab and choose “Open Task Manager.”
- On the “Startup” tab of Task Manager, right-click each item and “Disable” it.
- 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.
Hardware and Software Conflicts
- Update your drivers: Outdated or incorrect drivers can cause conflicts with PowerShell and other software. You can try updating your drivers to the latest version to see if this resolves the issue.
- Check for software or Windows updates: Software updates can often resolve conflicts by fixing bugs or compatibility issues. You can check for updates for your operating system and any other software that you are using to see if there are any available updates that may help resolve the issue.
- Restart your computer: Sometimes, restarting your computer can help resolve conflicts by resetting your system and clearing any temporary files or data that may be causing problems.
- Use the System File Checker tool: The System File Checker (SFC) tool is a built-in utility that can scan your system for corrupted or missing files and repair them. You can use the sfc /scannow command in Command Prompt (CMD) to try and fix any problems that may be causing conflicts with PowerShell. You’ll need to run it as system administrator.
- Use the DISM tool: The Deployment Image Servicing and Management (DISM) tool is another built-in utility that can help fix problems with your system. You can use the DISM tool to scan your system for issues and try to repair them.
Run SFC and DISM
- In Windows 11/10, run Command Prompt with admin permissions.
- Type sfc /scannow and press Enter. Then, this tool starts the verification process which may take some time.
- Execute these commands one by one:
- DISM /Online /Cleanup-Image /CheckHealth
- DISM /Online /Cleanup-Image /ScanHealth
- DISM /Online /Cleanup-Image /RestoreHealth
Scan Your PC with Malware Removal Tool
If your computer is infected with viruses or malware, the Windows PowerShell popup may keep appearing when a malicious script is running. So, you can run Microsoft Windows Malicious Software Removal Tool (MSRT) to remove malware from your PC.
- Open the Run window by pressing Win + R.
- Input mrt to the text box and click OK.
- In the following interface, choose Full scan to scan the entire system to keep your computer free from prevalent malware.
Use System Maintenance Troubleshooter
- Launch Control Panel and view all the items by Large icons.
- Click Troubleshooting and choose Run maintenance tasks under System and Security.
- Click Next and this troubleshooter starts detecting the issues. Then, follow the instructions on the screen to finish the troubleshooting.
Restart Your PC in Clean Boot Mode
- Input msconfig to the Run window (press Win + R to get it) and click OK.
- In the System Configuration tab, click Services, check the box of Hide all Microsoft services, and click Disable all.
- In the Startup tab, launch Task Manager and disable all the third-party startup apps.
- Reboot Windows 11/10. If Windows PowerShell won’t pop up in this mode, a certain third-party program is a culprit. Just enable those apps one by one to have a check.
Disable Windows PowerShell Temporarily
- In Windows 11/10, launch Command Prompt as an administrator.
- In the CMD window, type in the command – Dism /online /Disable-Feature /FeatureName:”MicrosoftWindowsPowerShellV2Root” and press Enter.
- Wait for the process to complete and then restart your computer.
Run an Antivirus or Malware Scan
PowerShell could be running on its own because of a bad program or script. This could be a virus, malware, or another security threat that uses PowerShell to do bad things on your computer. If a bad program or script is making PowerShell run automatically, you can fix the problem by doing the following:
- Disconnect your computer from the internet to prevent the malicious program or script from communicating with its server or downloading additional malware.
- Use your security software to scan your computer for malware and remove any threats that are detected. This may involve running a full system scan with your antivirus software, or using a dedicated malware removal tool.
- After removing the malicious program or script, you should restart your computer and run another scan to make sure that the threat has been completely removed.
Run an Advanced Scan on Your Device
- Type Task Manager in the Start Menu search bar and select the Best match.
- Click the File tab and select Run new task.
- Type CMD and then check the Create this task with administrative privileges box.
- Press OK to run an elevated Command Prompt.
- Next, type the following command and press Enter to run the DISM scan:
DISM /Online /Cleanup-Image /ScanHealth
When you’re done running this command, type the following command and press Enter:
DISM /Online /Cleanup-Image /RestoreHealth
Why Does PowerShell Keep Popping Up?
Many Windows PC users have trouble with Windows PowerShell, which shows up on the taskbar from time to time. Users find this problem annoying when they are trying to do something important on their PC and want to get rid of it as soon as possible. Before we talk about how to fix it, let’s look at what makes Windows PowerShell open randomly.
PowerShell is set as the startup application. The first thing that comes to mind about PowerShell is that it is configured to run when the computer starts up. Therefore, the PowerShell prompt will open immediately after the operating system boots.
Malware attacks. Computers and other electronic devices can be damaged when infected with viruses. The appearance of a PowerShell window is another symptom that may be caused by malware.