Hi,
We are getting the below error while trying to assign a user license in O365 through the AFX connector (test capability). We are using a windows jump server (2008 R2 SP1) with the pre-requisites (.net 4.5,MS Online Services Sign-in Assistant, Windows Azure Active Directory Module, Windows Management Framework 3.0 and SSH server) already installed.
While running the script manually through powershell/Azure AD Powershell, everything goes smooth though.
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.
Has anyone come across a similar issue.?
L&G v 7.0 P05
Looks like something wrong with the .NET version installed/used. Instead of testing the command on PowerShell directly, can you try to connect to your Windows server through the SSH server and run the command that way?