PowerShell Error

Anonymous
2021-04-27T19:53:31+00:00

I have been encountering this issue for the past week but I am not sure how long I have had it could be up to about 3-4 months I am wondering what I can do to Fix this error or repair PowerShell...

Windows PowerShell

Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

One or more errors occurred.

One or more errors occurred.

Cannot load PSReadline module.  Console is running without PSReadline.

An error occurred while creating the pipeline.

PS>

Windows for home | Windows 10 | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Neil D 30,165 Reputation points Volunteer Moderator
    2021-04-27T20:08:45+00:00

    Use the command Prompt, type cmd in Search and right click the result, select  to run as administrator. Use method 1 then Method 2.

    Method 1: 

    Run DISM tool and check the issue. Please follow these steps:

    a. Press Windows + X keys and click command prompt (admin). Or PowerShell (Admin).

    b. Type the following command in command prompt and press Enter.

    DISM.exe /Online /Cleanup-image /Scanhealth

    after the scan is complete type the following and press Enter

    DISM.exe /Online /Cleanup-image /Restorehealth

    then use method 2.

    Method 2: 

    System file checker is a utility in Windows that allows users to scan for corruptions in Windows system files and restore corrupted files.

    Run system file checker (SFC) and see if it helps. Please follow these steps:

    a. Press Windows + X keys and click command prompt (admin). Or PowerShell (Admin).

    b. Type the following command in command prompt and press Enter.

    sfc /scannow

    After completing the scans restart using Start > Power > Restart.

    3 people found this answer helpful.
    0 comments No comments
  2. paulr0511 39,555 Reputation points Independent Advisor
    2021-04-27T22:56:38+00:00

    Good day Ezra! I am Independent Advisor Paul R. and also a Microsoft/Windows user like you and I am glad to be able to provide assistance to you today. I understand that you are having an issue with regards to PowerShell. Kindly check and try the below methods and see how it goes.

    Method 1:

    • Type in cmd from the search bar on the taskbar and right click on Command Prompt and click on Run as administrator
    • Type in the commands below

    sfc /scannow

    DISM /Online /Cleanup-Image /CheckHealth

    DISM /Online /Cleanup-Image /ScanHealth

    DISM /Online /Cleanup-Image /RestoreHealth

    • Reboot your PC afterwards and check again PowerShell

    Method 2:

    • Press Windows key + X and click on Run
    • Type in optionalfeatures.exe and hit Enter or press OK
    • Look for Windows PowerShell
    • Uncheck or remove the fill from the box and then apply it and then restart your PC
    • Go back again to optional features and then check or fill the box for Windows PowerShell and then try it again
    • Another method that you can try is the following
    • Click on Start
    • Click on Settings
    • Type in optional features from the search bar and click on Manage optional features
    • Look for Windows PowerShell Integrated Scripting Environment and then click on it and click on Uninstall and then restart your PC
    • Go back to Setting and then type in optional features from the search bar and click on Manage optional features
    • Click on Add a feature and look for Windows PowerShell and install it from there and then check and try it again

    Regards,

    Paul R.

    3 people found this answer helpful.
    0 comments No comments