Public/Telemetry/Set-KriticalUtcmLCMConfiguration.ps1
|
<# .SYNOPSIS Kritical.UTCM wrapper over Microsoft365DSC helper Set-M365DSCLCMConfiguration (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: 1 #> function Set-KriticalUtcmLCMConfiguration { [CmdletBinding()] param( [Parameter(Mandatory)] [Object] $LCMConfig ) if (-not (Get-Command -Name 'Set-M365DSCLCMConfiguration' -ErrorAction SilentlyContinue)) { throw '[KriticalUtcm] Set-M365DSCLCMConfiguration not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Set-M365DSCLCMConfiguration' @PSBoundParameters } catch { Write-Error ('[KriticalUtcm/Set-KriticalUtcmLCMConfiguration] ' + 'Set-M365DSCLCMConfiguration' + ' failed: ' + $_.Exception.Message) throw } } |