Public/Export/Export-KritTcmConfiguration.ps1
|
<# .SYNOPSIS Krit.TCM wrapper over Microsoft365DSC helper Export-M365DSCConfiguration (category: Export, module: M365DSCExportUtil). .DESCRIPTION Auto-scaffolded wave .1514 by New-KritTcmFromM365DscHelpers.ps1. Thin delegating passthrough — logic stays in Microsoft365DSC upstream; Krit.TCM provides the friendly namespace + citation registration for HARD RULE 20 discipline. Install-Module Microsoft365DSC -Scope CurrentUser BEFORE calling. .NOTES Wave .1514. Underlying cmdlet: Export-M365DSCConfiguration Category: Export Module: M365DSCExportUtil Params: 24 #> function Export-KritTcmConfiguration { [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 '[KritTcm] Export-M365DSCConfiguration not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Export-M365DSCConfiguration' @PSBoundParameters } catch { Write-Error ('[KritTcm/Export-KritTcmConfiguration] ' + 'Export-M365DSCConfiguration' + ' failed: ' + $_.Exception.Message) throw } } |