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 (360 points)
0

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

1 Answer

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

Hello,

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 (410 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 by systech (100 points)
2,779 questions
2,512 answers
6,574 comments
26,511 users