David-Barrett-MS / PowerShell-EWS-Scripts

A collection of PowerShell scripts that use EWS to perform actions against Exchange mailboxes
MIT License
118 stars 13 forks source link

Error when I use application login #45

Closed NigelBootheNviron closed 7 months ago

NigelBootheNviron commented 9 months ago

Hi I get this error when I copy the redirect url its set to local

04/12/2023 14:25:14 [ErrorReported] ERROR (ThrottledFolderBind): Exception calling "Bind" with "3" argument(s): "The request failed. The remote server returned an error: (401) Unauthorized." Failed to open source message store (test.user@nboothey.co.uk)

jasonwilkening commented 7 months ago

Did you find a solution to this? I am having the same issue.

NigelBootheNviron commented 7 months ago

No sorry

Sent from Outlook for iOShttps://aka.ms/o0ukef

[cid:NvironLTDcompactlogo100pxwide_be2f2125-3670-4182-b3ee-ed292ccd7adb.png]https://www.nviron.co.uk/ Nigel Boothe Technical Consultant [cid:SocialLink_Linkedin_32x32_dc2ac5e3-37b1-474f-9549-b3ff3f3f1f35.png] https://www.linkedin.com/company/nviron-ltd [cid:SocialLink_Twitter_32x32_942fed1e-6f53-41b5-a9ce-512ee6c4b9a0.png] https://www.twitter.com/nvironltd [cid:instagram_logo_2016.svg(002)_8da0bba3-5312-49df-9781-c5699bf780f6.png] https://www.instagram.com/nvironltd

E: T: M: W: @.*** 01928 804024 07711423718 www.nviron.co.ukhttp://www.nviron.co.uk


From: jasonwilkening @.> Sent: Thursday, February 8, 2024 8:33:39 PM To: David-Barrett-MS/PowerShell-EWS-Scripts @.> Cc: Nigel Boothe @.>; Author @.> Subject: Re: [David-Barrett-MS/PowerShell-EWS-Scripts] Error when I use application login (Issue #45)

Did you find a solution to this? I am having the same issue.

— Reply to this email directly, view it on GitHubhttps://link.edgepilot.com/s/55906d11/2NmGrW6nvUm6VJ-YvDohlA?u=https://github.com/David-Barrett-MS/PowerShell-EWS-Scripts/issues/45%23issuecomment-1934891224, or unsubscribehttps://link.edgepilot.com/s/509ea9bf/c0ahqinprEObdHomNuj-7A?u=https://github.com/notifications/unsubscribe-auth/BEMLSDIXCSJHIOD4UEYG5JTYSUZCHAVCNFSM6AAAAABAGCMAQOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZUHA4TCMRSGQ. You are receiving this because you authored the thread.Message ID: @.***>

Links contained in this email have been replaced. If you click on a link in the email above, the link will be analyzed for known threats. If a known threat is found, you will not be able to proceed to the destination. If suspicious content is detected, you will see a warning.

Email confidentiality notice

This message is classified as private and confidential. If you have received this message in error, please notify @.*** and remove it from your system.

Nviron Limited is a company registered in England and Wales with company number 02294787. Registered Office: 6 Abbots Park, Monks Way, Runcorn, Cheshire, WA7 3GH. VAT Number: 483 6346 22.

This message has been scanned for viruses by Appriver Hosted E-mail Security.

jasonwilkening commented 7 months ago

I got it to work finally. I just had to add the -OAuthSecretKey $secretKey to the command and then it didn't give me a redirecturl and it worked.

David-Barrett-MS commented 7 months ago

App permissions work, the guide is here: https://github.com/David-Barrett-MS/PowerShell-EWS-Scripts/wiki/Exchange-Online-OAuth-Configuration.

If there's an auth error, use the OAuth debug options with -Verbose and you'll usually see a useful error.