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