Public/Intune/Export-KritTcmIntuneSettingCatalogPolicySettings.ps1
|
<# .SYNOPSIS Krit.TCM wrapper over Microsoft365DSC helper Export-IntuneSettingCatalogPolicySettings (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: Export-IntuneSettingCatalogPolicySettings Category: Intune Module: M365DSCIntuneUtil Params: 7 #> function Export-KritTcmIntuneSettingCatalogPolicySettings { [CmdletBinding()] param( [Parameter(Mandatory)] [Object] $Settings, [Parameter(Mandatory)] [Hashtable] $ReturnHashtable, [Parameter(Mandatory)] [Object] $SettingInstance, [Parameter(Mandatory)] [Object] $SettingDefinitions, [Parameter(Mandatory)] [Array] $AllSettingDefinitions, [SwitchParameter] $IsRoot, [SwitchParameter] $ContainsDeviceAndUserSettings ) if (-not (Get-Command -Name 'Export-IntuneSettingCatalogPolicySettings' -ErrorAction SilentlyContinue)) { throw '[KritTcm] Export-IntuneSettingCatalogPolicySettings not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Export-IntuneSettingCatalogPolicySettings' @PSBoundParameters } catch { Write-Error ('[KritTcm/Export-KritTcmIntuneSettingCatalogPolicySettings] ' + 'Export-IntuneSettingCatalogPolicySettings' + ' failed: ' + $_.Exception.Message) throw } } |