Skip to content

PowerShellCrack/IntuneCustomComplianceSamples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intune Custom Compliance Samples

These are sample script for Intune Custom Compliance policies

Reference:

https://learn.microsoft.com/en-us/mem/intune/protect/compliance-custom-json

How to use them

Add the detection script to Intune

  1. Login into Intune Admin Center
  2. Navigate to Devices > Compliance > Scripts or Endpoint security > Device compliance > Scripts
  3. Click Add > Windows 10 or Later. Provide a Name, description, and publisher.
  4. Copy the contents of the script in the detection script settings. Then set:
    • Run this script using the logged on credentials > NO
    • Enforce script signature check > NO
    • Run script in 64 bit PowerShell Host > YES
  5. Click Next > Create

Creating the custom compliance Script

  1. Login into Intune Admin Center
  2. Go to Devices > Windows > Compliance
  3. Click Create policy > Windows 10 and Later. Click Create
  4. Provide a Name and description. Click Next
  5. On the Compliance settings tab, expand Custom Compliance
    • Set Custom compliance to Require
    • Under Select your discovery script, select Click to select, and select the script that corresponds to this compliance policy
    • Under Upload and validate the JSON file with your custom compliance settings, click the file icon and browse to the JSON file.
      • Verify the Settings name, Operator and Value are accurate. There can be multiple
  6. Click Next, Keep Action for noncompliance if this is being used for Autopilot
  7. Click Next, select a tag or tags if required
  8. Click Next, assign the policy to groups that contain either devices or users (recommend)
  9. Click Next > Create

About

Several custom Compliance scripts for Intune

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published