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