AddWindowsComputer
Adds a Windows computer object to a hierarchical zone.
Syntax
IComputer AddWindowsComputer(IADs computer, IHierarchicalZone zone)
IComputer AddWindowsComputer(string computerDn, IHierarchicalZone zone)
Parameters
Specify one of the following parameters when using this method.
| Parameter | Description |
|---|---|
computer
|
The Active Directory computer object that you wish to add to the zone. |
computerDn
|
The distinguished name of the computer object. |
Specify the following parameter when using this method.
| Parameter | Description |
|---|---|
zone
|
The zone to which you wish to add the computer object. |
Return value
The newly-added computer object.
Exceptions
AddWindowsComputer throws an ArgumentNullException if any parameter value is
null or empty.