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