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