Using Vagrant with powershell 7

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:

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:

  1. Check if powershell.exe is somewhere on you system. Normally it is in C:\Windows\System32\WindowsPowerShell\v1.0 directory.
  2. Add powershell.exe to your PATH environment variable
2 Likes