0 votes

I am getting the following error within Adaxes when I try to connect to my Office 365 tenant or run any powershell scripts against it.

Failed to create an Office 365 account. The type initializer for 'System.Management.Automation.Runspaces.InitialSessionState' threw an exception.

Does anybody have a solution for this :?:

by (380 points)

Nevermind! It looks like a server reboot fixed the issue. :D

1 Answer

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


It is a well-known issue of .NET Framework 3.5. If the issue reappears, simply restarting the Softerra Adaxes Service will suffice.

Related questions

0 votes
1 answer

Hi, We encounter an error on one of our Adaxes service (Adaxes 2016 3.7.13430) when activating Licence for new user : Softerra.Adaxes.CommandPipeline.CommandProcessingException: The ... stack trace --- Any idea ? Thank you in advance for your help regards

asked Sep 20, 2017 by smasset (730 points)
0 votes
0 answers

When attempting to assign licenses during the "after creating a user" rule we're reciving the following error. Failed to create a remote mailbox for the user. The address ' ... mail attribute to the proper format that isn't the onmicrosoft.com domain as well.

asked Sep 2, 2021 by zorps (20 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

I am trying to automate some of my o365 scripts so that the helpdesk can run them with elevated permissions and not have that ... -Credential $o365Credentials -Authentication Basic -AllowRedirection Import-PSSession $session -AllowClobber -DisableNameChecking

asked Nov 23, 2018 by jbadry (430 points)
0 votes
1 answer

Dear Support Admin Hi, I hope you are in good health. I have a problem regarding the office 365 license my problem is: I have a case where if HR adds a new AD user, ... Is that possible to do? for example using a script or display it in another form? Thank you

asked Mar 4, 2022 by systech (100 points)
3,066 questions
2,779 answers
431,113 users