powershall 閃退

powershall 閃退

在一次測試中,突然powershall腳本不能運行了,現象是,
1、右擊腳本 -> 選擇“用 powershall 運行” -> 閃退
2、重啓電腦,或者進入到 powershell 文件夾直接運行powershell.exe時,報錯:

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

後來發現,是更改machine.config 時少註釋了一行,破壞了文件格式
在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章