Ported from Micke-K/IntuneManagement 3.10.1.x-3.11.0 (MIT): - Win32 app install/uninstall scripts are exported (#ScriptInfo plus the script files next to the JSON) and recreated on import and copy. - New object type Quality Updates (Policies) (windowsQualityUpdatePolicies); the old type is titled "Quality Updates (Profiles)". - SortJsonProperties setting writes exported JSON with sorted properties for stable diffs; always on for headless export. - EndpointManager.psm1 three-way merged with upstream (page-size flags, app fixes). UI-only changes were not taken.
Headless Runtime
This folder contains the reusable CLI module for the repo.
Module
Exported commands
Get-DefaultIntunePolicyObjectTypesExport-IntunePoliciesImport-IntunePoliciesInvoke-IntunePolicyAction
Example
Import-Module ./Headless/IntuneManagement.Headless.psd1
Export-IntunePolicies `
-TenantId "<source-tenant-id>" `
-AppId "<app-id>" `
-Secret "<client-secret>" `
-ExportPath "/tmp/intune-export"
Export-IntunePolicies `
-TenantId "<source-tenant-id>" `
-AuthMode Browser `
-RedirectUri "http://localhost" `
-ExportPath "/tmp/intune-export"