Public/Export/Resolve-KriticalUtcmExportRelations.ps1
|
<# .SYNOPSIS Kritical.UTCM wrapper over Microsoft365DSC helper Resolve-M365DSCExportRelations (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: 3 #> function Resolve-KriticalUtcmExportRelations { [CmdletBinding()] param( [Parameter(Mandatory)] [String] $ResourceName, [Parameter(Mandatory)] [String] $InstanceName, [Parameter(Mandatory)] [Hashtable] $Results ) if (-not (Get-Command -Name 'Resolve-M365DSCExportRelations' -ErrorAction SilentlyContinue)) { throw '[KriticalUtcm] Resolve-M365DSCExportRelations not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Resolve-M365DSCExportRelations' @PSBoundParameters } catch { Write-Error ('[KriticalUtcm/Resolve-KriticalUtcmExportRelations] ' + 'Resolve-M365DSCExportRelations' + ' failed: ' + $_.Exception.Message) throw } } |