Public/Logging/Set-KritTcmLoggingOption.ps1
|
<# .SYNOPSIS Krit.TCM wrapper over Microsoft365DSC helper Set-M365DSCLoggingOption (category: Logging, module: M365DSCLogEngine). .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-M365DSCLoggingOption Category: Logging Module: M365DSCLogEngine Params: 1 #> function Set-KritTcmLoggingOption { [CmdletBinding()] param( [Boolean] $IncludeNonDrifted ) if (-not (Get-Command -Name 'Set-M365DSCLoggingOption' -ErrorAction SilentlyContinue)) { throw '[KritTcm] Set-M365DSCLoggingOption not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Set-M365DSCLoggingOption' @PSBoundParameters } catch { Write-Error ('[KritTcm/Set-KritTcmLoggingOption] ' + 'Set-M365DSCLoggingOption' + ' failed: ' + $_.Exception.Message) throw } } |