# Unjoin Domain

> Unjoins the computer from Active Directory domain.

Source: https://docs.capaone.com/capaone/application-manager/powerbricks/unjoin-domain/  
Product: CapaOne — a separate CapaSystems product; do not apply this page to any other.

Unjoins the computer from Active Directory domain.

## Parameters

#### Domain User Name
*Required*

Domain account with permission to unjoin the computer from domain. Ex. CONTOSO\Administrator

#### Password
*Required*

Password for the domain account.

#### Allow Reboot
*Optional* — Default: `True`

Enable to reboot the workstation after successful domain unjoin. Disable to continue without rebooting.

## Details

- **Category:** Provisioning
- **Brick ID:** `AD-UnjoinDomain`

## Raw JSON definition

**JSON**

```json
{
  "category": "provisioning",
  "description": "Unjoins the computer from Active Directory domain.",
  "developerVendor": "CapaSystems A/S",
  "displayName": null,
  "id": "AD-UnjoinDomain",
  "name": "Unjoin Domain",
  "parameters": [
    {
      "allowManualInput": false,
      "defaultValue": "",
      "defaultValueObject": null,
      "description": "Domain account with permission to unjoin the computer from domain. Ex. CONTOSO\\Administrator",
      "id": "UserName",
      "name": "Domain User Name",
      "regExValidation": "",
      "required": true,
      "type": "TextBox",
      "value": null,
      "values": [],
      "valuesObject": null
    },
    {
      "allowManualInput": false,
      "defaultValue": "",
      "defaultValueObject": null,
      "description": "Password for the domain account.",
      "id": "Base64Password",
      "name": "Password",
      "regExValidation": "",
      "required": true,
      "type": "TextBoxWithPassword",
      "value": null,
      "values": [],
      "valuesObject": null
    },
    {
      "allowManualInput": false,
      "defaultValue": "True",
      "defaultValueObject": null,
      "description": "Enable to reboot the workstation after successful domain unjoin. Disable to continue without rebooting.",
      "id": "AllowReboot",
      "name": "Allow Reboot",
      "regExValidation": "",
      "required": false,
      "type": "Boolean",
      "value": null,
      "values": [],
      "valuesObject": null
    }
  ],
  "powershell": {
    "base64Encoded": true,
    "function": "ZnVuY3Rpb2..."
  },
  "type": "powerbrick",
  "version": "2026.9.1.1"
}
```
