Why PowerShell Opens on Start-up and How to Stop it

Photo of author

By Victor Ashiedu

Published

Have you been experiencing the annoying situation where PowerShell opens when you sign in to your Windows PC? I’ll explain why this happens and how to stop it

Overview

The reason PowerShell opens when you log in to your computer is likely because you mistakenly added the Windows PowerShell shortcut to the Start-up folder.

Why PowerShell Open on Startup and How to Stop It

If you also look at the Start-up tab of Task Manager, Windows PowerShell will be listed and the status displayed as Enabled.

Moreover, there may be other reasons PowerShell may open on startup. In the next section, I have offered additional reasons this may be happening and options to fix the problem.

To stop this unpleasant experience, try these suggestions in order.

Option 1: Disable PowerShell Startup Status From Task Manager

  1. Right-click an empty spot on the taskbar. Then, from the displayed options, click Task Manager.
How to Stop PowerShell Opening at Startup
  1. When Task Manager opens, click the Start-up tab.
How to Stop PowerShell Opening at Startup
  1. Finally, on the task manager, Start-up tab, right-click Windows PowerShell and select Disable.

Option 2: Delete PowerShell Shortcut From the Startup Folder

As I mentioned in the introduction of this Itechguide, the reason PowerShell opens on Startup is if you mistakenly copied the shortcut to the start-up folder. To stop it, use the steps below to delete the shortcut.

  1. Enter %ProgramData%\Microsoft\Windows\Start Menu\Programs\StartUp in the Windows 10 search. Then, click the folder.
How to Stop PowerShell Opening at Startup
  1. When the start-up folder opens, delete the Windows PowerShell shortcut.

Once you delete the shortcut from the Start-up folder, it will no longer be available in Task Manager Start-up tab.

Option 3: Troublsheoot with the Autoruns Program

There is a tiny program on Microsoft’s site called Autoruns for Windows v13.100. This program lists all applications configured to run during computer bootup or login.

If PowerShell is configured to open on startup somewhere else, this program should be able to detect it.

Follow the steps below to install and use Autoruns:

  1. Open Autoruns for Windows v13.100 link.
  2. Then, just before the Introduction section, click Download Autoruns and Autorunsc. Clicking the link downloads a zip file.
  3. Open the location of the downloaded zip file. If you downloaded the zip file with Google Chrome, on the bottom left of your browser, click the arrow beside the file. Then, select Show in folder.
  4. When the location of the zip file opens, right-click it. Then, select Extract All
  5. On the first screen, click Extract. The file will unzip and automatically open a folder called Autoruns.
In the next steps, you will run the program and it may be able to show you if PowerShell is set up to open on startup somewhere else on your computer. The beauty of this tiny program is that it also checks the Windows registry!
  1. To run the program, click Autoruns and wait for it to load auto-run entries.
  2. Finally, enter powershell in the Filter field. If PowerShell is configured to auto-open on startup, it will be displayed. To disable the auto-start entry, uncheck the checkbox beside it.
  3. Alternatively, if nothing is displayed, it means that PowerShell is not set up to auto-start anywhere in the registry. In this instance, you can try the next 2 recommendations…

Option 4: Scan Your Computer With CCleaner

Since there may be other unknown reasons PowerShell may be opening on startup, the next step is to run a program called CCleaner.

CCleaner finds problems on your computer and recommends fixes. If your computer is acting weird, like opening PowerShell randomly, running CCleaner may help fix it.

The first step is to open the CCleaner download page. Then, scroll down to the free options and click Download. Once the program is downloaded, install it.

Warning!
When installing the program, please select Custom installation and make sure not to agree to install other programs they will suggest. Otherwise, you will end up installing a bunch of unwanted programs. Do not panic though, CCleaner is a very safe program. We use it on www.itechguides.com and it is safe!

Once you have installed CCleaner, follow the steps below to use it to scan your computer…

  1. Enter CCleaner in the Windows 10 search and open the application from the search result.
  2. On the first screen, CCleaner will recommend that you perform a PC health check. Click Skip to start health check.
The next step will close your browser. You may want to open this guide on a different computer. If you do not have another computer, you may open the guide on your phone. However, you can decide to skip the browser cleanup as it is nothing to do with PowerShell opening at startup – see the next step for details.
  1. If you have any browsers open, CCleaner will request your permission to close them. If you are happy to close your browsers, click Close & Analyze.

    However, if you do not want to close your browser, uncheck it from the list. Then, click Skip All…

Now wait for CCleaner to scan your computer for errors.

  1. When CCleaner returns its recommendations, click Make it better. Then, wait for the application to fix the problems it found on your computer. See the second screenshot below…
When this stage is completed, you need to perform registry cleanup. See step 5 below.
  1. To perform registry cleanup, on the left pane of the application, click Registry.
The following steps may break your computer. Proceed with caution.
If your computer breaks, you will need this to fix it!
  1. Click Fix All Selected Issues. When it finishes, click Close.
  2. Finally, restart your computer. When it starts, check if PowerShell still opens on startup. If it still opens on startup, try the last 2 recommendations below…

Option 5: Scan Your Computer with a Malware Removal Tool

If after applying the last 2 recommended fixes, if PowerShell still opens on startup, it is possible that your PC is infected with malware.

We have a guide that explains How to Remove Malware from Windows 10 (link opens in a new browser tab – explains how to remove malware from your Windows 10 PC).

Option 6: Uninstall Windows PowerShell Completely

If you have tried all the 5 fixes above and and the problem is not resolved, you may want to consider uninstalling it. After all, if you are not a Systems administrator, you may not need PowerShell.

To uninstall PowerShell, open Command Prompt as administrator. Then, enter the command below into the command prompt and press enter key on your keyboard.

Dism /online /Disable-Feature /FeatureName:"MicrosoftWindowsPowerShellV2Root"

When the command completes, PowerShell will request to restart your computer. Type Y in the command prompt to restart the computer and remove PowerShell.

After removing Windows PowerShell 5.1, if you want to reinstall the app, download and install Windows Management Framework 5.1.

Frequently Asked Questions

1. Is PowerShell a virus?

No, PowerShell is not a virus. It is a legitimate Windows tool. However, if your computer is infected with malware or a virus, the malware may make PowerShell act in unexpected ways – like PowerShell opening on Startup. If this happens, install a malware removal tool and use it to scan your computer.

2. How do I turn off PowerShell?

Open Command Prompt as administrator. Then, enter the command below and press the enter key on your keyboard.

Dism /online /Disable-Feature /FeatureName:”MicrosoftWindowsPowerShellV2Root”

However, if you decide to put PowerShell back, use the command below:

Dism /online /Enable-Feature /FeatureName:”MicrosoftWindowsPowerShellV2Root”

3. Is it safe to disable Windows PowerShell?

Yes, it is completely safe to disable Windows PowerShell by uninstalling it. To uninstall powershell, use the steps in question 2.

4. Why does PowerShell keep popping up?

There are multiple reasons why Powershell may keep popping up:
1. If you mistakenly added Powershell to the startup folder
2. Your computer may be infected by malware or virus.
3. Your computer may be infected by malware or a virus
4. Finally, a registry key may be corrupt or an entry may have been entered into the registry that causes PowerShell to open on startup

Conclusion

I hope I successfully explained why PowerShell opens on Startup and how to stop it! I also hope you found it helpful.

If you found it helpful, kindly vote Yes to the “Was this past Helpful” question below.

However, if PowerShell still opens unexpectedly when you sign in, after trying all the fixes, kindly click No to the “Was this past Helpful” question below and provide us as much details as possible.

Finally, for more PowerShell tech Itechguides, visit our PowerShell & CMD Explained page. You may also find our Work from Home page very helpful.

About the Author

Photo of author

Victor Ashiedu

Victor is the founder of InfoPress Media, publishers of Ilifeguides and Itechguides. With 20+ years of experience in IT infrastructure, his expertise spans Windows, Linux, and DevOps. Explore his contributions on Itechguides.com for insightful how-to guides and product reviews.

Related Articles

Get in Touch

We're committed to writing accurate content that informs and educates. To learn more, read our Content Writing Policy, Content Review Policy, Anti-plagiarism Policy, and About Us.

However, if this content does not meet your expectations, kindly reach out to us through one of the following means:

  1. Respond to "Was this page helpful?" above
  2. Leave a comment with the "Leave a Comment" form below
  3. Email us at [email protected] or via the Contact Us page.

8 thoughts on “Why PowerShell Opens on Start-up and How to Stop it”

  1. I recently had this issue.

    I deleted some recently installed apps. One of them was a web browser called BRAVE. if you have this installed, try uninstalling it and restart.

    Reply
  2. Hello,

    Windows Powershell is Disabled in Task Manager – Startup and it still loading when I turn my Computer on.

    Do you have an information or suggestions on how to Stop it?

    Thank you,
    Mystara

    Reply

Leave a comment