I’ve taken the iOS Compliance policy settings recommendations from the ASD Blueprint for Secure Cloud and created an online JSON settings file here:
https://github.com/directorcia/bp/blob/main/Intune/Policies/ASD/ios-compliance.json
I’ve then created a PowerShell script here:
https://github.com/directorcia/Office365/blob/master/asd-ioscomp-get.ps1
with documentation here:
https://github.com/directorcia/Office365/wiki/ASD-iOS-Compliance-Policy-Check
that reads the online JSON file (or uses a local version if you want to use that) and compares the recommended ASD settings to those in your own Intune environment. Note, the script makes NO CHANGES to your environment, it simply reads the current settings.
It then produces the console output you see above and a HTML report like this:
You can refer to this page I also created:
https://github.com/directorcia/bp/wiki/iOS-Compliance-Policy-Settings-%E2%80%90-Security-Rationale
as to why these settings are important to the security of your M365 environment.
Look out for more scripts like this coming soon. I welcome any suggestion about improving this.