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