That problem made me curious and therefore I installed Powershell 7.
However during my search about how to deinstall the old PowerShell 5.1 I found out it is a bad idea because a lot of tools that are required by windows are implemented as powershell scripts and not all powershell modules are compatible with the new 7 version. So deinstallation will make your system unstable.
See:
- Remove Powershell 5.1 from Windows 10
- Is there any way to totally remove Powershell 5 and Command Prompt - Microsoft Community
My guess is that you still have the old powershell.exe
but it is missing in the PATH
environment variable.
So I would recommend doing the following things:
- Check if powershell.exe is somewhere on you system. Normally it is in
C:\Windows\System32\WindowsPowerShell\v1.0
directory. - Add
powershell.exe
to yourPATH
environment variable