如上圖,當 ping、ssh 等指令出現無法辨識情況
先確認
C:\Windows\System32\ping.exe
C:\Windows\System32\OpenSSH
是否存在,若存在嘗試在PowerShell輸入以下指令
$env:PATH += ";C:\Windows\System32"
$env:PATH += ";C:\Windows\System32\OpenSSH"
ping、ssh 功能應該會恢復正常
當PowerShell關閉後再開啟又出現無法辨識時,在環境變數新增或編輯 Path , 變數值為
C:\Windows\System32\
C:\Windows\System32\OpenSSH
如下圖
即恢復正常
沒有留言:
張貼留言