Public/Intune/ConvertFrom-KriticalUtcmIntunePolicyAssignment.ps1
|
<# .SYNOPSIS Kritical.UTCM wrapper over Microsoft365DSC helper ConvertFrom-IntunePolicyAssignment (category: Intune, module: M365DSCIntuneUtil). .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: M365DSCIntuneUtil Params: 2 #> function ConvertFrom-KriticalUtcmIntunePolicyAssignment { [CmdletBinding()] param( [Parameter(Mandatory)] [Array] $Assignments, [Boolean] $IncludeDeviceFilter ) if (-not (Get-Command -Name 'ConvertFrom-IntunePolicyAssignment' -ErrorAction SilentlyContinue)) { throw '[KriticalUtcm] ConvertFrom-IntunePolicyAssignment not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'ConvertFrom-IntunePolicyAssignment' @PSBoundParameters } catch { Write-Error ('[KriticalUtcm/ConvertFrom-KriticalUtcmIntunePolicyAssignment] ' + 'ConvertFrom-IntunePolicyAssignment' + ' failed: ' + $_.Exception.Message) throw } } |