question

MrNamHunhTn-5674 avatar image
0 Votes"
MrNamHunhTn-5674 asked YukiSun-MSFT answered

New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri $msoExchangeURL -Credential $cred -Authentication Basic

Can you help me?
I can't run: $session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri $msoExchangeURL-Credential $cred -Authentication Basic -AllowRedirection

windows-server-powershelloffice-exchange-online-itproazure-ad-connect
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

YukiSun-MSFT avatar image
0 Votes"
YukiSun-MSFT answered

Hi @MrNamHunhTn-5674,

Are you trying to connect to Exchange Online PowerShell using Basic authentication? If this describes your situation, it's recommended to follow the instructions in the document below:
Basic auth - Connect to Exchange Online PowerShell

In case the issue persists, could you clarify it a bit more about what you are encountering like the detailed error you met so that we can try to help further?


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RichMatheisen-8856 avatar image
0 Votes"
RichMatheisen-8856 answered RichMatheisen-8856 commented

Please edit your post so it uses the Code Sample editor (it's the icon 5th from the left, with "101 010" in it, or use Ctrl+K) for your script code.

It would also help if you stated why you can't run that New-PSSession. Does the target site allow the use of "Basic" authentication?

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I edit question...

0 Votes 0 ·

Yes, you did . . . but you still don't say WHY you can't do that. Is there an error? If so, what is it?

0 Votes 0 ·