Nino_Bilic When we run the script on a pure on-premises environment by specifying the EWSServerURL property, we receive the error below. Is this related to Extended Protection enablement?
[PS] C:\OutlookCVE>Get-Mailbox -ResultSize Unlimited | .\CVE-2023-23397.ps1 -Environment Onprem -EWSServerURL "https://domain.com/EWS/Exchange.asmx"
cmdlet CVE-2023-23397.ps1 at command pipeline position 2
Supply values for the following parameters:
Credential
CVE-2023-23397 script version 23.03.15.2119
Trying to find Microsoft.Exchange.WebServices.dll in the script folder
Microsoft.Exchange.WebServices.dll was found in the script folder
Unable to connect to EWS endpoint. Please make sure you have enter valid credentials. Inner Exception
The request failed. The remote server returned an error: (401) Unauthorized.