Windows 10: Powershell closes immediatly suddenly

Discus and support Powershell closes immediatly suddenly in Windows 10 Gaming to solve the problem; Out of nowhere. Everytime i open powershell it errors with this:Preinstalled powershell:windows powershell terminated with the following error: the... Discussion in 'Windows 10 Gaming' started by violentwhy, Jan 31, 2025.

  1. Powershell closes immediatly suddenly


    Out of nowhere. Everytime i open powershell it errors with thisPowershell closes immediatly suddenly :preinstalled powershell:windows powershell terminated with the following error: the type initializer for 'system.management.automation.runspaces.initialsessionstate' threw an exception. [process exited with code 4294901760 0xffff0000] you can now close this terminal with ctrl+d, or press enter to restart.Powershell 7Powershell closes immediatly suddenly :process terminated. The type initializer for 'System.Management.Automation.Runspaces.InitialSessionState' threw an exception. at System.Environment.FailFastSystem.Runtime.CompilerServices.StackCrawlMarkHandle, S

    :)
     
    violentwhy, Jan 31, 2025
    #1

  2. Start Menu opens and closes suddenly

    Hi,

    Thank you for posting your query on Microsoft Community.

    I suggest you to follow the steps provided below to make your start menu work and check if it helps.

    • Open the Task manager. Here’s a tip: Press CTRL+Shift+ESC.
    • Click File > Run New Task
    • Make sure you have a check mark beside “Create this task with administrative privileges”
    • Type Powershell
    • Type the following 2 commands in the Powershell prompt:
      • $manifest = (Get-AppxPackage Microsoft.WindowsStore).InstallLocation + '\AppxManifest.xml' ; Add-AppxPackage -DisableDevelopmentMode -Register $manifestand press Enter.
      • Get-AppXPackage -AllUsers |Where-Object {$_.InstallLocation -like "*SystemApps*"}and press Enter.
    • Close the Powershell window.
    • Reboot.

    Hope it helps. Do let us know if your issue is resolved. For any further queries, feel free to contact us.

    Thank you.
     
    Syed Md Bilal, Jan 31, 2025
    #2
  3. IE11 immediatly reopens itself whenever I close it out.

    We suggest that you follow these steps to clear the Windows Store cache:

    • Press the Windows key+R keys to open the Run dialog.
    • Type WSReset.exe, and click on OK.
    • The Windows Store and a command prompt will now open without any message. The command prompt will automatically close when the Store cache has been reset.
    Let us know how it goes.
     
    Nathaniel Mon, Jan 31, 2025
    #3
  4. Powershell closes immediatly suddenly

    PowerShell windows suddenly opens and closes with High RAM usage in the background.

    After around an hour from starting my laptop suddenly an empty PowerShell window opens and suddenly closes, opening task manager shows around 2 GB of RAM, I close it myself but after each restart this problem is still appearing which is really annoying. Is there any solution of this?
     
    Nikolay Motuzenko, Jan 31, 2025
    #4
Thema:

Powershell closes immediatly suddenly

Loading...
  1. Powershell closes immediatly suddenly - Similar Threads - Powershell closes immediatly

  2. Powershell closes immediatly suddenly

    in Windows 10 Software and Apps
    Powershell closes immediatly suddenly: Out of nowhere. Everytime i open powershell it errors with this:Preinstalled powershell:windows powershell terminated with the following error: the type initializer for 'system.management.automation.runspaces.initialsessionstate' threw an exception. [process exited with code...
  3. Roblox immediatly closes each time I open it

    in Windows 10 Gaming
    Roblox immediatly closes each time I open it: Whenever I try to run roblox It immediately closes. I try to uninstall it reinstall it clear the cache, running it as administrator in any combination and nothing has worked. i need someone to help me to understand what is going on and please tell me how to fix it....
  4. Roblox immediatly closes each time I open it

    in Windows 10 Software and Apps
    Roblox immediatly closes each time I open it: Whenever I try to run roblox It immediately closes. I try to uninstall it reinstall it clear the cache, running it as administrator in any combination and nothing has worked. i need someone to help me to understand what is going on and please tell me how to fix it....
  5. Command Line opens and immediatly closes after.

    in Windows 10 Gaming
    Command Line opens and immediatly closes after.: Hello. Every once in a while, a cmd tab will open, tab me out of my program, and close.I don't know what to try. no text displays in the tab. https://answers.microsoft.com/en-us/windows/forum/all/command-line-opens-and-immediatly-closes-after/b350ad81-4846-46c6-83f6-98fe0f231862
  6. Command Line opens and immediatly closes after.

    in Windows 10 Software and Apps
    Command Line opens and immediatly closes after.: Hello. Every once in a while, a cmd tab will open, tab me out of my program, and close.I don't know what to try. no text displays in the tab. https://answers.microsoft.com/en-us/windows/forum/all/command-line-opens-and-immediatly-closes-after/b350ad81-4846-46c6-83f6-98fe0f231862
  7. my apps open and then close immediatly

    in Windows 10 Gaming
    my apps open and then close immediatly: Every time I try and open Epic Games, Spotify, Discord Brave browser etc... it opens but for around 10 seconds and then it closes leaving no trace. My friend did this and won't tell my how to undo it. I'm assuming its firewall but I'm not sure how that works. I don't know...
  8. my apps open and then close immediatly

    in Windows 10 Software and Apps
    my apps open and then close immediatly: Every time I try and open Epic Games, Spotify, Discord Brave browser etc... it opens but for around 10 seconds and then it closes leaving no trace. My friend did this and won't tell my how to undo it. I'm assuming its firewall but I'm not sure how that works. I don't know...
  9. my apps open and then close immediatly

    in Windows 10 BSOD Crashes and Debugging
    my apps open and then close immediatly: Every time I try and open Epic Games, Spotify, Discord Brave browser etc... it opens but for around 10 seconds and then it closes leaving no trace. My friend did this and won't tell my how to undo it. I'm assuming its firewall but I'm not sure how that works. I don't know...
  10. Why does Cortana open and then close again immediatly?

    in Cortana
    Why does Cortana open and then close again immediatly?: Whan I click on the Cortana 'circular' botton next to the type here to searchbutton, Cortana opens making the usual sound but then closes again immediately; Making it impossible for me to use Cortana. How do I prevent this? Many thanks!...