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