Install the latest PowerShell (v7+)

This challenge needs PowerShell 7 or newer to connect with Enter-PSSession … -HostName … (SSH-based remoting). Windows ships with Windows PowerShell 5.1, which is too old. Install PowerShell 7 using either option below.

💡 Check what you have first. Open any PowerShell window and run:

$PSVersionTable

Look at PSVersion. If it starts with 5.1, upgrade. If it's 7.x, you're ready — jump back to the walkthrough.


Windows — two ways to install PowerShell 7

Option 1 · winget (recommended, fastest)

Windows 10/11 include winget. Open Windows PowerShell or Command Prompt and run:

winget install --id Microsoft.PowerShell --source winget

Accept the prompts. When it finishes, PowerShell 7 is installed as pwsh.

Option 2 · MSI installer (point & click)

  1. Go to the official release page:
  2. Download the x64 MSI for Windows, e.g. PowerShell-7.x.x-win-x64.msi.
  3. Run the installer and click Next through the defaults, then Install.
  4. Finish the wizard.

⚠️ Important: your old PowerShell was not replaced

Installing PowerShell 7 does not overwrite or upgrade Windows PowerShell 5.1. The two live side by side:

So after installing, if you just reopen your usual "PowerShell," you may still see 5.1. You have to start the new one explicitly.