Skip to content

Unjoin Domain

Unjoins the computer from Active Directory domain.

Required

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

Required

Password for the domain account.

Optional — Default: True

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

  • Category: Provisioning
  • Brick ID: AD-UnjoinDomain
{
"category": "provisioning",
"description": "Unjoins the computer from Active Directory domain.",
"developerVendor": "CapaSystems A/S",
"displayName": null,
"id": "AD-UnjoinDomain",
"name": "Unjoin Domain",
"parameters": [
{
"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
},
{
"defaultValue": "",
"defaultValueObject": null,
"description": "Password for the domain account.",
"id": "Base64Password",
"name": "Password",
"regExValidation": "",
"required": true,
"type": "TextBoxWithPassword",
"value": null,
"values": [],
"valuesObject": null
},
{
"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.7.2.1"
}