Public/Telemetry/Set-KritTcmLCMConfiguration.ps1

<#
.SYNOPSIS
    Krit.TCM wrapper over Microsoft365DSC helper Set-M365DSCLCMConfiguration
    (category: Telemetry, module: M365DSCTelemetryEngine).

.DESCRIPTION
    Auto-scaffolded wave .1514 by New-KritTcmFromM365DscHelpers.ps1.
    Thin delegating passthrough — logic stays in Microsoft365DSC upstream;
    Krit.TCM provides the friendly namespace + citation registration
    for HARD RULE 20 discipline.

    Install-Module Microsoft365DSC -Scope CurrentUser BEFORE calling.

.NOTES
    Wave .1514. Underlying cmdlet: Set-M365DSCLCMConfiguration
    Category: Telemetry
    Module: M365DSCTelemetryEngine
    Params: 1
#>

function Set-KritTcmLCMConfiguration {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory)] [Object] $LCMConfig
    )

    if (-not (Get-Command -Name 'Set-M365DSCLCMConfiguration' -ErrorAction SilentlyContinue)) {
        throw '[KritTcm] Set-M365DSCLCMConfiguration not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run'
    }
    try {
        & 'Set-M365DSCLCMConfiguration' @PSBoundParameters
    } catch {
        Write-Error ('[KritTcm/Set-KritTcmLCMConfiguration] ' + 'Set-M365DSCLCMConfiguration' + ' failed: ' + $_.Exception.Message)
        throw
    }
}