<adsisetprop>
Sets a property on an ADSI object.
This task uses a heuristic to determine the type of the property in ADSI. The following cases are notable:
- If the property does not exist on the item, it is inserted as a string.
- If the property already exists, this method will attempt to preserve
the type of the property. The types this method knows about are String,
Boolean, and Int32.
- If the property exists and is an array, the value is added to
the array, but only if it is not already present.
Parameters
Attribute | Type | Description | Required |
---|
propname | string |
The name of the property to set.
| False |
propvalue | string |
The new value of the property.
| False |
path | string |
The ADSI path of the location where we want to work with.
| True |
failonerror | bool | | False |
if | bool | | False |
unless | bool | | False |
verbose | bool | | False |
Nested Elements:
<properties>
<option ... />
<option ... />
...
</properties>
Examples
<adsisetprop path="${iis.path}/Root" propname="AuthAnonymous" propvalue="true" />
<adsisetprop path="${iis.path}/Root/GWSSample">
<properties>
<option name="AuthBasic" value="false" />
<option name="AuthNTLM" value="true" />
</properties>
</adsisetprop>