Public/Intune/Compare-KritTcmComplexObject.ps1
|
<# .SYNOPSIS Krit.TCM wrapper over Microsoft365DSC helper Compare-M365DSCComplexObject (category: Intune, module: M365DSCDRGUtil). .DESCRIPTION Auto-scaffolded wave .1514 by New-KritTcmFromM365DscHelpers.ps1. Thin delegating passthrough — logic stays in Microsoft365DSC upstream; Krit.TCM provides the friendly namespace + citation registration for HARD RULE 20 discipline. Install-Module Microsoft365DSC -Scope CurrentUser BEFORE calling. .NOTES Wave .1514. Underlying cmdlet: Compare-M365DSCComplexObject Category: Intune Module: M365DSCDRGUtil Params: 3 #> function Compare-KritTcmComplexObject { [CmdletBinding()] param( [Object] $Source, [Object] $Target, [Parameter(Mandatory)] [String] $PropertyName ) if (-not (Get-Command -Name 'Compare-M365DSCComplexObject' -ErrorAction SilentlyContinue)) { throw '[KritTcm] Compare-M365DSCComplexObject not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Compare-M365DSCComplexObject' @PSBoundParameters } catch { Write-Error ('[KritTcm/Compare-KritTcmComplexObject] ' + 'Compare-M365DSCComplexObject' + ' failed: ' + $_.Exception.Message) throw } } |