--- title: "Stopping containment using an unlock code" slug: "stopping-containment-using-an-unlock-code-2" tags: ["HX 10.x", "Endpoint Security (HX)", "Product Usage"] updated: 2026-09-10T15:14:16Z published: 2026-09-10T15:35:32Z canonical: "docs.trellix.com/stopping-containment-using-an-unlock-code-2" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Stopping containment using an unlock code When you contain a Windows host running Endpoint Security (HX) xAgent version 28 or later, a macOS host running Endpoint Security (HX) xAgent version 30 or later, or a Linux host running Endpoint Security (HX) Agent version 34 or later, a containment unlock code is generated by the Endpoint Security (HX). If your Endpoint Security (HX) xAgent is unable to communicate with the Endpoint Security (HX), you can use the unlock code to remove the host from containment. If the containment unlock code feature is enabled, your system administrator can request the unlock code from the Endpoint Security (HX) Web UI Host Details page or using an API request and provide the unlock code to the local user. The local user can run Trellix's uncontain executable with the unlock code at the Windows, macOS, or Linux command prompt to uncontain the host system. ### Important The containment unlock code feature must be enabled in order for your system administrator to request the unlock code for a contained host using the Web UI or an API request. Each Endpoint Security (HX) xAgent has a unique unlock code, which is a random string of alpha numeric characters Prerequisites - Administrator access - A host endpoint is contained and unable to communicate with the Endpoint Security (HX). See [Approving a containment request](/docs/approve-a-containment-request-2). This section covers the following topics: - [Requesting a containment unlock code](/docs/requesting-a-containment-unlock-code) - [Using an unlock code to uncontain a Windows host](/docs/using-an-unlock-code-to-uncontain-a-windows-host-1) - [Using an unlock code to uncontain a macOS host](/docs/using-an-unlock-code-to-uncontain-a-macos-host-1) - [Using an unlock code to uncontain a Linux host](/docs/using-an-unlock-code-to-uncontain-a-linux-host-1) :