--- title: "Using an unlock code to uncontain a macOS host" slug: "using-an-unlock-code-to-uncontain-a-macos-host" tags: ["EDR with Forensics (EDRF)", "Endpoint Security"] updated: 2026-08-26T19:31:16Z published: 2026-08-26T19:31:16Z canonical: "docs.trellix.com/using-an-unlock-code-to-uncontain-a-macos-host" --- > ## 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. # Using an unlock code to uncontain a macOS host This section describes how to use the unlock code to uncontain your macOS host. **To use an unlock code to remove a macOS host from containment:** 1. Log in to the contained macOS host. 2. Open Command line prompt and use the `cd` command to change to the `/Library/Trellix/XCLIENT/xclient.app/Contents/MacOS/bin` `cd /Library/Trellix/XCLIENT/xclient.app/Contents/MacOS/bin` 3. Run the `uncontain` executable file with the unlock code: `./uncontain <unlock code>`