Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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


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.