Move the fzf folder browser to Scripts/Private/Select-FolderPath.ps1 so the launcher can use it too. Full tenant export root, tenant A and B export folders and the report folder of the offline compare, the earlier-export choice of the drift check and the report paths now open the picker. It starts at the nearest existing folder, falls back to a plain prompt without fzf and understands ~ and quotes.
20 KiB
20 KiB
macOS Intune Toolkit Changelog
2026-11-24 — v4.6.2 — Folder picker in the launcher
Changed
Scripts/Private/Select-FolderPath.ps1(new, shared)- The fzf folder browser (browse, create new folder, type a path) moved out of the TUI script so the launcher can use it too. When the start path does not exist it opens at the nearest existing parent. Without
fzfit falls back to a plain prompt, with~and quotes handled and an optional default.
- The fzf folder browser (browse, create new folder, type a path) moved out of the TUI script so the launcher can use it too. When the start path does not exist it opens at the nearest existing parent. Without
Start-IntuneToolkit.ps1- Folder prompts now use the picker: export root of Full tenant export, the export folders of tenants A and B plus the output folder in Compare two tenant exports (B opens next to A), the earlier-export choice of the drift check (answer
b), and the paths in Generate reports.
- Folder prompts now use the picker: export root of Full tenant export, the export folders of tenants A and B plus the output folder in Compare two tenant exports (B opens next to A), the earlier-export choice of the drift check (answer
2026-11-24 — v4.6.1 — Sequential menu numbers
Changed
Start-IntuneToolkit.ps1- Menu numbers were whatever each item was given when it was added (1, 2, 23, 7, 5, 6, 3, ...). The menu is now a list of entries in display order and the numbers 1-24 are assigned automatically, so adding or moving an entry never needs renumbering. Dispatch still uses stable internal ids. Numbers for items 3 and up changed; the README reference to "delete tenant auth and app registration" is now item 24.
2026-11-24 — v4.6.0 — Upstream 3.10/3.11 fixes, faster export, lazy migration, drift, bulk scope tags
Added
Scripts/Bulk-ScopeTags.ps1(menu item 24)- Add, replace or remove scope tags across object types (optionally by name filter), or clean up tag ids that no longer exist. Shows the plan per type, supports
-WhatIf,-Forceand non-interactive use (-Action,-ScopeTags,-ObjectTypes,-NameFilter). Applies changes with batched PATCH requests; objects whose tag list would not change are skipped. Design follows upstream 4.0Set-GraphBulkScopeTags.
- Add, replace or remove scope tags across object types (optionally by name filter), or clean up tag ids that no longer exist. Shows the plan per type, supports
- Drift check in menu item 23: after a full export, offers to compare with the newest earlier export of the same tenant (assignments included) and writes the report to
<root>/_drift/<old>-to-<new>/. - Quality Updates (Policies) object type (
windowsQualityUpdatePolicies, IdQualityUpdatePolicies); the old type is titled Quality Updates (Profiles). - Win32 app install/uninstall scripts are exported (
#ScriptInfo, plus the script files next to the JSON) and re-created on import and copy (upstream 3.10.1.18/3.10.3). SortJsonPropertiessetting: exported JSON has sorted properties for stable diffs. Always on for headless export.-NoBatchApionExport-Policies.ps1/Start-HeadlessIntune.ps1/Export-IntunePolicies.Compare-Tenants.pyaccepts a folder that contains a single export folder (e.g.SSD-260707holdingExports/).
Changed
- Headless export uses the Graph batch API by default (20 objects per call;
-NoBatchApifalls back to one call per object). Run-level settings overrides ($global:SettingOverrides, set by the headless layer, never persisted) make this possible. - Migration creates only what is used: with Import assignments, Entra groups are looked up or created in the target tenant only when an imported object references them (previously every exported group was created). Assignment filters that exist in the export but not in the target are created on demand too (needs Replace dependency ids). Synced source groups log a warning and are created as cloud groups. Group lookup now escapes apostrophes in names.
- New cloud groups get a random 10-character mailNickname like the Entra portal (was name + timestamp).
- Merged upstream 3.10.1.x–3.11.0 changes to
EndpointManager.psm1(page-size flags, app fixes). Not ported: UI-only changes, system-browser sign-in, update check, the ADMX/registry import tool fixes (noIntuneTools.psm1in this fork).
2026-11-24 — v4.5.2 — Shell wrapper
Added
intune(repo root, bash)- Start the toolkit without typing
pwsh:./intuneopens the launcher,./intune -TenantId <id>passes parameters to it, and./intune <Script> [args]runs anyScripts/<Script>.ps1or.py(e.g.intune Export-Policies -TenantId <id> -ExportPath ~/out,intune Compare-Tenants --root-a ... --root-b ...). Resolves symlinks, soln -s "$PWD/intune" ~/.local/bin/intuneworks from anywhere. Prints a clear message whenpwshorpython3is missing and lists available scripts for an unknown name.
- Start the toolkit without typing
2026-11-24 — v4.5.1 — Full tenant export menu entry
Added
Start-IntuneToolkit.ps1- New menu item 23. Full tenant export (all types + assignments, dated folder). Asks for an export root folder (remembered in
Settings.jsonasFullExportRoot, default~/Local/IntuneExports), then exports every default object type with assignments for the current tenant into<root>/<TenantName>-yymmdd(adds-HHmmif that folder already exists). Pair with item 22 to see drift between two exports of the same tenant.
- New menu item 23. Full tenant export (all types + assignments, dated folder). Asks for an export root folder (remembered in
2026-11-24 — v4.5.0 — Offline tenant comparison
Added
Scripts/Compare-Tenants.py- Compares two export folders (no Graph calls) across every common category — Settings Catalog, device configuration, compliance, Autopilot, ESP, roles, apps, etc. — by flattening each object and ignoring ids, timestamps, scope tags, OData metadata and names.
- Matches policies by name after stripping per-tenant prefixes (
--strip-a,--strip-b, regex), then by fuzzy name similarity, then by near-identical content (--no-fuzzyto disable). GUIDs are resolved to names via the exported Groups/AssignmentFilters; unresolved GUIDs are masked. --include-assignmentsalso compares assignments (group names, filters, intent, role assignment members/scopes).- Writes
tenant-comparison.md(per-category summary, only-in-A/B, setting-level diffs, fuzzy matches to verify) andtenant-comparison.csv.
Changed
Start-IntuneToolkit.ps1- New menu item 22. Compare two tenant exports (offline) in the Reporting group. Prompts for both export folders, labels, prefix regexes, output folder, assignments and fuzzy matching, then runs
Scripts/Compare-Tenants.py. No tenant connection needed.
- New menu item 22. Compare two tenant exports (offline) in the Reporting group. Prompts for both export folders, labels, prefix regexes, output folder, assignments and fuzzy matching, then runs
2026-11-24 — v4.4.3 — Create new folder in folder browser
Added
Scripts/Private/Start-IntuneManagementTui.ps1Select-FolderPathhas a new [Create new folder] entry. It asks for a name, creates the folder inside the current one and moves into it. Invalid names and creation errors are reported without leaving the browser.
2026-11-24 — v4.4.2 — Export built-in Intune roles, fix ASCII header failure
Fixed
Extensions/MSGraph.psm1/Extensions/MSALAuthentication.psm1- Every Graph call failed with
Request headers must contain only ASCII characterswhen PowerShell ran with an en-US culture: the unusedExpiresOnrequest header held a date with a U+202F space before AM/PM. Header removed (nothing reads it).
- Every Graph call failed with
Changed
Extensions/EndpointManager.psm1(Role Definitions)- Export now includes built-in roles with their role assignments (was custom roles only).
- Import skips creating built-in roles. When Import assignments is enabled, their assignments are still recreated against the built-in role id (same in every tenant). Custom-role behaviour is unchanged.
2026-08-07 — v4.4.1 — Reorder TUI menu into logical groups
Changed
Start-IntuneToolkit.ps1- Menu had grown by prepending each new feature to the top, so items ended up in reverse-add order with no relation between neighbors. Reordered into groups — Export/Import, Bulk operations, Baselines & compliance, Reporting, Tenant & auth admin — with Exit last. Item numbers (used for dispatch) are unchanged, only display order moved, so no other script or doc references needed updating.
2026-08-07 — v4.4.0 — Folder browser for Export/Import path prompts
Added
Scripts/Private/Start-IntuneManagementTui.ps1- New
Select-FolderPathhelper: whenfzfis available, the Export/Import root folder prompt (and the report flow's export/backup-root/output-dir prompts) becomes an interactive folder browser — navigate into subfolders, go up with.., confirm the current folder, or type a path manually.Read-Hostalone has no tab-completion (that's a top-level PSReadLine feature, not available to script prompts), so this reuses thefzfdependency already required for menus instead of building custom completion. - Falls back to a plain
Read-Hostprompt whenfzfisn't installed — no regression from prior behavior.
- New
2026-08-07 — v4.3.1 — Fix redundant action prompt
Fixed
Scripts/Private/Start-IntuneManagementTui.ps1- Choosing 1. Export policies or 2. Import policies in the launcher still re-asked "Select action" (Export/Import/DeployCISBaseline/GenerateReports) — the same missing-passthrough issue as the tenant re-prompt fix below, just for
-Action. Now accepts-Actionand skips the prompt when it's already supplied.
- Choosing 1. Export policies or 2. Import policies in the launcher still re-asked "Select action" (Export/Import/DeployCISBaseline/GenerateReports) — the same missing-passthrough issue as the tenant re-prompt fix below, just for
Start-IntuneToolkit.ps1/Scripts/Start-HeadlessIntune.ps1- Menu items 1/2 now pass
-Action Export/-Action Importthrough to the headless script and on to the TUI.
- Menu items 1/2 now pass
2026-08-07 — v4.3.0 — Bulk delete tool and TUI fixes
Added
Scripts/Bulk-DeletePolicies.ps1- Select object type, filter by name, multi-select objects, and delete them from the tenant.
- Requires typing
DELETEto confirm since the operation is irreversible. Supports-WhatIfdry-run. - Wired into
Start-IntuneToolkit.ps1as menu item 21. Bulk delete policies.
Fixed
Start-IntuneToolkit.ps1- Fixed an infinite loop when
fzfis not installed: the numbered-menu fallback returned"EXIT"for the tenant-selection Exit option, but the check only matched the fzf path's"[Exit]"string, so choosing Exit was silently ignored and the tenant became the literal string"EXIT".
- Fixed an infinite loop when
Scripts/Private/Start-IntuneManagementTui.ps1- The interactive Export/Import/GenerateReports/DeployCISBaseline flow always re-prompted for a Tenant ID even when the tenant was already selected in the outer launcher, because it was invoked with no parameters and had an empty
param()block. It now accepts-TenantIdand skips its three tenant prompts when the value is already supplied. - Clarified the "Name filter" prompt text — it's a plain case-insensitive substring match, not a regex (the underlying match escapes the value via
[RegEx]::Escape()), so the old'^Win-OIB-'example was misleading.
- The interactive Export/Import/GenerateReports/DeployCISBaseline flow always re-prompted for a Tenant ID even when the tenant was already selected in the outer launcher, because it was invoked with no parameters and had an empty
Scripts/Start-HeadlessIntune.ps1- Passes
-TenantIdthrough toStart-IntuneManagementTui.ps1so the fix above takes effect.
- Passes
2026-06-23 — v4.2.0 — Entra directory role membership export
Added
-
Scripts/Export-EntraRoleMembership.ps1- Exports all active and PIM-eligible Microsoft Entra directory role memberships to CSV.
- Expands group-assigned roles to transitive group members.
- Marks whether each role is privileged.
- Supports the toolkit's standard
-AuthMode(AppOnly,Browser,DeviceCode) and reads saved credentials fromSettings.json/macOS Keychain.
-
Start-IntuneToolkit.ps1- Added menu item 20. Export Entra role membership that launches the new script and prompts for the CSV output path.
-
README.md- Listed
Scripts/Export-EntraRoleMembership.ps1in the entry points and documented its purpose.
- Listed
Repository hygiene
.gitignore- Ignore the local
accounts/folder and stray operational shell scripts (deploy.sh,restart_gateways.sh).
- Ignore the local
2026-06-22 — Expanded settings report coverage and Conditional Access documentation
Added
-
Scripts/Export-SettingsReport.py- Greatly expanded coverage: Settings Catalog, Compliance Policies V2, Endpoint Security, Device Management Intents, Administrative Templates, Device Configuration (with OMA-URI expansion), Compliance Policies V1, PowerShell/Shell/Compliance/Health scripts (base64-decoded previews), App Protection, App Configuration, Update Policies, Enrollment restrictions, Autopilot, W365, Filters, and more.
- Added dedicated processors for intent-style settings (
_Settings.jsoncompanion files) and ADMX definition values. - Added base64 decoding for script content with a configurable preview length.
-
Scripts/Invoke-ConditionalAccessDocumentation.ps1- New menu-driven Conditional Access policy documentation script (menu item 19 in
Start-IntuneToolkit.ps1). - Exports CA policies to CSV and optionally Excel, resolving object IDs to display names.
- New menu-driven Conditional Access policy documentation script (menu item 19 in
-
Start-IntuneToolkit.ps1- Added menu item 19. Document Conditional Access policies.
Fixed
.gitignore- Ignore
Scripts/ConditionalAccessDocumentation.csvand.xlsxoutput files so tenant-specific documentation is not committed by accident.
- Ignore
2026-06-14 — Auto-export Settings Catalog definitions for report resolution
Added
-
Extensions/EndpointManager.psm1Start-PostExportSettingsCatalognow auto-exports/deviceManagement/configurationSettingsto<backup-root>/configurationSettings.jsonthe first time a Settings Catalog policy is exported.- New helper
Start-ExportSettingsCatalogDefinitionsfetches all pages of setting definitions and writes them next to the policy folders. - This lets
Scripts/Export-SettingsReport.pyresolvesettingDefinitionIdvalues to the human-readable names shown in the Intune portal without any manual steps. - Errors during definition export are logged but do not fail the policy export.
-
Scripts/Export-SettingsReport.py- New
Platformcolumn betweenPolicyandSetting. - For Settings Catalog, platform is read from the
platformsfield (e.g.macOS,windows10). - For legacy policies, platform is inferred from
platform/platformTypeor from@odata.type(e.g.#microsoft.graph.iosCompliancePolicy→iOS).
- New
Fixed
-
Extensions/MSGraph.psm1Get-GraphMetaDatanow storesGraphMetaData.xmlin the cross-platform data folder (Get-CloudApiDataFolder) instead of the literal Windows path%LOCALAPPDATA%\CloudAPIPowerShellManagement\GraphMetaData.xml.- Removed the stray
%LOCALAPPDATA%\CloudAPIPowerShellManagementfolder from the repository and moved the existingGraphMetaData.xmlto the correct macOS app-data location.
-
Extensions/MSALAuthentication.psm1- On non-Windows platforms the toolkit now skips
TokenCacheHelperExcompilation with an informational log instead of throwing aSystem.Security.Cryptography.ProtectedData.dllerror. - Applied the same skip to the legacy
Add-MSALPrereq_oldfunction for consistency.
- On non-Windows platforms the toolkit now skips
-
.gitignore- Removed the literal
%LOCALAPPDATA%ignore patterns; keptGraphMetaData.xmlandCloudAPIPowerShellManagement/ignores as safeguards.
- Removed the literal
Modified
AGENTS.md- Added
Scripts/Export-SettingsReport.pyto the main entry points table and noted the automatic Settings Catalog name resolution.
- Added
2026-04-16 — v4.1.0 — Accountability, PIM & Auth Management
Modified
-
Scripts/Initialize-IntuneAuth.ps1- App registrations are now named after the authenticated Entra user (e.g.,
IntuneManagement-tomas.kracmar@cqre.net) instead of the local OS username. This improves audit-log traceability when multiple admins use the toolkit against the same tenant. - Added
-Deleteswitch to remove local tenant credentials (Settings.json+ macOS Keychain) without touching the Entra app registration. - Added
-DeleteAppswitch to delete both the Entra app registration and local credentials. - Onboarding now automatically caches the tenant display name after auth setup, so the TUI shows friendly names immediately.
- Added
Organization.Read.Allto theConnect-MgGraphscopes to support tenant name caching.
- App registrations are now named after the authenticated Entra user (e.g.,
-
Scripts/Start-IntuneToolkit.ps1- Added menu items 14 (delete local auth) and 15 (delete auth + app registration) to the TUI.
- Selecting "[+ Onboard new tenant]" now runs the auth initializer immediately and restarts the launcher, instead of dropping into the main menu for an unconfigured tenant.
- The TUI now exits cleanly after deleting tenant auth.
-
README.md- Added Accountability & PIM caveats section explaining the trade-offs of app-only auth versus delegated auth, and how app naming affects audit logs.
2026-04-13 — API Permissions Sync for Initialize-IntuneAuth.ps1
Modified
Scripts/Initialize-IntuneAuth.ps1- Unified the required Microsoft Graph application permissions into a single
$requiredRoleslist defined before app creation/reuse logic:DeviceManagementApps.ReadWrite.AllDeviceManagementConfiguration.ReadWrite.AllDeviceManagementManagedDevices.ReadWrite.AllDeviceManagementScripts.ReadWrite.AllDeviceManagementServiceConfig.ReadWrite.AllDeviceManagementRBAC.ReadWrite.AllGroup.ReadWrite.AllDirectory.Read.AllUser.Read.AllOrganization.Read.AllPolicy.ReadWrite.ConditionalAccessAgreement.ReadWrite.AllCloudPC.ReadWrite.AllApplication.Read.All
- Existing app patching: When reusing an existing app registration, the script now inspects its current
RequiredResourceAccess. If any required permissions are missing, it patches the app viaUpdate-MgApplication, refreshes the local app object, and the downstream admin-consent loop automatically grants consent for the newly added roles.
- Unified the required Microsoft Graph application permissions into a single
Prior delivered changes (context summary)
New scripts added
Scripts/Bulk-AppAssignment.ps1— bulk-assign apps to groups/All Users/All DevicesScripts/Bulk-AssignmentManager.ps1— add/remove assignments for any policy type using correct@odata.typeand bulk/assignendpointScripts/Backup-Restore-Assignments.ps1— JSON backup with cross-tenant group name resolutionScripts/Export-AssignmentsToCsv.ps1— CSV and Markdown documentation outputScripts/Bulk-RenamePolicies.ps1— search/replace, add/strip prefix across displayName/descriptionScripts/Bulk-DeviceOperations.ps1— delete/retire/wipe/lock/sync with-WhatIfsafeguardsScripts/Start-IntuneToolkit.ps1— unified reverse-numberedfzf-based launcherScripts/Initialize-IntuneAuth.ps1— one-time Entra app + secret + Keychain setup
Core / Extensions / Headless changes
Extensions/MSGraph.psm1Invoke-GraphRequestnow throws on 4xx/5xx HTTP errors (was silently returning null)- Added
-AllPagessupport toGet-GraphObjectsand toolkit queries for large tenants
Headless/IntuneManagement.Headless.psm1- Expanded
Get-DefaultIntunePolicyObjectTypesto ~45 types, includingDeviceManagementIntents - Threaded
NameSearchPattern/NameReplacePatternthrough export/import/action flows
- Expanded
- Settings Catalog fixes
- Uses
nameproperty instead ofdisplayNamefor queries/labels - Assignments use
#microsoft.graph.deviceManagementConfigurationPolicyAssignmentand the bulkPOST …/assignendpoint
- Uses
- TUI /
fzf- Spacebar toggle, Esc to go back, reverse numbering (10→1) in unified launcher
2026-04-13 — Declarative Baseline Deployer
Added
-
Scripts/Deploy-IntuneBaseline.ps1- YAML-driven one-click deployment of Intune policies + assignments to new tenants.
- Supports global and per-policy name mutations (
search/replaceorprefix). - Auto-creates cloud-only security groups if missing.
- Idempotent imports with configurable conflict resolution (
Skip,Update,Error). - Full
-WhatIfdry-run support. - Handles 20+ policy types including Settings Catalog (
nameproperty), EndpointSecurity (settings file companion upload), and Applications. - Integrates with existing auth stack (Settings.json / macOS Keychain).
-
Scripts/ConvertTo-IntuneBaseline.ps1- Converts an existing toolkit export folder into a baseline YAML skeleton.
- Maps folder names to baseline types, extracts display names, and generates empty assignment blocks.
-
Baselines/OpenIntuneBaseline.example.yaml- Example manifest demonstrating groups, mutations, policies, and assignments.
Dependencies
powershell-yamlmodule (auto-install prompt if missing).
2026-04-13 — Unified Launcher: Baseline Deployer Integration
Modified
Scripts/Start-IntuneToolkit.ps1- Added menu entries for baseline deployment:
10. Deploy baseline11. Deploy baseline (dry-run / WhatIf)
- Forwards
-WhatIfswitch correctly when dry-run option is selected. - Ensures
WhatIfflag is cleared between loop iterations to avoid leakage to other tools.
- Added menu entries for baseline deployment: