Install-Module : The term ‘Install-Module’ is not recognized as the name of a cmdlet

Install-Module AzureADPreview

Install-Module MSOnline

Install-Module : The term ‘Install-Module’ is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:1
+ Install-Module AzureADPreview
+ ~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Install-Module:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

Or you get “You must have the MSOnline Windows PowerShell modules”

Solution without Reboot

Download and install : https://www.microsoft.com/en-us/download/details.aspx?id=51451

Then run Powershell as Administrator

Run again

Proper Solution that requires reboot

Install Windows Management Framework 5.1   https://www.microsoft.com/en-us/download/details.aspx?id=54616

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 10.00 out of 5)
Loading...