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