Public/Module/Update-KriticalUtcmDependencies.ps1
|
<# .SYNOPSIS Kritical.UTCM wrapper over Microsoft365DSC helper Update-M365DSCDependencies (category: Module, module: M365DSCModuleMgmt). .DESCRIPTION Thin delegating passthrough — logic stays in Microsoft365DSC upstream; Kritical.UTCM provides the friendly namespace + citation registration. Install-Module Microsoft365DSC -Scope CurrentUser BEFORE calling. .NOTES Category: Module Module: M365DSCModuleMgmt Params: 7 #> function Update-KriticalUtcmDependencies { [CmdletBinding()] param( [SwitchParameter] $Force, [SwitchParameter] $ValidateOnly, [Object] $Scope, [String] $Proxy, [String] $Repository, [SwitchParameter] $UsePowerShellGet, [SwitchParameter] $Development ) if (-not (Get-Command -Name 'Update-M365DSCDependencies' -ErrorAction SilentlyContinue)) { throw '[KriticalUtcm] Update-M365DSCDependencies not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Update-M365DSCDependencies' @PSBoundParameters } catch { Write-Error ('[KriticalUtcm/Update-KriticalUtcmDependencies] ' + 'Update-M365DSCDependencies' + ' failed: ' + $_.Exception.Message) throw } } |