Thursday, 9 May 2019

Windows Server 2008, 2012, 2012R2: Install-Module is not recognized

When you want to user Install-Module on Windows Server 2018 or older you can see following error:

This could happened if you for example need to install AzureAD 2.0 powershell.
You then need to go to :
and get the package for your operating system

Follow on screen wizard and restart your server.
After that you should not have problem using install-module cmdlet: