PowerShell for Exchange Online (can't connect) #1045
Unanswered
jensjakobsen
asked this question in
Getting started
Replies: 1 comment 3 replies
-
We don't really provide code/usage support for software we package. You'll have to contact the original developers. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello
I've installed Homebrew /basically followed the guide here: https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-macos?view=powershell-7), but when I try to connect to Exchange Online with the simplest of commands: connect-exchangeonline, I get this error:
New-ExoPSSession: /Users/jensjakobsen/.local/share/powershell/Modules/ExchangeOnlineManagement/2.0.4/netCore/ExchangeOnlineManagement.psm1:475
Line |
475 | … PSSession = New-ExoPSSession -ExchangeEnvironmentName $ExchangeEnviro …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Could not load file or assembly 'Microsoft.Identity.Client, Version=4.23.0.0, Culture=neutral, PublicKeyToken=0a613f4dd989e8ae'. Could not
| find or load a specific file. (0x80131621)
If I then try another way to login, e.g.:
$O365Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid -Credential $O365Cred -Authentication Basic -AllowRedirection
I get another error like:
New-PSSession: This parameter set requires WSMan, and no supported WSMan client library was found. WSMan is either not installed or unavailable for this system.
What the devil am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions