Ensuring devices meet organizational security and compliance policies
Hello Handian Sudianto
I understand you’re trying to mark the device as non‑compliant to test the Network Access Control (NAC) integration. As mentioned earlier, a device becomes non‑compliant when it fails to meet any configured compliance criteria such as OS version, password requirements, BitLocker, Microsoft Defender, and so on.
For testing purposes, the simplest approach is to temporarily remove the device from any groups targeted with compliance policies and then set the tenant setting “Mark devices with no compliance policy assigned as” to Not compliant. This allows you to validate the NAC behavior without changing device security settings.
Hope this helps!
If you found the information above helpful, please Click Yes. This will assist others in the community who encounter a similar issue, enabling them to quickly find the solution and benefit from the guidance provided.