Public/Export/Export-KriticalUtcmConfiguration.ps1
|
<# .SYNOPSIS Kritical.UTCM wrapper over Microsoft365DSC helper Export-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: 24 #> function Export-KriticalUtcmConfiguration { [CmdletBinding()] param( [SwitchParameter] $LaunchWebUI, [String] $Path, [String] $FileName, [String] $ConfigurationName, [String[]] $Components, [String[]] $ExcludeComponents, [String[]] $Workloads, [String] $Mode, [Boolean] $GenerateInfo, [Hashtable] $Filters, [String] $ApplicationId, [String] $TenantId, [String] $ApplicationSecret, [String] $CertificateThumbprint, [PSCredential] $Credential, [PSCredential] $CertificatePassword, [String] $CertificatePath, [SwitchParameter] $ManagedIdentity, [String[]] $AccessTokens, [SwitchParameter] $Validate, [SwitchParameter] $Parallel, [Hashtable] $TokenReplacement, [SwitchParameter] $WithStatistics, [SwitchParameter] $IncludeDependencies ) if (-not (Get-Command -Name 'Export-M365DSCConfiguration' -ErrorAction SilentlyContinue)) { throw '[KriticalUtcm] Export-M365DSCConfiguration not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Export-M365DSCConfiguration' @PSBoundParameters } catch { Write-Error ('[KriticalUtcm/Export-KriticalUtcmConfiguration] ' + 'Export-M365DSCConfiguration' + ' failed: ' + $_.Exception.Message) throw } } |