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!!!
siber1Asked:
Who is Participating?
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/1.1.166.0

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
0
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"
0
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
0
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

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
0
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
0
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
0
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.
0
Vasil Michev (MVP)Commented:
Told you, if you need the MSI version simply download one of the older ones listed in the second link.
0
siber1Author Commented:
Vasil, have you even checked that link you sent??? they pulled the old files!!
0
Vasil Michev (MVP)Commented:
0

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!
0
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
Powershell

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.