Public/Compare/Compare-KriticalUtcmResourceState.ps1
|
<# .SYNOPSIS Kritical.UTCM wrapper over Microsoft365DSC helper Compare-M365DSCResourceState (category: Compare, module: M365DSCCompare). .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: Compare Module: M365DSCCompare Params: 7 #> function Compare-KriticalUtcmResourceState { [CmdletBinding()] param( [Parameter(Mandatory)] [String] $ResourceName, [Parameter(Mandatory)] [Hashtable] $DesiredValues, [Parameter(Mandatory)] [Hashtable] $CurrentValues, [String[]] $ExcludedProperties, [String[]] $IncludedProperties, [Func`5] $PostProcessing, [Object[]] $PostProcessingArgs ) if (-not (Get-Command -Name 'Compare-M365DSCResourceState' -ErrorAction SilentlyContinue)) { throw '[KriticalUtcm] Compare-M365DSCResourceState not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Compare-M365DSCResourceState' @PSBoundParameters } catch { Write-Error ('[KriticalUtcm/Compare-KriticalUtcmResourceState] ' + 'Compare-M365DSCResourceState' + ' failed: ' + $_.Exception.Message) throw } } |