
На одном компьютере, который в остальном работал нормально, возникла странная проблема: PowerShell можно запустить только из таких мест, как меню «Пуск», диалоговое окно «Выполнить», файл .lnk Проводника; но невозможно запустить форму 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
Я запустил sfc
и dism
безрезультатно. Что может быть не так с системой, что PowerShell не может себя найти?