unable to find: Azure Active Directory Module for Windows PowerShell !! help!!!

urgent, where can I download / install  Azure Active Directory Module for Windows PowerShell?   It appears Microsoft has pull this from the website, I need to connect to office 365 with Powershell and I can't find a way to do this from a win2k12 R2 server running standard powershell.

any help / guidance would be much appreciated!!!
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vasil Michev (MVP)Commented:
It's distributed via the PowerShell Gallery now: https://www.powershellgallery.com/packages/MSOnline/

If you need the MSI install, you can get it from some non-MS sites (search via google) or download one of the older versions: https://social.technet.microsoft.com/wiki/contents/articles/28552.microsoft-azure-active-directory-powershell-module-version-release-history.aspx#AO1
siber1Author Commented:
but how can I install the module?  that link you sent, I've seen it, but it only lists this command:
PS> Install-Module -Name <moduleName> -RequiredVersion <version>

when I open powershell on the win2k12 R2 server, I doesn't even recognize the command "install-module"
siber1Author Commented:
the server I'm trying to connect to office 365 on is a win2k12 R2 server was standard powershell installed. how can I connect to office 365 via powershell with this server?   thanks
Check Out How Miercom Evaluates Wi-Fi Security!

It's not just about Wi-Fi connectivity anymore. A wireless security breach can cost your business large amounts of time, trouble, and expense. Plus, hear first-hand from Miercom on how WatchGuard's Wi-Fi security stacks up against the competition plus a LIVE demo!

DBAduck - Ben MillerPrincipal ConsultantCommented:
Install-Module works with PowerShell 5.0 and above.  You can download it by searching WinRM 5.1 and downloading it and putting it on your server.

Otherwise you should be able to use PowerShell to install it.

Install-WindowsFeature RSAT-AD-Powershell
siber1Author Commented:
thanks Ben, let me try installing winrm 5.1   -  I ran this command:
 Install-WindowsFeature RSAT-AD-Powershell

and that installed, but still I cant run  "install-module" from powershell on this win2k12 R2 server. it doesn't recognize it,  it only recognizes import-module
siber1Author Commented:
its not working,  here are the commands I need to run,  any help would be much appreciated!

connect-msolservice is not recognized!

Connect to Microsoft Online Services with the credential variable set previously
◦Connect-MsolService –Credential $cred

•Set the MSOL ADFS Context server, to the ADFS server
◦Set-MsolADFSContext –Computer adfs_servername.domain_name.com

•Convert the domain to a federated domain
◦Convert-MsolDomainToFederated –DomainName domain_name.com


•Successful Federation
◦Successfully updated ‘domain_name.com‘ domain.

•Verify federation
◦Get-MsolFederationProperty –DomainName domain_name.com
DBAduck - Ben MillerPrincipal ConsultantCommented:
Azure Active directory. I missed that part.  The RSAT-AD-PowerShell is the one for Active Directory, not the Azure Active Directory.

download and install this https://www.microsoft.com/en-us/download/details.aspx?id=51451 and then you should be able to use the Install-Module then to get the module

Install-Module MSOnline

If you have a machine that has PowerShell 5.0 or above ($PSVersionTable) then you can Save-Module MSOnline and then copy it to the server.  Or you could also do an Install-Module on a machine that has 5.0 and then copy/paste it to the server you are using into C:\Program Files\WindowsPowerShell\Modules\MSOnline and then you can do an Import-Module MSOnline and you should be oK.
Vasil Michev (MVP)Commented:
Told you, if you need the MSI version simply download one of the older ones listed in the second link.
siber1Author Commented:
Vasil, have you even checked that link you sent??? they pulled the old files!!
Vasil Michev (MVP)Commented:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
siber1Author Commented:
thank you, that one worked for me!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.