Import-Module : Could not load file or assembly ‘file:///C:\Windows\system32\WindowsPowerShell\v1.0\Modules\MSOnline\Microsoft.Online.Administration.Automation.PSModule.dll’ or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
At line:1 char:14
+ Import-Module <<<< MSOnline
+ CategoryInfo : InvalidOperation: (:) [Import-Module], BadImageFormatException
+ FullyQualifiedErrorId : FormatXmlUpateException,Microsoft.PowerShell.Com mands.ImportModuleCommand
To resolve this error, Install WMF 3.0 (Windows Management Framework) as mentioned in this article : https://support.microsoft.com/en-us/kb/2964373