microsoft / CSS-Exchange

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

[Issue] - ExchangeExtendedProtectionManagement - Missing support for FQDN servernames in script #2018

Closed thmeyer-msft closed 1 month ago

thmeyer-msft commented 4 months ago

Provide Version Number 24.02.21.1812

Describe the issue When the shortname of a server can't be resolved the output of the script is empty. And no error message is generated.

Expected behavior

Script Output [02/22/2024 10:05:54] : Running Get-ExchangeServer to get list of all exchange servers [02/22/2024 10:05:57] : Running only on servers: Server1, Server2 [02/22/2024 10:05:57] : Showing Extended Protection Information Only [02/22/2024 10:05:57] : Calling: Get-ExtendedProtectionConfiguration [02/22/2024 10:05:57] : Calling: Invoke-ScriptBlockHandler [02/22/2024 10:05:57] : Running Invoke-Command without argument list [02/22/2024 10:05:59] : Failed to run Invoke-ScriptBlockHandler - [02/22/2024 10:05:59] : Exiting: Invoke-ScriptBlockHandler [02/22/2024 10:05:59] : Failed to connect to server Server1 [02/22/2024 10:05:59] : Calling: Get-ExtendedProtectionConfiguration [02/22/2024 10:05:59] : Calling: Invoke-ScriptBlockHandler [02/22/2024 10:05:59] : Running Invoke-Command without argument list [02/22/2024 10:06:02] : Failed to run Invoke-ScriptBlockHandler - [02/22/2024 10:06:02] : Exiting: Invoke-ScriptBlockHandler [02/22/2024 10:06:02] : Failed to connect to server Server2 [02/22/2024 10:06:02] : Working on server Server1 [02/22/2024 10:06:02] : Results for Server: Server1 [02/22/2024 10:06:02] : [02/22/2024 10:06:02] : [02/22/2024 10:06:02] : [02/22/2024 10:06:02] : [02/22/2024 10:06:02] : Working on server Server2 [02/22/2024 10:06:02] : Results for Server: Server2 [02/22/2024 10:06:02] : [02/22/2024 10:06:02] : [02/22/2024 10:06:02] : [02/22/2024 10:06:02] : [02/22/2024 10:06:02] : Do you have feedback regarding the script? Please email ExToolsFeedback@microsoft.com.

Additional context