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 :
https://docs.microsoft.com/en-us/powershell/wmf/5.1/install-configure
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:



2 comments:

  1. The installation process will take a few hours. Am I right? But I think it's worthy of the result. Thanks for submitting!

    ReplyDelete
  2. Yes, this system is quite fast and reliable. But for installation, you need to know the hardware requirements. This knowledge will help to avoid installation problems.

    ReplyDelete