42 Commits
Author SHA1 Message Date
tomas.kracmar 0302286505 feat(import): create only the groups and filters an import references
With Import assignments, migration-table groups are no longer all looked
up or created up front. They are resolved on demand in
Update-JsonForEnvironment, so only groups referenced by imported objects
are created in the target tenant. 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. New groups get a random 10-character mailNickname like the
Entra portal; group lookup escapes apostrophes in names.
2026-11-24 12:27:16 +01:00
tomas.kracmar 523311700d feat(upstream): port Win32 scripts, quality update policies, sorted JSON
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.
2026-11-24 12:27:16 +01:00
tomas.kracmar 37ac448d94 feat(roles): export built-in Intune roles; fix ASCII header failure
- Drop the ExpiresOn request header. Under an en-US culture its date
  contains U+202F before AM/PM, so every Graph call failed with
  "Request headers must contain only ASCII characters". Nothing reads it.
- Export all role definitions with their assignments, including built-in
  roles (was custom only via isBuiltIn eq false).
- On import, skip creating built-in roles. When Import assignments is on,
  recreate their assignments against the exported role id (built-in ids
  are identical across tenants). Custom-role behaviour is unchanged.
2026-11-24 11:34:52 +01:00
tomas.kracmar 122aa2d4e3 fix(reporting): add Platform column and clean up Windows artifacts
- Export-SettingsReport.py: add Platform column for Settings Catalog
  (platforms field) and legacy policies (platform/platformType or
  @odata.type inference)
- MSGraph.psm1: store GraphMetaData.xml in cross-platform data folder
  (Get-CloudApiDataFolder) instead of literal %LOCALAPPDATA% path
- MSALAuthentication.psm1: skip TokenCacheHelperEx on non-Windows with
  an info log instead of failing on missing ProtectedData.dll
- .gitignore: remove literal %LOCALAPPDATA% patterns
- AGENTS.md, CHANGELOG: document reporting and cross-platform fixes
2026-06-22 11:56:55 +02:00
tomas.kracmar d3e0769799 release: v4.1.0 — restructure entry points, add CIS baselines, reporting tools and fzf hints
- Restructure launchers: Start-IntuneToolkit.ps1 moves to repo root;
  Start-HeadlessIntune.ps1 moves to Scripts/; TUI helper moves to Scripts/Private/
- Add AGENTS.md with project architecture, entry points, and security notes
- Add CIS M365 baseline assets (CISM365-v7, M365-CIS-Rapid) and reporting scripts
- Add Python reporting utilities (Export-SettingsReport, Export-AssignmentReport,
  Export-ObjectInventoryReport) and CA wizard helpers
- Update Deploy-IntuneBaseline.ps1 with Merge conflict resolution, ReportPath,
  and optimized group loading
- Update Initialize-IntuneAuth.ps1 with -RotateSecret and configurable secret expiry
- Update Extensions for Settings Catalog definition auto-export
- Update README with v4.1.0, new entry points and script catalog
- Bump VERSION to 4.1.0
- Harden .gitignore against .DS_Store, __pycache__, .venv-pdf/, local exports,
  Settings.json and IntuneManagement.log
2026-06-14 15:24:42 +02:00
tomas.kracmar e13d14edcb feat(toolkit): complete macOS Intune Toolkit v1
Core enhancements:
- Expanded default export/import scope to ~45 object types including DeviceManagementIntents
- Added -AllPages pagination support across Graph queries for large tenants
- Invoke-GraphRequest now throws on 4xx/5xx instead of silently returning null
- Added macOS Keychain fallback for secret retrieval in headless auth flow
- Added NameSearchPattern/NameReplacePattern mutation support through export/import forms

New toolkit scripts:
- Bulk-AppAssignment.ps1: bulk-assign apps to groups/All Users/All Devices
- Bulk-AssignmentManager.ps1: add/remove assignments for any policy type with correct @odata.type
- Backup-Restore-Assignments.ps1: JSON backup with cross-tenant group resolution
- Export-AssignmentsToCsv.ps1: CSV/Markdown documentation output
- Bulk-RenamePolicies.ps1: regex search/replace and prefix mutations
- Bulk-DeviceOperations.ps1: delete/retire/wipe/lock/sync with -WhatIf safeguards
- Start-IntuneManagementTui.ps1: interactive terminal UI for headless operations
- Create-IntuneManagementApp.ps1: helper for app registration setup

Updated existing scripts:
- Export-Policies.ps1 / Import-Policies.ps1: wired mutation params through
- Start-HeadlessIntune.ps1: integrated TUI and new parameter forwarding
2026-04-14 15:11:09 +02:00
tomas.kracmar 239e3ec16e Add browser auth for headless runs 2026-04-08 16:09:30 +02:00
tomas.kracmar 8fe71c0078 Add headless macOS CLI workflow 2026-04-08 15:18:32 +02:00
Mikael Karlsson 485a9de855 3.10.1 2025-09-14 14:15:15 +10:00
Mikael Karlsson 8952e2894a 3.10.0.8
Fix renaming Settings Catalog policies
2025-08-03 20:12:34 +10:00
Mikael Karlsson 968fb4866c 3.10.0.2
Fixed issue with importing Security Baseline 24H2.
2025-04-19 14:53:57 +10:00
Mikael Karlsson 8601a5b38e Initial 3.10.0 upload 2025-02-22 21:52:13 +11:00
Mykhailo-Roit 381967c8cf fix conditions 2025-01-09 15:40:21 +02:00
Mykhailo-Roit ff539f9ec1 feat: replace_with_assignments import type 2025-01-08 18:45:48 +02:00
Mikael Karlsson c6fcf58d4d 3.9.8 2024-10-12 12:53:24 +11:00
Mikael Karlsson c16f85a299 3.9.6 2024-04-22 21:48:16 +10:00
Mikael Karlsson 47968b4219 3.9.5 2024-01-24 21:25:53 +11:00
Mikael Karlsson f5613442bd 3.9.3 2023-12-11 18:58:13 +11:00
Mikael Karlsson ab7b062946 3.9.2 2023-10-17 20:34:44 +11:00
Mikael Karlsson ea3af64316 3.9.1 2023-08-30 20:07:18 +10:00
Mikael Karlsson 0fd868ff70 3.9.0 2023-05-04 22:00:12 +10:00
Mikael Karlsson ece28a649f 3.8.1 2023-01-26 22:29:21 +11:00
Mikael Karlsson 897309e48e 3.7.4 2022-11-22 21:54:51 +11:00
Mikael Karlsson d7f2d32771 3.7.2 2022-10-11 20:35:20 +11:00
Mikael Karlsson 37965cb290 3.7.0 2022-08-02 22:22:54 +10:00
Mikael Karlsson a60b83ede9 3.6.0 2022-06-29 22:56:52 +10:00
Mikael Karlsson 4571341763 3.5.0 2022-04-26 21:49:54 +10:00
Mikael Karlsson 46435b5717 3.4.0
New features and fixes
2022-03-01 17:54:14 +11:00
Mikael Karlsson 5534eb368e 3.3.3
Fixed displayName missing bug
2021-12-14 19:15:27 +11:00
Mikael Karlsson bc48d14176 3.3.2 2021-12-14 02:04:15 +11:00
Mikael Karlsson 2b9efd5c85 3.3.1 Beta 2021-10-28 21:30:21 +11:00
Mikael Karlsson 4add87884a 3.3.0
Beta release
2021-10-17 14:02:08 +11:00
Mikael Karlsson 5976b0bffd 3.2.3 2021-10-07 20:06:31 +11:00
Mikael Karlsson b852e9163c 3.2.2 2021-09-23 18:12:33 +10:00
Mikael Karlsson 95bd8fc07c 3.2.0 2021-08-15 20:54:37 +10:00
Mikael Karlsson d3a3ddef79 3.1.8 2021-07-18 16:57:46 +10:00
Mikael Karlsson fb46337f98 3.1.7 2021-07-12 20:24:27 +10:00
Mikael Karlsson 06688e7193 3.1.6 2021-07-07 21:50:48 +10:00
Mikael Karlsson e66814055d 3.1.3
Bulk Compare, Bulk Copy + bug fixes
2021-07-05 18:25:33 +10:00
Mikael Karlsson 1556c447c5 3.1.2
Support for deleting profiles/policies
2021-06-20 19:25:27 +10:00
Mikael Karlsson 18533494b2 3.1 changes 2021-06-08 19:02:25 +10:00
Micke c7f8cbe760 Version 3 Beta 1 - Complete re-write 2021-04-13 17:57:12 +10:00