I think I have it now Howard.

Seems you have to use the "description name" on the forms along with the putEX and the
$ADS_PROPERTY_CLEAR = 1

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netdir/adsi/modifying_attributes_with_adsi.asp

quote:
ADS_PROPERTY_CLEAR = 1
ADS_PROPERTY_UPDATE = 2
ADS_PROPERTY_APPEND = 3
ADS_PROPERTY_DELETE = 4

ADS_PROPERTY_CLEAR
Instructs the directory service to remove all the property value(s) from the object.

ADS_PROPERTY_UPDATE
Instructs the directory service to replace the current value with the element(s) in the passed VARIANT array.

ADS_PROPERTY_APPEND
Instructs the directory service to append the new value(s) to the existing one(s).

ADS_PROPERTY_DELETE
Instructs the directory service to delete the specified value(s) of a property.

This code works.


$ADS_PROPERTY_CLEAR = 1
$user = GetObject('LDAP://etc....')
if $user.class = "user"
? 'User name is: '+$user.samaccountname
? 'Profile path currently is: '+$user.profilepath
$user.PutEX ($ADS_PROPERTY_CLEAR, "profilepath",'')
$user.SetInfo
? 'Profile path is now: '+$user.profilepath
endif