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 (1.5k 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 (1.5k 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 (20 points)
0 votes
1 answer

Invalid Crednetials: "Unexpected character encountered while parsing value: <.Path",line 0 position 0."

asked Jun 5 by ZoomGhost (280 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 (190 points)
0 votes
1 answer

Getting "object reference not set to an instance" when trying to sign into Office 365 Tenant Was working fine before

asked Sep 1, 2021 by davm79 (40 points)
0 votes
1 answer

Does the solution support working with multiple Office 365 tenants in the cloud-only scenario when there is no on-premise AD and all identity is managed via Azure Active Directory?

asked Apr 14, 2021 by Andrew Matveychuk (50 points)
3,588 questions
3,277 answers
8,303 comments
548,090 users