Public/Intune/Export-KriticalUtcmIntuneSettingCatalogPolicySettings.ps1
|
<# .SYNOPSIS Kritical.UTCM wrapper over Microsoft365DSC helper Export-IntuneSettingCatalogPolicySettings (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: 7 #> function Export-KriticalUtcmIntuneSettingCatalogPolicySettings { [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 '[KriticalUtcm] Export-IntuneSettingCatalogPolicySettings not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Export-IntuneSettingCatalogPolicySettings' @PSBoundParameters } catch { Write-Error ('[KriticalUtcm/Export-KriticalUtcmIntuneSettingCatalogPolicySettings] ' + 'Export-IntuneSettingCatalogPolicySettings' + ' failed: ' + $_.Exception.Message) throw } } |