# Unjoin Computer From Domain

> `UiPath.ActiveDirectoryDomainServices.Activities.UnjoinComputerFromDomain`

`UiPath.ActiveDirectoryDomainServices.Activities.UnjoinComputerFromDomain`

## Description

Removes a computer from the domain.

## Project compatibility

Windows - Legacy | Windows

## Configuration

### Common

* **DisplayName** - The display name of the activity.

### Computer

* **ComputerName** - The specific name of the computer that follows to be unjoined from the domain.
* **Password** - The password for the provided username. This field supports only secured strings and SecureString variables.
* **Username** - The name of a user with administrative rights on the computer that wants to join the domain. If no username is provided, then it uses the user's name under which the Robot is running. This field supports only strings and String variables.

### Input

* **DisableComputerAccount** - Indicates if the Active Directory computer account is disabled after the unjoin operation. The default value is **False**.
* **Connection** - Establish the connection that needs to be used. There are two available options, **Primary** and **Secondary**. The default option is **Primary**.

### Misc

* **Private** - If selected, the values of variables and arguments are no longer logged at Verbose level.

:::note
This activity works only as part of an **Active Directory Scope** activity where the following parameters **ActiveDirectoryServer**, **Username**, **Password** have explicit values. The activity is setting up a Remote WMI Connection from the Robot machine to the target Computer, therefore all the system requirements and configuration requirements for such a connection apply here.
:::
