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