chore: updated for ACSC hardening

This commit is contained in:
2025-03-19 10:50:10 +10:00
parent 28f22c9be5
commit f4cf4c73fb
46 changed files with 11155 additions and 10862 deletions

View File

@ -1,41 +1,41 @@
![Header Image](https://legitit.com.au/wp-content/uploads/2021/11/logo.jpg)
# 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!
```
![Header Image](https://legitit.com.au/wp-content/uploads/2021/11/logo.jpg)
# 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!
```