Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Installing PowerShell


Windows:

  1. Usually PowerShell is pre-installed on Windows Operating Systems however if it isn’t installed on your Windows computer, download the PowerShell installer for Windows from the official Microsoft website.
  2. Run the installer and follow the instructions to complete the installation.
  3. Once the installation is complete, open the PowerShell console by searching for “PowerShell” in the Windows Start menu.

Ubuntu:

  1. Open a terminal window.
  2. Run the command sudo apt-get update to update the package repository.
  3. Run the command sudo apt-get install -y powershell to install PowerShell.
  4. Once the installation is complete, open the PowerShell console by running the pwsh command in the terminal.

Red Hat:

  1. Download the PowerShell package for Red Hat from the official Microsoft website.
  2. Install the package using the package manager by running the command sudo yum install powershell.
  3. Once the installation is complete, open the PowerShell console by running the pwsh command in the terminal.

macOS:

  1. Download the PowerShell package for macOS from the official Microsoft website.
  2. Double-click the downloaded package to start the installation.
  3. Follow the instructions in the installer to complete the installation.
  4. Once the installation is complete, open the PowerShell console by searching for “PowerShell” in the Spotlight search. Alternatively, you can open the terminal and run the pwsh command.

Note: The installation steps may vary depending on the version of Windows, Ubuntu, Red Hat, or macOS you are using. It’s always recommended to refer to the official documentation for detailed instructions.