Windows 10: PowerShell closes immediately upon startup, even when running ISE or as an Admin.

Discus and support PowerShell closes immediately upon startup, even when running ISE or as an Admin. in Windows 10 Gaming to solve the problem; I've tried many many things to get Powershell to work, such as:Turning PowerShell on and off in optional features and restarting.System... Discussion in 'Windows 10 Gaming' started by MircoFox, Jul 6, 2023.

  1. MircoFox Win User

    PowerShell closes immediately upon startup, even when running ISE or as an Admin.


    I've tried many many things to get Powershell to work, such as:Turning PowerShell on and off in optional features and restarting.System maintenance.powershell -noexitpowershell -noprofileDISM.exe /Online /Cleanup-image /Restorehealth followed by sfc.exe /scannow.Removing anything I have downloaded such as antivirus apps, etc. that might potentially cause a problem.Even after trying all of these methods I am still met with this exact same error message:Windows PowerShell terminated with the following error: The type initializer for 'System.Management.Automation.Runspaces.InitialSessionState' t

    :)
     
    MircoFox, Jul 6, 2023
    #1

  2. Powershell ISE issue

    Unable to open PowerShell ISE x64 in admin mode nor in user login mode.

    As PowerShell ISE x32 bit is working fine.

    Kindly suggest.
     
    Sudarshan Bhandarkar, Jul 6, 2023
    #2
  3. Anwille Win User
    Powershell ISE issue

    Try these steps instead:

    1. You can right-click on "Start" --> "Windows PowerShell Module" or "Windows PowerShell ISE" by going to "Start" --> "Administrative Tools" --> "Windows PowerShell Module" or "Windows PowerShell ISE". Select "Run As administrator". Anything you run in that
    window will be as "Administrator".
     
    Anwille, Jul 6, 2023
    #3
  4. bentek Win User

    PowerShell closes immediately upon startup, even when running ISE or as an Admin.

    Always Run PowerShell ISE As Admin

    Here are 2 different options you can use to start ISE as admin:

    1. You can create/edit a shortcut to the powershell_ise.exe executable file and edit the properties for that shortcut to Run as Administrator.


    PowerShell closes immediately upon startup, even when running ISE or as an Admin. nFeTa.jpg


    1. You can start PowerShell ISE as admin by Start-Process powershell_ise -verb RunAs.
     
    bentek, Jul 6, 2023
    #4
Thema:

PowerShell closes immediately upon startup, even when running ISE or as an Admin.

Loading...
  1. PowerShell closes immediately upon startup, even when running ISE or as an Admin. - Similar Threads - PowerShell closes immediately

  2. When I Close PowerShell ISE it reopens itself

    in Windows 10 Gaming
    When I Close PowerShell ISE it reopens itself: When I close PowerShell ISE it reopens itself multiple times. This started several months ago and it was sporadically, then it started being constant each time a month ago now it opens 2 new sessions every time I close ISE....
  3. When I Close PowerShell ISE it reopens itself

    in Windows 10 Software and Apps
    When I Close PowerShell ISE it reopens itself: When I close PowerShell ISE it reopens itself multiple times. This started several months ago and it was sporadically, then it started being constant each time a month ago now it opens 2 new sessions every time I close ISE....
  4. PowerShell closes immediately upon startup, even when running ISE or as an Admin.

    in Windows 10 Software and Apps
    PowerShell closes immediately upon startup, even when running ISE or as an Admin.: I've tried many many things to get Powershell to work, such as:Turning PowerShell on and off in optional features and restarting.System maintenance.powershell -noexitpowershell -noprofileDISM.exe /Online /Cleanup-image /Restorehealth followed by sfc.exe /scannow.Removing...
  5. PowerShell closes immediately upon startup, even when running ISE or as an Admin.

    in Windows 10 BSOD Crashes and Debugging
    PowerShell closes immediately upon startup, even when running ISE or as an Admin.: I've tried many many things to get Powershell to work, such as:Turning PowerShell on and off in optional features and restarting.System maintenance.powershell -noexitpowershell -noprofileDISM.exe /Online /Cleanup-image /Restorehealth followed by sfc.exe /scannow.Removing...
  6. Why does my PowerShell Closes immediately after selecting Run with PowerShell

    in Windows 10 Gaming
    Why does my PowerShell Closes immediately after selecting Run with PowerShell: I want to run a file using PowerShell but after after selecting Run with PowerShell. PowerShell closes immediately after launching. I couldn't capture the error message....
  7. No sound on MSI gaming laptop, also Powershell ISE runs on launch, and immediately closes

    in Windows 10 Ask Insider
    No sound on MSI gaming laptop, also Powershell ISE runs on launch, and immediately closes: Hi, I have an issue where the sound on my laptop does not work. This includes the speakers and any headphones that I plug in. I have checked inputs, muting, volume and the sound control panel. Windows detected an issue in the diagnostic and told me to restart my computer, but...
  8. Powershell Closing Immediately

    in Windows 10 BSOD Crashes and Debugging
    Powershell Closing Immediately: I've looked all of the the internet and I cannot find any information that applies to this situation. Powershell closes immediately upon starting. When I run it in Command Prompt I get the following: Windows PowerShell terminated with the following error: Unable to...
  9. PowerShell closes immediately

    in Windows 10 BSOD Crashes and Debugging
    PowerShell closes immediately: I am simply trying to open PowerShell and the application closes instantly. This happens when I try opening it as an Admin. I tried input command 'powershell /' on command prompt in admin mode. it gives me an error: The shell cannot be started. A failure occurred during...
  10. PowerShell ISE Focus

    in Windows 10 Customization
    PowerShell ISE Focus: When running portions of a script in PowerShell ISE, it would be nice if the focus didn't switch to the immediate window below. Now I have to use some form of Ctrl+Tab (or my mouse) to get back to the script pane to test the next line of my script as I'm building my script...