4.4.1 Moving an object in the Active Directory
Function
This plug-in moves an object to the specified Organizational Unit (OU) for the Active Directory of the specified server.
The prerequisite server for this plug-in is as follows:
- Execution target server
This server is used as the target for executing this plug-in. The Active Directory shown in the Prerequisite condition needs to be set up beforehand.
This plug-in allows you to move the following objects:
- Group
- User
- Contact
- OU
Scripts in this plug-in perform the following processing:
- Execution of the following command
dsmove
"value-of-object-identifier(Windows.objectName-property)"
-newparent "value-of-moving-destination-ou-identifier(Windows.parentName-property)"
For details of the dsmove command, see the relevant sections in the Microsoft library.
Use situation
This plug-in is used to move an object to the specified OU in the Active Directory.
Prerequisites
For the latest support status of the following items, see the Release notes: Prerequisite products on the execution target server, and running OS on the execution target server.
In addition, the following OS and products use abbreviations. For the abbreviations of OS and products, see the "Preface".
Prerequisite products on the execution target server:
(1) Active Directory domain service
(2) DNS server
Running OS on the execution target server:
(1) Windows Server
Conditions of using prerequisite products on the execution target server:
None
Cautions
(1) Do not use a character string containing a double quotation mark (") or a single quotation mark (') in a plug-in property.
Execution privilege
(1) When connecting to the execution server, the user needs to be a member of the Account Operators group, Domain Admins group, or Enterprise Admins group of the Active Directory domain service; and have proper authority.
Version
02.00.00
Plug-in tags
Configure Active Directory,Windows,Active Directory
Plug-in name displayed in the task log
adMoveObject
Return code
0: Normal
21: Abnormal (illegal environment), command unfound (error detected in plug-in script)
27: Abnormal (Check the error details from the task log.)
41: Abnormal (error detected within the plug-in), property not entered (error detected in the plug-in script)
Property list
The following table lists the properties:
|
Property key |
Property name |
Description |
Default value |
I/O type |
Required |
|---|---|---|---|---|---|
|
plugin.destinationHost |
Host name of the execution target server |
Specify the host name or IP address of the server on which this plugin will be executed. IPv6 addresses are not supported. |
-- |
Input |
R |
|
Windows.objectName |
Object identifier |
Specify an identifier of the object to move in a format beginning with CN= or OU=. |
-- |
Input |
R |
|
Windows.parentName |
Identifier of the moving destination OU |
Specify an identifier of the moving destination OU |
-- |
Input |
R |
|
common.returnValue |
Return value for the plugin |
The return value of this plugin stored. |
-- |
Output |
O |