# How to Deactivate Android in the Enterprise Work Container on Non-Compliance

A device may turn password non-compliant if it does not meet the passcode rules enforced by the organization. Under such circumstances, an organization can deactivate the work container on such devices to protect corporate apps and data. This feature works on devices enrolled in the **[Android Enterprise](https://www.hexnode.com/mobile-device-management/help/how-to-enroll-organization-in-android-in-the-enterprise-using-hexnode-mdm/)** program as [Device Owner](https://www.hexnode.com/mobile-device-management/help/how-to-enroll-a-device-in-android-in-the-enterprise-as-device-owner-using-hexnode-mdm/) or [Profile Owner](https://www.hexnode.com/mobile-device-management/help/how-to-enroll-a-device-in-android-in-the-enterprise-as-profile-owner-using-hexnode-mdm/).

Once the device becomes password non-compliant, the work container deactivates or becomes functionless if the deactivation settings are enabled via policies. Any apps present in the work container will be hidden in that case. The moment the device becomes compliant again, the container is re-activated.

 Note:- A device will be marked as password non-compliant only if the option ‘**Device is not password compliant**’ is enabled under **Admin** > **General Settings** > **[Compliance Settings](https://www.hexnode.com/mobile-device-management/help/how-to-configure-compliance-settings-in-hexnode-mdm/)**. [![Use MDM to set password compliance settings to deactivate Android Enterprise work container on device non-compliance](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2021/04/Set-password-compliance-settings-to-deactivate-Android-Enterprise-work-container-on-device-non-compliance.png "Set password compliance settings to deactivate Android Enterprise work container on device non-compliance")](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2021/04/Set-password-compliance-settings-to-deactivate-Android-Enterprise-work-container-on-device-non-compliance.png)

 

Deactivate Android Enterprise Work Container on Password Non-Compliance
-----------------------------------------------------------------------

To deactivate work container via policy,

1. Log in to your Hexnode MDM portal.
2. Navigate to **Policies > New Policy**. You can also choose to continue with an existing one.
3. Go to **General Settings > Android Enterprise – Compliance**. Click **Configure**.
4. Select the option **Deactivate Android Enterprise container on non-compliance**. Specify the time duration after which the container gets deactivated.
5. Next, associate the policy with the target devices by navigating to **Policy Targets**.
6. Select the required **Devices**/**Device Groups**/**Users**/**User Groups**/**Domains** with which the policy is to be associated.
7. Click **Save**.

If the device becomes password non-compliant, the work container gets deactivated automatically after the specified time, thereby hiding all the applications in the container.