Public/Utility/Update-KriticalUtcmAuthenticationTargets.ps1
|
<# .SYNOPSIS Kritical.UTCM wrapper over Microsoft365DSC helper Update-M365DSCAuthenticationTargets (category: Utility, module: M365DSCUtil). .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: Utility Module: M365DSCUtil Params: 1 #> function Update-KriticalUtcmAuthenticationTargets { [CmdletBinding()] param( [Parameter(Mandatory)] [Object[]] $Targets ) if (-not (Get-Command -Name 'Update-M365DSCAuthenticationTargets' -ErrorAction SilentlyContinue)) { throw '[KriticalUtcm] Update-M365DSCAuthenticationTargets not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Update-M365DSCAuthenticationTargets' @PSBoundParameters } catch { Write-Error ('[KriticalUtcm/Update-KriticalUtcmAuthenticationTargets] ' + 'Update-M365DSCAuthenticationTargets' + ' failed: ' + $_.Exception.Message) throw } } |