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