Thursday, 9 May 2019

AzureAD 2.0 - installing on Windows Server 2012R2

In order to install AzureAD 2.0 you need to install WMF5.1 first:
http://windows.ittips.eu/2019/05/windows-server-2008-2012-2012r2-install.html

Then, run in powershell:


 And then check and import it:

You can now check new commands available:

You can also check following Microsoft site:
https://docs.microsoft.com/en-us/powershell/azure/active-directory/install-adv2?view=azureadps-2.0


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: