Code:
$username = "desktest"


$userhome = TranslateName (3, "", 3, "@LDomain\$username", 1)
$userinfo = GetObject("LDAP://" + $userhome[0])


$userinfo.profilePath = ""
$userinfo.SetInfo


; TranslateName function authored by Howard A. Bullock
Function TranslateName ($InitType, $BindName, $LookupNameType, $LookupName, $ReturnNameType)
Dim $InitType, $BindName, $LookupNameType, $LookupName, $ReturnNameType
Dim $NameTranslate, $ReturnName, $Error, $ErrorText
$Error = 0
$ErrorText = ""
$ReturnName = ""
$NameTranslate = CreateObject ("NameTranslate")
$Error = @error
$ErrorText = @serror
If $Error = 0
 $NameTranslate.Init ($InitType, $BindName)
 $Error = @error
 $ErrorText = @serror
 If $Error = 0
  $NameTranslate.Set ($LookupNameType, $LookupName)
  $Error = @error
  $ErrorText = @serror
  If $Error = 0
   $ReturnName = $NameTranslate.Get($ReturnNameType)
   $Error = @error
   $ErrorText = @serror
  EndIf
 EndIf
EndIf
$TranslateName = $ReturnName, $Error, $ErrorText
EndFunction


I am trying to delete the profile path. When I set the attribute to "" it does nothing. My question is if I set the attribute to " " is that the same thing? I really don't think so.

Any help in the right direction is appreciated.

Mike