powershell 如何不出現在 powershell 的路徑中?

powershell 如何不出現在 powershell 的路徑中?

在一台電腦上,其他方面運作正常,但有一個奇怪的問題:您只能從「開始」功能表、「執行」對話方塊、資源管理器.lnk 等位置執行 PowerShell;但您無法在 PowerShell 中執行 PowerShell 表單。

PowerShell 已在 中$env:path,但結果仍然是:

PS C:\Users\Laptop> powershell
powershell : The term 'powershell' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name, or
if a path was included, verify tha
t the path is correct and try again.
At line:1 char:1
+ powershell
+ ~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (powershell:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

我跑了sfcdism沒有結果。 PowerShell 無法發現自己的系統可能有什麼問題?

相關內容