{"id":26848958,"url":"https://github.com/mrkhemant/intunecustomcompliance","last_synced_at":"2025-08-26T23:35:50.052Z","repository":{"id":284520578,"uuid":"955202191","full_name":"mrkhemant/IntuneCustomCompliance","owner":"mrkhemant","description":"Intune Custom Compliance Policy","archived":false,"fork":false,"pushed_at":"2025-03-26T09:35:59.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-24T18:15:33.183Z","etag":null,"topics":["compliance-policy","custom-device-compliance-policy-intune","customcompliancepolicyintune","intune","intune-administrator","intunecompliancepolicy","powershell-script"],"latest_commit_sha":null,"homepage":"","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/mrkhemant.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":"2025-03-26T09:16:42.000Z","updated_at":"2025-03-26T09:38:56.000Z","dependencies_parsed_at":"2025-03-26T10:38:06.775Z","dependency_job_id":null,"html_url":"https://github.com/mrkhemant/IntuneCustomCompliance","commit_stats":null,"previous_names":["mrkhemant/intunecustomcompliance"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mrkhemant/IntuneCustomCompliance","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrkhemant%2FIntuneCustomCompliance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrkhemant%2FIntuneCustomCompliance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrkhemant%2FIntuneCustomCompliance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrkhemant%2FIntuneCustomCompliance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrkhemant","download_url":"https://codeload.github.com/mrkhemant/IntuneCustomCompliance/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrkhemant%2FIntuneCustomCompliance/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272267400,"owners_count":24903676,"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","status":"online","status_checked_at":"2025-08-26T02:00:07.904Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["compliance-policy","custom-device-compliance-policy-intune","customcompliancepolicyintune","intune","intune-administrator","intunecompliancepolicy","powershell-script"],"created_at":"2025-03-30T21:23:52.922Z","updated_at":"2025-08-26T23:35:50.033Z","avatar_url":"https://github.com/mrkhemant.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"Custom Device Compliance Policy in Intune\n\nWith the Custom Device Compliance, you can able to create a create your own compliance. Below are the benefits for Custom device Compliance.\n\nWith the Intune help you can protect organizational data by requiring users and Device data with meet some requirements that’s called compliance policy.\nIn Intune we can set rules and settings that user and device must meet to be an compliant.\nWe can include actions on noncompliant device, User can alert if device is noncompliant.\nIt can be combined with the Conditional access to block user or device if not compliant.\nCan override the configuration of settings that you also manage through device configuration policies.\nBefore you start, be ready with the PowerShell and Jason File.\n\nYou can download PowerShell and use it.\n\n++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\nTo create a custom device compliance policy in Intune, you'll need to define a JSON file with the settings you want to check and a discovery script (PowerShell for Windows, any language for Linux) to evaluate those settings, then configure the policy to use these elements. \n\n1. Prerequisites:\nJSON File: Create a JSON file that defines the settings and values you want to use for custom compliance. \nDiscovery Script: Create a script (PowerShell for Windows, any language for Linux) that can evaluate the settings defined in the JSON file. \nUpload Script: Upload the discovery script to Intune.\n\n2. Create the Compliance Policy:\nSign in to Intune: Access the Microsoft Endpoint Manager admin center.\nNavigate to Compliance Policies: Go to Devices \u003e Compliance Policies \u003e Create Policy.\nSelect Platform: Choose the platform (Windows 10 and later, Linux) for the policy.\nBasics Tab: Enter a name for the policy.\nSelect \"Custom Compliance\".\nCompliance Settings Tab:\nExpand \"Custom Compliance\".\nSet \"Custom compliance\" to \"Require\".\nSelect your discovery script.\nUpload and validate the JSON file.\n\nActions for Noncompliance Tab: Specify actions for noncompliant devices (e.g., alert, block access).\n\nAssignment Tab: Select the group to which you want to deploy the policy.\n\nReview + Create: Review the policy settings and click \"Create\". \n\n4. Monitoring and Refreshing Compliance Status:\nMonitor Compliance: Use the device compliance dashboard in Intune to monitor the status of your policies. \nRefresh Compliance Status:\n\nIf you modify a device's configuration, you can refresh the compliance status by signing into the Intune app or using the \"Refresh\" link on the device details page. \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrkhemant%2Fintunecustomcompliance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrkhemant%2Fintunecustomcompliance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrkhemant%2Fintunecustomcompliance/lists"}