2.4 - Installing Windows Terminal and PowerShell 7

2.4 - Installing Windows Terminal and PowerShell 7 #

2.4.1 Lab Objectives #

By the end of this lab you should be able to:

  • Install PowerShell 7 and understand the difference in the versions.
  • Install Windows Terminal.
  • Add additional profiles to Terminal.

2.4.2 Installing PowerShell 7 #

If you like to nerd out a little bit and want to understand the difference between Windows PowerShell and PowerShell, you can read all about it here.

  1. Open a command prompt.

  2. Run winget install --id Microsoft.Powershell --source winget

  3. PowerShell 7 can now be run in its own Window

2.4.2 Installing Windows Terminal #

Windows terminal is my preference command line utility as I can run PowerShell, command Prompt, and WSL all in tabs with custom configuration. You can learn more about Windows terminal here.

Or watch this video

  1. Open a command prompt.

  2. Run winget install -e --id Microsoft.WindowsTerminal

  3. You can now open Windows terminal. I right click on the taskbar icon and select “Pin to taskbar”

2.4.3 Configuring Windows Terminal #

Now that Terminal is installed, I set up a few extra profiles to make my workflow quicker. These include profiles that run as Administrator for PowerShell, Windows PowerShell and Command Prompt.

  1. Go to Settings and the bottom of the left menu select “Add a new profile”.
  2. Duplicate profile and select the profile you want to duplicate, for example PowerShell.
  3. Click Duplicate.
  4. Rename to “PowerShell (Admin)”.
  5. Select “Run this profile as Administrator” and save.
  6. Repeat for the other profiles you want too an Administrator prompt for.