Danny Fallas Danny Fallas - 1 year ago 176
PowerShell Question

MSOnline can't be imported on PowerShell (Connect-MsolService error)

I had this issue and couldnĀ“t find any answer. The issue was that I was trying to use Azure cdmlets to connect to O365 via c# code, but I couldnĀ“t get the


""The term is not recognized" error when you try to run administrative Windows PowerShell cmdlets in Office 365"

Answer Source

After hours of searching and trying I found out that on a x64 server the MSOnline modules must be installed for x64, and some programs that need to run them are using the x86 PS version, so they will never find it.

[SOLUTION] What I did to solve the issue was:

Copy the folders called MSOnline and MSOnline Extended from the source


to the folder


And then in PS run the Import-Module MSOnline, and it will automatically get the module :D

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download