One last thing... The following is the actual snippit from our term script that is calling the individual user to be terminated's email address... Notice there is a call to LDAP with predefined scopes.. In here somewhere, could I insert something that will just piggyback off of this LDAP call and clear the AD property along with it's clearing of the SMTP and x400 addressess??
Dim objUser, entry
eAddresses = ""
set objUser = GetObject("LDAP://"& g_sDN)
For Each entry in objUser.GetEx("proxyAddresses")
If instr(entry,"X400") = 0 Then
eAddresses = eAddresses & entry & " , "
end if
Next
eAddresses = Replace(eAddresses,"smtp","")
eAddresses = Replace(eAddresses,"SMTP","")
eAddresses = Replace(eAddresses,":","")
WriteLog "SMTP Email Addresses: " & eAddresses
sbEmail.Add "SMTP Email Addresses: " & eAddresses & vbcrlf
if err.number <> 0 then
'errorHandler "Get SMTP Info Failed ", hex(err.number), err.Description, false
WriteLog "Unable to get SMTP info"
err.clear
end if