Intune Policies for Business Premium
This repository contains exported JSON formatted Intune Device Management Configuration Policies.
For more details information and use, please see the internal LegitiIT guides.
Running
IMPORTANT - These scripts are designed to run under PowerShell 7 (Core). They will not run with the in-built PowerShell 5.1. You can install PowerShell using the following command.
winget install --id Microsoft.PowerShell --source winget
FormatPolicies.ps1
FormatPolicies.ps1 is used to reformat a downloaded JSON Intune Policie into a human readable format.
.\FormatPolicies.ps1 -jsonfile <NAMEOFFILE> -output ./policies/policiename.json
ImportPolicies.ps1
ImportPolicies.ps1 is used to import the policies from the policies folder.
When you run the script it will ask you to sign into the tenant. Once signed in it will then crycle through the policies in the policies folder and import them.
pwsh> .\ImportPolicies.ps1
✅ ASRRules.json - successfully imported!
✅ bitlocker.json - successfully imported!
✅ disableenumerationsam.json - successfully imported!
✅ disablepua.json - successfully imported!
✅ edge.json - successfully imported!
✅ LAPS.json - successfully imported!
✅ OneDrive.json - successfully imported!
✅ passwordhistory.json - successfully imported!
Description
Languages
PowerShell
100%