Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 9146

Missing PS.exe alias

$
0
0

My Windows 11 Enterprise installation is missing the PS.exe alias for Powershell. When I try to run any command starting with "PS" for powershell to execute, I get an error that it is unrecognized or cannot be found.

This is a new problem; I have definitely used PS.exe in the not-too-distant past. I still have the Powershell executables at "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" and "C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe" (as well as in a few "C:\Windows\WinSxS..." locations, according to my Voidtools Everything Search results). So that all looks normal.

I have run Windows Update, sfc.exe /scannow, and dism /online /cleanup-image /restorehealth with no results. I can still launch a powershell instance by typing "powershell" into Windows Search or the Win+R Run Menu; it's just the PS alias that has suddenly gone missing.

I'm wracking my brain trying to figure out what happened. And even if I never learn why it disappeared, I would at least like to re-create it properly, if anyone can describe where it is supposed to be.


Viewing all articles
Browse latest Browse all 9146

Trending Articles