Search code examples
powershellcrashrunspace

Error launching PowerShell - Cannot perform operation because object "runspace" has already been disposed


When attempting to launch powershell, I get the following message:

The shell cannot be started. A failure occurred during initialization: Cannot perform operation because object "runspace" has already been disposed. Object name: 'runspace'.

I can't seem to find any solutions via the google. Does anyone know if it's possible to uninstall/reinstall powershell from scratch?

Best, Jon


Solution

  • I guess it's not an absolute fix, but to anyone with the same problem: Restart your computer. I think I had some windows updates pending, as they deployed on reboot and then the problem went away.

    Closing this question as this worked for me.