petben Posted October 15, 2014 Posted October 15, 2014 Trying to run the Windows Azure AD Module for Powershell (so I can manage 365 from powershell) but getting error: Import-Module : Could not load file or assembly 'file:///C:\Windows\system32\Wi ndowsPowerShell\v1.0\Modules\MSOnline\Microsoft.Online.Administration.Automatio n.PSModule.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. I have .net 4.5.1 installed, .net 3.5 feature installed and Powershell 2. which is apparently all you need. Any ideas?
Marshall_IT Posted October 15, 2014 Posted October 15, 2014 Have you installed the azure ad powershell module? http://community.office365.com/en-us/w/diagnostic_tools/default.aspx?ss=465d14b0-c5fe-4bbf-84d2-c791113732e2#windowsazureactivedirectorymoduleforwindowspowershell
petben Posted October 15, 2014 Author Posted October 15, 2014 yes it is installed but running it gives the error. I also have installed 'Online services sign-in assistant (msoidcli_64.msi)'
Marshall_IT Posted October 15, 2014 Posted October 15, 2014 It's sounds like a possible corrupt installation, have you tried to uninstall and reinstall the aad ps module?
EduTech Posted October 15, 2014 Posted October 15, 2014 to me that looks like the powershell version you are running, more specifically version 2, if you type powershell -version 3 or powershell -version 4 does it launch? if not that you are missing the management framework for these versions and you need to install "http://www.microsoft.com/en-gb/download/details.aspx?id=40855" PowerShell Version 2 will not allow you to launch the .DLL required Regards, James.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now