Add Configuration Policy import/export scripts for all technology types #28
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
Several policies that were previously classified as Settings Catalog now have unique policy types with different
technologiesvalues (such aswindows365,microsoftSense,endpointPrivilegeManagement, etc.). These policies can no longer be imported with the existing Settings Catalog scripts, nor by Intune's native import/export feature, which were designed only for traditional MDM policies filtering bytechnologies has 'mdm'.Solution
This PR introduces a new ConfigurationPolicy folder with a comprehensive set of PowerShell scripts that mirror the functionality of existing scripts like
SettingsCatalog_Export.ps1andDeviceConfiguration_Import_FromJSON.ps1, but with support for all technology types.New Scripts Added
Technology Types Supported
Unlike the Settings Catalog scripts which only support
mdm, these Configuration Policy scripts support all technology types:mdm- Traditional Mobile Device Management (Settings Catalog)windows365- Windows 365 Cloud PC policiesmicrosoftSense- Microsoft Defender for Endpoint policiesendpointPrivilegeManagement- Endpoint Privilege Management policiesconfigManager- Configuration Manager policiesappleRemoteManagement- Apple Remote Management policiesUsage Example
Key Features
This solution enables administrators to backup, migrate, and automate management of modern Intune configuration policies across all supported technology types, addressing the gap left by the Settings Catalog scripts.
Original prompt
Fixes #27
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.