Public/Telemetry/Test-KriticalUtcmIsM365DSCTelemetryEnabled.ps1
|
<# .SYNOPSIS Kritical.UTCM wrapper over Microsoft365DSC helper Test-IsM365DSCTelemetryEnabled (category: Telemetry, module: M365DSCTelemetryEngine). .DESCRIPTION Thin delegating passthrough — logic stays in Microsoft365DSC upstream; Kritical.UTCM provides the friendly namespace + citation registration. Install-Module Microsoft365DSC -Scope CurrentUser BEFORE calling. .NOTES Category: Telemetry Module: M365DSCTelemetryEngine Params: 0 #> function Test-KriticalUtcmIsM365DSCTelemetryEnabled { [CmdletBinding()] param() if (-not (Get-Command -Name 'Test-IsM365DSCTelemetryEnabled' -ErrorAction SilentlyContinue)) { throw '[KriticalUtcm] Test-IsM365DSCTelemetryEnabled not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Test-IsM365DSCTelemetryEnabled' @PSBoundParameters } catch { Write-Error ('[KriticalUtcm/Test-KriticalUtcmIsM365DSCTelemetryEnabled] ' + 'Test-IsM365DSCTelemetryEnabled' + ' failed: ' + $_.Exception.Message) throw } } |