Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I would like to know how to programatically change the Forwarding address under Delivery Options to None.

Every time I try to set altRecipient to "" there is a constraint error.

How do I remove the forward to user or set the forwarding address to None.

testEntry.InvokeSet("deliverAndRedirect", false); // OK
testEntry.InvokeSet("altRecipient", ""); // error

Also on the Send on Behalf, how can you remove all the users in the grant list.

share|improve this question

1 Answer 1

You should try clearing the property rather than setting it to "". I'm not much of a C# programmer but you can probably do (or some such):

testEntry.Invoke("PutEx", New Object() { ADS_PROPERTY_CLEAR, altRecipient, 0 })

The key is that setting the value to "" is different than clearing it.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.