-
Notifications
You must be signed in to change notification settings - Fork 391
Update AuthServerCheck, EWSVirtualDirectoryCheckOAuth, CheckIfExchang… #2533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -4,7 +4,7 @@ function Test-ExchangeOnlineConnection { | |||||||||||||||||||||||||
| Write-Host -ForegroundColor Green " Checking Exchange Online Configuration" | ||||||||||||||||||||||||||
| Write-Host " Testing Connection to Exchange Online with EO Prefix." | ||||||||||||||||||||||||||
| try { | ||||||||||||||||||||||||||
| $CheckExoMailbox = Get-EOMailbox $Script:UserOnline -ErrorAction Stop | ||||||||||||||||||||||||||
| $CheckExoMailbox = get-EOMailbox $Script:UserOnline -ErrorAction Stop | ||||||||||||||||||||||||||
| if ($null -ne $CheckExoMailbox) { | ||||||||||||||||||||||||||
| return $true | ||||||||||||||||||||||||||
| } else { | ||||||||||||||||||||||||||
|
|
@@ -24,12 +24,24 @@ function FetchEWSInformation { | |||||||||||||||||||||||||
| if (-not $Script:WebServicesVirtualDirectory -or -not $Script:WebServicesVirtualDirectoryOAuth) { | ||||||||||||||||||||||||||
| $Script:WebServicesVirtualDirectory = Get-WebServicesVirtualDirectory -Server $Script:Server | Select-Object Identity, Name, ExchangeVersion, *Authentication*, *url -ErrorAction SilentlyContinue | ||||||||||||||||||||||||||
| $Script:WebServicesVirtualDirectoryOAuth = $Script:WebServicesVirtualDirectory | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
| $Script:WebServicesVirtualDirectoryOAuth = $Script:WebServicesVirtualDirectory | |
| $Script:WebServicesVirtualDirectoryOAuth = $Script:WebServicesVirtualDirectory | |
| if ([string]::IsNullOrWhiteSpace($Script:ExchangeOnPremEWS)) { | |
| $externalUrl = $Script:WebServicesVirtualDirectory | | |
| Where-Object { $null -ne $_.ExternalUrl } | | |
| Select-Object -First 1 -ExpandProperty ExternalUrl | |
| if ($null -ne $externalUrl) { | |
| $Script:ExchangeOnPremEWS = $externalUrl.ToString() | |
| } | |
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we now deciding only for this one to do a $null check before setting it? This does add up why we are needing to check for this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was a change made here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this only changed here vs properly fixing things at all the locations? There are a lot of mixed results here for using $ExchangeOnPremDomain and $Script:ExchangeOnPremDomain
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently, I notice that many of our customers are already using this script before opening a case. Just today, I archived a case that was 142 days old when it came to me, and that script found the root cause in 1 minute. The customer had created both the Federation Certificate and Auth certificate in the same way one creates a self-signed certificate, therefore with incorrect namespaces. This was very hard to spot, as only the namespace on the certificate was incorrect.
As the script currently provides the wrong verdict for the Auth Server check, my suggestion is that we drop the other changes that require some time to implement and proceed with the Auth Server one, either in this PR or a new PR, and I address those needs separately.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this changed to a lower case? We shouldn't be doing that.