Many users have reported issues with Windows PowerShell stopping working or not opening at all. One of the most common reasons for seeing the PowerShell has stopped working message is that there is a hidden virus on your computer. This in turn will slow down your system and other processes on the system will stop functioning. The error message does not provide any information about the cause of this problem, making it difficult to resolve.
If you are annoyed by PowerShell not running or opening issues on your PC, then this article is for you. In this article, we have discussed some of the solutions you can use to fix this error. Fix 1 – Disabling and Re-enabling Windows PowerShell1. Use theCtrl Shift Es c key combination to open the task Manager.
2. Find thePowerShell entry in the list of currently running processes.
3. SelectPowerShell and click the End Task button to end the running process before continuing with the next steps.
4. Press theWindows and R keys to open the Run dialog box.
5. Typeoptionalfeatures and press Enter to open Windows Features to turn Windows features on or off.
6. Scroll down in the list and findWindows PowerShell.
7.Uncheck the box next to Windows PowerShell and click OK.
#8.Restart the system after applying the requested changes.
9. Repeat the above steps, but nowcheck the box next to Windows PowerShell in step 7 to enable it.
#10. Try opening PowerShell to check if the issue is resolved.
Fix 2 – Run a full system antivirus scan1. First, boot your system into Safe Mode with Networking. 2. Use anyantivirus software
and run a full system scan.3. If there is any malware attack, the scan will automatically remove the virus from your system.
4. Check if this resolves the PowerShell issue. Fix 3 – Perform an SFC Scan1. PressS and type Command Prompt## in the Windows search box #. 2.Right-click Command Prompt
in the search results and selectRun as administrator. 3. Type the following command and
press Enter.sfc /scannow4. Wait for the scanning process to complete and fix any issues if present.
5.
Restartyour computer.
Check if the PowerShell issue has been resolved.Fix 4 – Perform a clean boot
1. PressWindows R
to launch the2. Type msconfig and press Enter
to open thesystem configuration. #3. Go to the
Generaltab.
4.Uncheck the Load startup items option under
Selective startup. 5. Select the
Servicestab.
6.Check the Hide
All Microsoft Services option. 7. Then, click Disable All.
8. Go to the
Startuptab.
9. Click the link here to open the Task Manager.
10. Disable all startup programs in Task Manager at once. Right-click on the program and select the Disable option.
11.Saveall these changes and close the open window.
12.Restart your PC and check if PowerShell is open without any errors.
The above is the detailed content of Fix: PowerShell cannot be opened or PowerShell has stopped working in Windows 11/10. For more information, please follow other related articles on the PHP Chinese website!