# Create Computer

> `UiPath.ActiveDirectoryDomainServices.Activities.CreateComputer`

`UiPath.ActiveDirectoryDomainServices.Activities.CreateComputer`

## Description

Creates a new computer in Active Directory.

## Project compatibility

Windows - Legacy | Windows

## Configuration

### Common

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

### Input

* **CommonName** - The common name of the new computer.
* **Enabled** - Indicates whether the new computer is enabled after being created. The default value is **True**.
* **Location** - Specifies the name of the parent entry for the newly created computer.
* **Properties** - It contains two columns, the first one representing the property name and the second one its value.
* **SAMAccountName** - Specifies the Security Accounts Manager (SAM) account name of the computer.
* **Connection** - Establish the connection that needs to be used. There are three available options, **Auto**, **Primary**, and **Secondary**. The default option is **Auto**. When set to **Auto**, the activity tries to automatically resolve the connection from the object’s distinguished name.

### Misc

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

### Output

* **DistinguishedName** - The distinguished name of the newly created user account.
