Windows 10: Unable to launch Windows PowerShell

Discus and support Unable to launch Windows PowerShell in Windows 10 Software and Apps to solve the problem; Whenever I try to launch Windows PowerShell, either via the dedicated Windows PowerShell app or as an option via the Terminal, I get the following... Discussion in 'Windows 10 Software and Apps' started by emotionless, Jul 9, 2023.

  1. Unable to launch Windows PowerShell


    Whenever I try to launch Windows PowerShell, either via the dedicated Windows PowerShell app or as an option via the Terminal, I get the following error.The shell cannot be started. A failure occurred during initialization: The type initializer for 'System.Management.Automation.LanguagePrimitives' threw an exception. [process exited with code 4294901760 0xffff0000] Nothing that I have tried has worked:Restarting PCInstalling PowerShell 7Turning off and on the PowerShell optional featureMy Windows Version is Windows 11 Version 21H2 OS Build 22000. 1335 and yes I have tried to update Win

    :)
     
    emotionless, Jul 9, 2023
    #1
  2. tjcreek55 Win User

    PowerShell does not launch bash.exe

    All,

    I
    am new and trying to learn.

    My
    issue: When I enter bash.exe in a PowerShell cmd window, my PC does not launch the Ubuntu command. I think Windows Subsystem for Linux (WSL) is not in my $ENVUnable to launch Windows PowerShell :path.

    Troubleshooting
    I have done:

    1. Reading
      on the Internet, I can test my $ENVUnable to launch Windows PowerShell :path by typing the following a PowerShell cmd:

    PS C:\WINDOWS\system32>
    where.exe calc

    C:\Windows\System32\calc.exe

    It returned the follow:

    PS C:\WINDOWS\system32>
    calc

    (And the calculator displayed
    on my PC)

    1. Reading
      on the Internet, I can also test my $ENVUnable to launch Windows PowerShell :path by typing the following a PowerShell cmd:

    PS C:\WINDOWS\system32>
    where.exe wsl

    It returned the follow:

    INFO: Could not find
    files for the given pattern(s).

    Here
    is the output of $ENVUnable to launch Windows PowerShell :path

    PS
    C:\WINDOWS\system32> $ENVUnable to launch Windows PowerShell :path

    C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program
    Files (x86)\Calibre2\;C:\Program Files\PuTTY\;C:\Program Files\Microsoft VS Code\bin;C:\Users\user-lenovo595\AppData\Local\Microsoft\WindowsApps

    Question:

    What
    would you suggest as my next step to fix the issue?

    Thank
    you,
     
    tjcreek55, Jul 9, 2023
    #2
  3. Unable to Launch Games such as Gears 4

    Hi,

    An outdated version of the Windows Store is one of the possible reasons why you are unable to launch any games from Windows Store. To help you resolve this concern, we suggest that you follow the steps below:

    Step 1: Delete Temporary files. This will help delete temporary files that have been stored on your computer.

    • Click Start and click Settings.
    • Select System.
    • Select Storage.
    • Select This PC.
    • Click Temporary files.
    • Choose Temporary files.
    • Click Remove files.

    Step 2: Re-register the Store App and check.

    • Right click on Start button on the desktop and select Command Prompt (Admin).
    • Here, User Account Control window pops up and click on Yes to open Command Prompt with administrator privileges.
    • Type the below command in the Command Prompt: powershell -ExecutionPolicy Unrestricted Add-AppxPackage -DisableDevelopmentMode -Register $Env:SystemRoot\WinStore\AppxManifest.xml

    Kindly update us with the results, so that we can assist you further.
     
    Wilfred Mac, Jul 9, 2023
    #3
  4. Unable to launch Windows PowerShell

    Unable to download apps from Windows Store

    Hi,

    If you are not able to use the store:

    We would suggest you to try the steps from the link

    Settings doesnt launch or launches the store


    or

    Try this workaround

    • Open an Elevated Powershell prompt by pressing the Windows Key, typing Powershell, then pressing Ctrl+Shift+Enter
    • Paste the following command into Powershell and execute it:

      Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
    Hope this information helps.
     
    Ravinath P, Jul 9, 2023
    #4
Thema:

Unable to launch Windows PowerShell

Loading...
  1. Unable to launch Windows PowerShell - Similar Threads - Unable launch PowerShell

  2. Unable to open powershell

    in Windows 10 Gaming
    Unable to open powershell: Whenever i open it it says The shell cannot be started. A failure occurred during initialization: The type initializer for 'System.Management.Automation.LanguagePrimitives' threw an exception. [process exited with code 4294901760 0xffff0000]...
  3. Unable to open powershell

    in Windows 10 Software and Apps
    Unable to open powershell: Whenever i open it it says The shell cannot be started. A failure occurred during initialization: The type initializer for 'System.Management.Automation.LanguagePrimitives' threw an exception. [process exited with code 4294901760 0xffff0000]...
  4. Unable to open powershell

    in Windows 10 BSOD Crashes and Debugging
    Unable to open powershell: Whenever i open it it says The shell cannot be started. A failure occurred during initialization: The type initializer for 'System.Management.Automation.LanguagePrimitives' threw an exception. [process exited with code 4294901760 0xffff0000]...
  5. Unable to launch Windows PowerShell

    in Windows 10 Gaming
    Unable to launch Windows PowerShell: Whenever I try to launch Windows PowerShell, either via the dedicated Windows PowerShell app or as an option via the Terminal, I get the following error.The shell cannot be started. A failure occurred during initialization: The type initializer for...
  6. Windows PowerShell launching every startup

    in Windows 10 Gaming
    Windows PowerShell launching every startup: Hello. This message began to appear several days ago in every startup. It is happening after y clicked on a.exe file that did nothing at first and the antivirus didn't detect as malware, but I'm concerned...
  7. Windows PowerShell launching every startup

    in Windows 10 Software and Apps
    Windows PowerShell launching every startup: Hello. This message began to appear several days ago in every startup. It is happening after y clicked on a.exe file that did nothing at first and the antivirus didn't detect as malware, but I'm concerned...
  8. Windows PowerShell launching every startup

    in AntiVirus, Firewalls and System Security
    Windows PowerShell launching every startup: Hello. This message began to appear several days ago in every startup. It is happening after y clicked on a.exe file that did nothing at first and the antivirus didn't detect as malware, but I'm concerned...
  9. Unable to start powershell

    in Windows 10 Customization
    Unable to start powershell: I am on my hp laptop and when I open powershell it says error 0x0000142: unable to start powershell. I have executed sfc/ SCANNOW but nothing solved it. How can I open powershell now?...
  10. PowerShell does not launch bash.exe

    in Windows 10 Software and Apps
    PowerShell does not launch bash.exe: All, I am new and trying to learn. My issue: When I enter bash.exe in a PowerShell cmd window, my PC does not launch the Ubuntu command. I think Windows Subsystem for Linux WSL is not in my $ENV:Path. Troubleshooting I have done: Reading on the Internet, I can test...