feat(bulk): add bulk scope tag tool

Scripts/Bulk-ScopeTags.ps1 (menu item 24) adds, replaces or removes scope
tags across object types, optionally filtered by name, or cleans up tag
ids that no longer exist. Shows the plan per type, supports -WhatIf and
-Force, applies changes with batched PATCH requests and skips objects
whose tag list would not change. Design follows upstream 4.0
Set-GraphBulkScopeTags.
This commit is contained in:
2026-11-24 12:27:17 +01:00
parent df3cda9843
commit d55908e975
3 changed files with 473 additions and 0 deletions
+2
View File
@@ -339,6 +339,7 @@ $menuItems = @(
"4. Bulk assignment manager (policies)"
"8. Bulk rename policies"
"21. Bulk delete policies"
"24. Bulk scope tags (add / replace / remove / clean up)"
"9. Bulk device operations"
# Baselines & compliance
"10. Deploy baseline"
@@ -399,6 +400,7 @@ while($true)
7 { $script = "Scripts/Export-AssignmentsToCsv.ps1" }
8 { $script = "Scripts/Bulk-RenamePolicies.ps1" }
21 { $script = "Scripts/Bulk-DeletePolicies.ps1" }
24 { $script = "Scripts/Bulk-ScopeTags.ps1" }
9 { $script = "Scripts/Bulk-DeviceOperations.ps1" }
10 { $script = "Scripts/Deploy-IntuneBaseline.ps1" }
11 { $script = "Scripts/Deploy-IntuneBaseline.ps1" }