启动 PowerShell 时出错 - 无法执行操作,因为对象 "runspace" 已被释放

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

尝试启动 powershell 时,我收到以下消息:

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

我似乎无法通过 google 找到任何解决方案。有谁知道是否可以从头开始 uninstall/reinstall powershell?

最好的, 乔恩

我想这不是绝对的解决方法,但对于遇到相同问题的任何人:重新启动计算机。我想我有一些 windows 更新待处理,因为它们在重新启动时部署,然后问题就消失了。

关闭这个问题,因为这对我有用。