diff --git a/CHANGELOG.md b/CHANGELOG.md index 1089630d7b..de5497fdc5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,9 @@ * DEPENDENCIES * Updated Microsoft.Graph dependencies to version 2.17.0. * Updated MicrosoftTeams to version 6.1.0. +* MISC + * Telemetry + * Get operating system using faster method to speed up telemetry calls. # 1.24.403.1 diff --git a/Modules/Microsoft365DSC/Modules/M365DSCTelemetryEngine.psm1 b/Modules/Microsoft365DSC/Modules/M365DSCTelemetryEngine.psm1 index 15f1e908c3..bd1c2161a6 100644 --- a/Modules/Microsoft365DSC/Modules/M365DSCTelemetryEngine.psm1 +++ b/Modules/Microsoft365DSC/Modules/M365DSCTelemetryEngine.psm1 @@ -205,7 +205,7 @@ function Add-M365DSCTelemetryEvent { if ($null -eq $Global:M365DSCOSInfo) { - $Global:M365DSCOSInfo = (Get-ComputerInfo -Property OSName -ErrorAction SilentlyContinue).OSName + $Global:M365DSCOSInfo = (Get-CimInstance -ClassName Win32_OperatingSystem -Property Caption -ErrorAction SilentlyContinue).Caption } $Data.Add('M365DSCOSVersion', $Global:M365DSCOSInfo) }