Public/Logging/Save-KritTcmPartialExport.ps1
|
<# .SYNOPSIS Krit.TCM wrapper over Microsoft365DSC helper Save-M365DSCPartialExport (category: Logging, module: M365DSCErrorHandler). .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: Save-M365DSCPartialExport Category: Logging Module: M365DSCErrorHandler Params: 2 #> function Save-KritTcmPartialExport { [CmdletBinding()] param( [Parameter(Mandatory)] [String] $Content, [Parameter(Mandatory)] [String] $FileName ) if (-not (Get-Command -Name 'Save-M365DSCPartialExport' -ErrorAction SilentlyContinue)) { throw '[KritTcm] Save-M365DSCPartialExport not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Save-M365DSCPartialExport' @PSBoundParameters } catch { Write-Error ('[KritTcm/Save-KritTcmPartialExport] ' + 'Save-M365DSCPartialExport' + ' failed: ' + $_.Exception.Message) throw } } |