microsoft / CSS-Exchange

Exchange Server support tools and scripts
MIT License
1.21k stars 333 forks source link

ExtendedProtectionManagement script fails when run against servers which are in a different (sub-)domain #2019

Closed lusassl-msft closed 1 month ago

lusassl-msft commented 4 months ago

Issue: It was reported that the ExtendedProtectionManagement.ps1 script didn't work properly if it's executed from a machine which is in a different domain (e.g., management.it.contoso.com) than the Exchange server (e.g., exchangesrv01.sub.domain.contoso.com).

Reason: Name resolution fails since we use the flat name instead of Fqdn which leads to these issues.

Fix: Improve the script to use Fqdn instead of Name. Resolve #2018

Validation: Validated by the affected customer but should be validated internally as well.

lusassl-msft commented 4 months ago

@thmeyer-msft please let us know on this thread once you've tested the updated version. Thank you!

lusassl-msft commented 4 months ago

We need to change a few more loc to use Fqdn instead of Name.

lusassl-msft commented 4 months ago

Customer confirmed that the fix works and script runs as expected.

dpaulson45 commented 4 months ago

Discussed this internally, we need to make a few more changes before we can approve and merge.