PowerShell 7.1

Howdy! It’s been awhile. Just wanted to write a quick update about setting PowerShell 7.1 as my new default PowerShell.

  1. Install PowerShell 7.1
  2. Find the PowerShell shortcut. I usually do this by searching using the Windows menu.
    1. Mine was here: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\PowerShell
    2. If you installed via the Microsoft Store it’s slightly more complicated but still possible, I just don’t have the steps on-hand.
  3. Open a new Explorer window and go to C:\Users\{Username}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Windows PowerShell to find the shortcut that Windows uses when you right-click the Windows icon and choose “PowerShell”
  4. Replace that shortcut with a copy of the one for PowerShell 7.1
  5. Test it out!

These steps apply to any version of PowerShell, but I’ve found them especially useful for 6 and 7. I wanted to get it figured out as I get Vagrant and Docker setup on my gaming PC so I can mess around with them in Windows. Cheers!

Edit: I tried the Windows Store installation of PowerShell and it just worked! It must update something similar to what I set for the above steps. To clarify a bit, here’s the target that I had for the “Windows PowerShell” shortcut located above:

"C:\Program Files\PowerShell\7\pwsh.exe" -WorkingDirectory ~