Install PowerShellGet on your computer

PowerShell is continuously evolving, that means that for some modules you don’t get an installer anymore. You have to use PowershellGet.

But how to get it? In the following table I’ve summarized the ways:

Scenario Install instructions
Windows 10
Windows Server 2016
Included in Windows Management Framework (WMF) 5.0. This is aready shipped and ready-to-go with the Windows OS
I want to upgrade to PowerShell 5
  1. Install the latest version of WMF
  2. Run the following command:
    Install-Module PowerShellGet -Force
I am running on a version of Windows with PowerShell 3 or PowerShell 4 Get the PackageManagement modules

  1. Run the following command:
    Install-Module PowerShellGet -Force

Read the official article on docs.microsoft.com.

Now you can issue the following command to see how powerful this module is to find the module of your needs:

Get-Command -Module PowershellGet

Using a Mac or Linux? No problem. Read this article first to learn how to use PowerShell on your device.

Published by Andreas

Founder of M365 Evangelists Cloud-Architect, Strategy Consultant, Consultant for Microsoft technologies, Graph API enthusiast, PowerShell enthusiast