powershall 闪退

在一次测试中,突然powershall脚本不能运行了,现象是,
1、右击脚本 -> 选择“用 powershall 运行” -> 闪退
2、重启电脑,或者进入到 powershell 文件夹直接运行powershell.exe时,报错:
powershall 闪退

    The shell cannot be started. A failure occurred during initialization:
    The type initializer for 'System.Net.ServicePointManager' threw an exception

后来发现,是更改machine.config 时少注释了一行,破坏了文件格式
powershall 闪退

相关文章:

  • 2021-11-29
  • 2021-11-04
  • 2021-09-24
  • 2022-01-20
  • 2021-04-23
  • 2021-06-01
  • 2022-12-23
猜你喜欢
  • 2021-09-23
  • 2021-12-10
  • 2021-12-18
  • 2021-09-28
  • 2021-04-30
  • 2021-09-13
  • 2021-12-24
相关资源
相似解决方案