<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

AttributeTypeDescriptionRequired
propnamestring The name of the property to set. False
propvaluestring The new value of the property. False
pathstring The ADSI path of the location where we want to work with. True
failonerrorboolFalse
ifboolFalse
unlessboolFalse
verboseboolFalse

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>