This SQL query can be run on your Configuration Manager database. This query will show the devices that have no compliance policy enabled. The query does not make changes to your environment and only returns information on the devices with no compliance policy enabled. If you have any devices in your environment without compliance policies assigned, as shown by the SQL query, you should create a compliance policy that applies to the platforms of the devices returned, and deploy it to user collections that include the devices' owners. Once complete, make sure the compliance policies are active and run the query again to make sure you haven't missed any devices. For more complete steps, view https://aka.ms/compliance_policies