0 votes

I installed the older version of 64 bit Windows Azure Active Directory Module as referenced here: Could not load file or assembly

and the 64-bit version of the Microsoft Online Services Sign-in Assistant.

But when trying to connect using my Global Admin account for 0365, I get the above error.

I am able to connect via Azure AD Module directly with the credentials, so I have confirmed that.

by (5.6k points)
0

Hello,

Can you do the following for troubleshooting purposes:

  1. On the computer where Adaxes Service is installed, start the Windows Azure Active Directory Module for Windows PowerShell from the Start screen.

  2. In the module, execute the following script:

     $credential = Get-Credential
     Connect-MsolService -Credential $credential
  3. When prompted for credentials, enter the username and password for your Office 365 Tenant. Does the module manage to connect? If not, what is the error message?

0

Yes, that works fine:

0

Any idea's on this? I did go through and reinstall the Sign-In assistant and Azure Powershell just in case, but still can't connect with adaxes, only directly through powershell.

0

Hello,

Actually, that's puzzling. Adaxes uses exactly the same code as we provided above to connect to Office 365 Tenants. Can you double-check that the credentials you specify in Adaxes are the correct credentials? Also, did you enable Multi-Factor Authentication (MFA) for Office 365? Is the user you specified required to pass MFA when logging in?

0

Credentials are good, and no MFA.

Actually, I'm now figuring out what's failing... Adaxes uses the Service Account that's assigned to the Softerra Adaxes Service. When I launch Powershell with that account and try it fails. If I use another account, like my Domain Admin one, it works. I don't think it permission related, becuase if I go to another workstation with Azure installed, and run the command as the Service Account it works. That's weird. So something isn't right on that server where it's installed with that particular service account.

Since I know atleast one account I can use that works on that server, what steps need to be taken to switch the service account?

Thanks.

0

Again, what options do I have for changing the service user?

0

Hello,

Actually, that's not so simple. For that purpose you will need to completely reinstall Adaxes Service. Maybe, it would be better to solve the admin account issue? What error do you get when launching PowerShell? Can you attach here a screenshot?

1 Answer

0 votes
by (5.6k points)
selected by
Best answer

I finally got it. That service user wasn't getting the proxy settings. I force the proxy settings, and it worked. PHewww.. Thanks for the help.

0

Hi,

I have the same problem. How do you force the proxy settings with the service user?

Thanks for your reply.

0

To force the proxy, I used NETSH.

Here's an article on how to look and set it. http://winplat.net/2012/04/06/configure ... r-2008-r2/

0

Hello,

Thanks for your reply.

Regards,

Related questions

0 votes
1 answer

This message is displaying inside the Office 365 properties for every user on this account/domain. Multi-Factor Authentication is disabled on the tenant account and I am able ... domains that are working with O365 without issue on the same servers as well.

asked Oct 24, 2019 by jhutchinson (250 points)
0 votes
1 answer

Hi, Since 5 days i've got a issue with my Office 365 tenant. In the users properties i can't change plan. When i try to re-enter credential i've got a ... .Automation.PSCredential exception I don't knwo where to look (of course credential are OK) Best regards

asked Oct 16, 2017 by Nicolas.lussier (1.1k points)
0 votes
1 answer

I have followed the instructions but still cannot seem to connect to Azure AD. If I install the latest Azure AD powershell module I can connect via powershell. As soon as I ... version described in the HOW-TO I get that it threw an exception. Please advise.

asked Apr 3, 2017 by cyspry (2.7k points)
0 votes
1 answer

We are receiving the following error when we attempt to add an Office 365 tenant into Adaxes. I'm able to log in fine via the powershell module. Here are the following ... of each of these, but receive the same results. Any help would be greatly appreciated!

asked Mar 2, 2017 by jhair (2.6k points)
0 votes
0 answers

Hello the addition of a holding in adaxes I get the message chatger not file or assembly file: // C: \ Windows \ system32 \ windowspowershell \ v1.0 \ modules \ ... first time we utilison the office portion 365 adaxes adaxes is installed on a wondows 2012 R2

asked Oct 7, 2016 by cfillon (880 points)
2,247 questions
2,007 answers
5,495 comments
20,773 users