We help IT Professionals succeed at work.

Unable to install the Azure AD module within Server 2012 R2 Power Shell

After logging onto the Office 365 module within PowerShell on a Server 2012 R2 server and typing in the Install-Module -Name AzureAD command within PowerShell I receive an error message that says

"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
At line:1 char:1
+ Install-Module -Name AzureAD
+ ~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Install-Module:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException"

What do I need to do so I can successfully install the Azure AD module within PowerShell?
Watch Question

Most Valuable Expert 2019
Most Valuable Expert 2018
Install-Module requires a current version of Powershell (WMF 5.0 or later, recommended) or at the very least the PowerShellGet module, if for whatever reason you need to remain on PS 3.0/4.0.

Windows Management Framework 5.1

PackageManagement PowerShell Modules Preview - March 2016