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