Public/Module/Update-KritTcmModule.ps1
|
<# .SYNOPSIS Krit.TCM wrapper over Microsoft365DSC helper Update-M365DSCModule (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: Update-M365DSCModule Category: Module Module: M365DSCModuleMgmt Params: 5 #> function Update-KritTcmModule { [CmdletBinding()] param( [Object] $Scope, [String] $Proxy, [String] $BaseRepository, [String] $DependencyRepository, [SwitchParameter] $NoUninstall ) if (-not (Get-Command -Name 'Update-M365DSCModule' -ErrorAction SilentlyContinue)) { throw '[KritTcm] Update-M365DSCModule not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Update-M365DSCModule' @PSBoundParameters } catch { Write-Error ('[KritTcm/Update-KritTcmModule] ' + 'Update-M365DSCModule' + ' failed: ' + $_.Exception.Message) throw } } |