From eef6d8d1484efe54ff692505ceb0a91cfd51630a Mon Sep 17 00:00:00 2001 From: Julien Ly Date: Mon, 9 Nov 2026 18:52:20 +0100 Subject: [PATCH] fix(intune): name the Trellix connector in MT.1098 The ID table had 4873197-ffec-4dfc-9816-db65f34c7cb9, with seven hex characters in its first block, so a Trellix connector was shown by its raw ID. A Trellix Mobile Security connector created in the Intune admin center gets 74873197-ffec-4dfc-9816-db65f34c7cb9. --- .../Test-MtMobileThreatDefenseConnectors.Tests.ps1 | 8 ++++++++ tests/maester/intune/Test.MT.1098.ps1 | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/powershell/tests/functions/Test-MtMobileThreatDefenseConnectors.Tests.ps1 b/powershell/tests/functions/Test-MtMobileThreatDefenseConnectors.Tests.ps1 index 78d7329bc1..3a2a14fc1a 100644 --- a/powershell/tests/functions/Test-MtMobileThreatDefenseConnectors.Tests.ps1 +++ b/powershell/tests/functions/Test-MtMobileThreatDefenseConnectors.Tests.ps1 @@ -94,6 +94,14 @@ Describe 'Test-MtMobileThreatDefenseConnectors' { $script:Result | Should -BeLike '*Microsoft Defender for Endpoint*' } + It 'Names the Trellix connector by the ID Intune assigns to it' { + $script:Connector.id = '74873197-ffec-4dfc-9816-db65f34c7cb9' + + Test-MtMobileThreatDefenseConnectors | Should -BeTrue + $script:Result | Should -BeLike '*| Trellix Mobile Security |*' + $script:Result | Should -Not -BeLike '*74873197*' + } + It 'Escapes unknown connector IDs and states in the report table' { $script:Connector.id = '[link](https://example.test) | extra' $script:Connector.partnerState = '**unknown** | extra' diff --git a/tests/maester/intune/Test.MT.1098.ps1 b/tests/maester/intune/Test.MT.1098.ps1 index bb8c2b8115..a49ba3d649 100644 --- a/tests/maester/intune/Test.MT.1098.ps1 +++ b/tests/maester/intune/Test.MT.1098.ps1 @@ -46,7 +46,7 @@ '860d3ab4-8fd1-45f5-89cd-ecf51e4f92e5' = 'BETTER Mobile Security' '870b252b-0ef0-4707-8847-50fc571472b3' = 'Sophos' '1f58d6d2-02cc-4c80-b008-1bfe7396a10a' = 'Jamf Trust' - '4873197-ffec-4dfc-9816-db65f34c7cb9' = 'Trellix Mobile Security' + '74873197-ffec-4dfc-9816-db65f34c7cb9' = 'Trellix Mobile Security' 'a447eca6-a986-4d3f-9838-5862bf50776c' = 'CylancePROTECT Mobile' '4928f0f6-2660-4f69-b4c5-5170ec921f7b' = 'Trend Micro' 'bb13fe25-ce1f-45aa-b278-cabbc6b9072e' = 'SentinelOne'