Public/Module/Uninstall-KriticalUtcmOutdatedDependencies.ps1
|
<# .SYNOPSIS Kritical.UTCM wrapper over Microsoft365DSC helper Uninstall-M365DSCOutdatedDependencies (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: 0 #> function Uninstall-KriticalUtcmOutdatedDependencies { [CmdletBinding()] param() if (-not (Get-Command -Name 'Uninstall-M365DSCOutdatedDependencies' -ErrorAction SilentlyContinue)) { throw '[KriticalUtcm] Uninstall-M365DSCOutdatedDependencies not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Uninstall-M365DSCOutdatedDependencies' @PSBoundParameters } catch { Write-Error ('[KriticalUtcm/Uninstall-KriticalUtcmOutdatedDependencies] ' + 'Uninstall-M365DSCOutdatedDependencies' + ' failed: ' + $_.Exception.Message) throw } } |