From 783550dd790180a531387526a340bba894f8aa53 Mon Sep 17 00:00:00 2001 From: Merill Fernando Date: Tue, 10 Nov 2026 07:32:59 +1100 Subject: [PATCH] fix(intune): correct the Trellix connector ID in MT.1098 The Trellix Mobile Security entry was missing the leading 7 of its ID, so a Trellix connector was shown by its raw ID. The correct ID, 74873197-ffec-4dfc-9816-db65f34c7cb9, was read from Graph after creating the connector in a tenant. Also point the source comment at the right Microsoft365DSC resource and note where the table differs. Co-Authored-By: Claude Opus 5.5 Entire-Checkpoint: 01M710786Z860FPYCCHA5A1TKY --- .../Test-MtMobileThreatDefenseConnectors.Tests.ps1 | 10 ++++++++++ tests/maester/intune/Test.MT.1098.ps1 | 7 ++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/powershell/tests/functions/Test-MtMobileThreatDefenseConnectors.Tests.ps1 b/powershell/tests/functions/Test-MtMobileThreatDefenseConnectors.Tests.ps1 index 78d7329bc1..9e9fc27024 100644 --- a/powershell/tests/functions/Test-MtMobileThreatDefenseConnectors.Tests.ps1 +++ b/powershell/tests/functions/Test-MtMobileThreatDefenseConnectors.Tests.ps1 @@ -94,6 +94,16 @@ Describe 'Test-MtMobileThreatDefenseConnectors' { $script:Result | Should -BeLike '*Microsoft Defender for Endpoint*' } + It 'Names the connector from its ID' -ForEach @( + @{ Id = '74873197-ffec-4dfc-9816-db65f34c7cb9'; Name = 'Trellix Mobile Security' } + @{ Id = 'c2b688fe-48c0-464b-a89c-67041aa8fcb2'; Name = 'Windows Security Center' } + ) { + $script:Connector.id = $Id + + Test-MtMobileThreatDefenseConnectors | Should -BeTrue + $script:Result | Should -BeLike "*| $Name |*" + } + 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..910a9424ab 100644 --- a/tests/maester/intune/Test.MT.1098.ps1 +++ b/tests/maester/intune/Test.MT.1098.ps1 @@ -35,8 +35,9 @@ [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseSingularNouns', '', Justification = 'Multiple MTD connectors can exist.')] param() - # MTD Connector IDs and Names - # Source: https://github.com/microsoft/Microsoft365DSC/blob/Dev/Modules/Microsoft365DSC/DSCResources/MSFT_IntuneDeviceConfigurationPolicyWindows10/MSFT_IntuneDeviceConfigurationPolicyWindows10.psm1 + # MTD connector IDs and display names, used only to name connectors in the result. + # Based on https://github.com/microsoft/Microsoft365DSC/blob/Dev/Modules/Microsoft365DSC/DscResources/MSFT_IntuneMobileThreatDefenseConnector/MSFT_IntuneMobileThreatDefenseConnector.psm1 + # Windows Security Center and Trellix differ from that file; both were checked against the IDs Graph returns in a tenant. iVerify is not in that file. $mtdConnectorInformation = @{ '2c7790de-8b02-4814-85cf-e0c59380dee8' = 'Lookout for Work' '28fd67fd-b179-4629-a8b0-dad420b697c7' = 'Symantec Endpoint Protection' @@ -46,7 +47,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'