0 votes

Dear Support,
can you please advise how to properly troubleshoot Connect-MSOlService? I have x64 Adaxes installation
I have this function properly working in Powershell ISE and Powershell console on the Adaxes server, but when I try to run it in PS script inside Adaxes - I get a 1 minute wait and then "Object reference not set to an instance of an object".

I have Microsoft Online Services Sign-In Assistant install from https://www.microsoft.com/en-us/downloa ... x?id=28177

I have MSOnline module installed via Powershell.
Version Name Repository Description
------- ---- ---------- -----------
1.1.183.17 MSOnline PSGallery Microsoft Azure Active Directory Module for Wind...
Powershell version 5.1

Thanks for any advise!

by (850 points)
0

Hello,
after changing config file - the log doesn't appear while running this code. So it doesn't even send the request, I guess
No, this tenant is not registered in Adaxes, but it works fine :)

0

Hello Dmytro,

No, this tenant is not registered in Adaxes, but it works fine

Could you, please, try to register the tenant in Adaxes? For details, have a look at the following tutorial: https://www.adaxes.com/tutorials_Active ... htm#tenant.

after changing config file - the log doesn't appear while running this code. So it doesn't even send the request, I guess

The log does not appear because the tenant is not registered in Adaxes.

0

Hello,
Unfortunately I can't since I don't have admin priveleges in Azure tenant, I'm managing only on-premise AD. But we really need to pull the license info to adaxes.
Is there any other way to troubleshoot this?

0

Hello Dmytro,

Object reference not set to an instance of an object.” is a very common error and can occur because of multiple reasons. To troubleshoot the issue, you need to register a tenant in Adaxes. It is not necessarily should be your production tenant. You can create a dummy tenant in Office 365 and then register it in Adaxes without association with any scope of your domain.

0

Hello,
I've created a test tenant and tried to add it. The irony is that I get same error message :lol:

![]()

1 Answer

0 votes
by (850 points)
selected by
Best answer

Dear Support,
thanks for your help - we've found the issue. Proxy had to be set up manually under service account - settings set up in Adaxes configuration (proxy) - didn't work.

Related questions

0 votes
1 answer

Hi, we are using Adaxes version 3.14.18920.0. We have Teams Poweshell module 2.3.1 installed on the computer where adaxes service runs. We have the ... } finally { # Close the connection and release resources Disconnect-MicrosoftTeams -Confirm:$False }

asked Jun 22, 2021 by TJ_Umredkar (140 points)
0 votes
1 answer

Hi, We've recently started seeing users get 'Unable to connect to nearest Adaxes service' errors when accessing the Adaxes web portal. It's far too vague\random to have an idea ... last night to see if that fixed it, but we have had the issue again today.

asked Dec 13, 2013 by firegoblin (1.6k points)
0 votes
1 answer

We still use MsolService (MSOnline) Cmdlets because newer modules don't have some of the features. With the depreciation of GetOffice365Credential ... the Azure token? Connect-MsolService -AdGraphAccessToken $Context.CloudServices.GetAzureAuthAccessToken()

asked Feb 19, 2021 by Staj (350 points)
0 votes
1 answer

Hello Is there any way to configure Adaxes Administration Console to automatically connect to the adaxes service after startup? That would be pretty handy. So the console can be ... which sometimes takes some time. I use version 2021.1 update 5 regards pudong

asked Mar 12 by pudong (410 points)
0 votes
1 answer

Is it possible to connect to the Microsoft 365 Security & Compliance center through a PowerShell script? We are trying to configure users that belong to a ... department for a retention policy through the use of the Set-RetentionCompliancePolicy command.

asked Jan 3 by scoutcor (100 points)
2,740 questions
2,474 answers
6,475 comments
1,373,643 users