{"id":18653818,"url":"https://github.com/powershellcrack/intunecustomcompliancesamples","last_synced_at":"2026-02-08T00:02:25.826Z","repository":{"id":257479182,"uuid":"856920521","full_name":"PowerShellCrack/IntuneCustomComplianceSamples","owner":"PowerShellCrack","description":"Several custom Compliance scripts for Intune","archived":false,"fork":false,"pushed_at":"2024-11-06T16:23:22.000Z","size":18,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T16:16:35.761Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PowerShellCrack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-13T13:10:53.000Z","updated_at":"2024-12-08T09:06:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"37a54dad-73b2-49b9-a84f-860eba155f5d","html_url":"https://github.com/PowerShellCrack/IntuneCustomComplianceSamples","commit_stats":null,"previous_names":["powershellcrack/intunecustomcompliancesamples"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShellCrack%2FIntuneCustomComplianceSamples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShellCrack%2FIntuneCustomComplianceSamples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShellCrack%2FIntuneCustomComplianceSamples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShellCrack%2FIntuneCustomComplianceSamples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PowerShellCrack","download_url":"https://codeload.github.com/PowerShellCrack/IntuneCustomComplianceSamples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248441333,"owners_count":21103970,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T07:13:16.490Z","updated_at":"2026-02-08T00:02:25.700Z","avatar_url":"https://github.com/PowerShellCrack.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Intune Custom Compliance Samples\n\nThese are sample script for Intune Custom Compliance policies\n\n## Reference:\nhttps://learn.microsoft.com/en-us/mem/intune/protect/compliance-custom-json\n\n\n## How to use them\n\n### Add the detection script to Intune\n\n1. Login into [Intune Admin Center](https://intune.microsoft.com)\n2. Navigate to Devices \u003e Compliance \u003e Scripts or  Endpoint security \u003e Device compliance \u003e Scripts\n3. Click Add \u003e Windows 10 or Later. Provide a Name, description, and publisher.\n4. Copy the contents of the script in the detection script settings. Then set:\n    - Run this script using the logged on credentials \u003e NO\n    - Enforce script signature check \u003e NO\n    - Run script in 64 bit PowerShell Host \u003e YES\n5. Click Next \u003e Create\n\n### Creating the custom compliance Script\n\n1. Login into [Intune Admin Center](https://intune.microsoft.com)\n2. Go to Devices \u003e Windows \u003e Compliance\n3. Click Create policy \u003e Windows 10 and Later. Click Create\n4. Provide a Name and description. Click Next\n5. On the Compliance settings tab, expand _Custom Compliance_\n    - Set Custom compliance to Require\n    - Under Select your discovery script, select _Click to select_, and select the script that corresponds to this compliance policy\n    - Under _Upload and validate the JSON file with your custom compliance settings_, click the file icon and browse to the JSON file.\n        - Verify the Settings name, Operator and Value are accurate. There can be multiple\n6. Click Next, Keep Action for noncompliance if this is being used for Autopilot\n7. Click Next, select a tag or tags if required\n8. Click Next, assign the policy to groups that contain either devices or users (recommend)\n9. Click Next \u003e Create","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowershellcrack%2Fintunecustomcompliancesamples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpowershellcrack%2Fintunecustomcompliancesamples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowershellcrack%2Fintunecustomcompliancesamples/lists"}