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