Create Active Directory Object

Creates an Active Directory object of the specified type and name (i.e. computer, organizational unit). Commonly used to initially create a new Active Directory OU (Organizational Unit), a container into which one can place objects such as users, groups, computers or other organizational units with the use of subsequent Active Directory actions.

Declaration

<AMCREATEADOBJECT LDAPPATH="text" USERNAME="text" PASSWORD="text" ADOBJECT="text(options)" OBJECTNAME="text" />

Example

Description: Create an Active Directory COMPUTER object with the name of "serverprinter" (full path is "LDAP://servername.com").

<AMCREATEADOBJECT LDAPPATH="LDAP://servername.com" USERNAME="Dave" PASSWORD="AM2LRnogx3fFdk=aME" ADOBJECT="COMPUTER" OBJECTNAME="serverprinter" />

See Also

AD Object to Dataset, Create AD Group, Create AD User, Delete AD Object, Get AD Group Members, Get AD Object Path, Get AD Object Property, If AD Object Exists, List AD Object Paths, Modify AD Group, Modify AD User, Move AD Object, Rename AD Object, Set AD Object Property

In order to properly use AWE's Active Directory actions, you should have a basic understanding of Active Directory and related components (e.g., domain controllers, trust relationships, forests, OUs, LDAPs, etc.) Also, to ensure that these actions function appropriately, the target system must be part of a domain.

General Tab

Property

Type

Required

Default

Markup

Description

Parent Path

Text

Yes

(Empty)

LDAPPATH=

"LDAP://DC=netauto,DC=com"

The Lightweight Directory Access Protocol (LDAP) path of the parent Active Directory container. This is usually the top most container or rootDSE path, the root of the directory data tree on a directory server.

Click Select Container to launch a standard Windows Active Directory dialog box that allows for the selection an Active Directory container.

Type

Text (Options)

Yes

OrganizationalUnit

ADOBJECT="Computer"

The Active Directory Object Type to create. The available options are:

  • Computer

  • Organizational Unit (default)

Name

Text

Yes

(Empty)

OBJECTNAME="serverprinter"

The name of the Active Directory object to create.

Credentials Tab

Property

Type

Required

Default

Markup

Description

Username

Text

No

(Empty)

USERNAME="username"

Specifies the username of the Active Directory user.

NOTE: Leave the Username and Password fields blank in order to use the logon user's credentials. If only accessing Active Directory information, then any Domain user is valid. However, a Domain Administrator is required in order to modify an Active Directory user or group. We recommend using the credentials of a Domain Administrator for all Active Directory actions.

Password

Text

No

(Empty)

PASSWORD="password"

Specifies the password of the Active Directory user.

NOTE: Leave the Username and Password fields blank in order to use the logon user's credentials. If only accessing Active Directory information, then any Domain user is valid. However, a Domain Administrator is required in order to modify an Active Directory user or group. We recommend using the credentials of a Domain Administrator for all Active Directory actions.

Description Tab

The Description tab allows you to customize the text description of any step as it appears in the Task Builder's Steps Pane.

More on setting custom step description

Error Causes Tab

The Error Causes tab properties allow you to instruct a task step to react only to specific errors or ignore certain errors that should cause it to fail.

More on Error Causes properties

On Error Tab

The On Error tab properties lets you determine what the task should do if a particular step encounters an error as defined in the Error Causes properties.

More about On Error properties

Expressions, Variables and Functions

All text fields allow the use of expressions such as variables, functions or extended functions, which can be entered by surrounding the expression in percentage signs (example: %FileDateTime(myVar)% or %myVar%, % Left('Text',2)%). To help construct these expressions, you can open Expression Builder from these fields by clicking the percent sign (%) or by pressing F2.

More on expressions

More on variables

More on function

More on extended functions

More on the expression builder