Public/Intune/Convert-KriticalUtcmDRGComplexTypeToHashtable.ps1
|
<# .SYNOPSIS Kritical.UTCM wrapper over Microsoft365DSC helper Convert-M365DSCDRGComplexTypeToHashtable (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 Convert-KriticalUtcmDRGComplexTypeToHashtable { [CmdletBinding()] param( [Parameter(Mandatory)] [Object] $ComplexObject, [SwitchParameter] $SingleLevel, [SwitchParameter] $ExcludeUnchangedProperties ) if (-not (Get-Command -Name 'Convert-M365DSCDRGComplexTypeToHashtable' -ErrorAction SilentlyContinue)) { throw '[KriticalUtcm] Convert-M365DSCDRGComplexTypeToHashtable not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Convert-M365DSCDRGComplexTypeToHashtable' @PSBoundParameters } catch { Write-Error ('[KriticalUtcm/Convert-KriticalUtcmDRGComplexTypeToHashtable] ' + 'Convert-M365DSCDRGComplexTypeToHashtable' + ' failed: ' + $_.Exception.Message) throw } } |