Solved

HOWTO: change an exchage 2003 attribute via ASP or similiar

Posted on 2008-06-15
3
207 Views
Last Modified: 2010-08-05
Hi,

We have the following scenario. On a weekly basis I have to change the 'forward and deliver' option on an exchange mailbox to a different person. I do this by RDPing to the Exchange server and setting it manually.

Is there a way I can put a page on our intranet that will display a combo box of various users from an OU (I can do this bit)  and allow people to set the 'Forward and Deliver' option on the mailbox to themselves or someone else (I can't do this bit).

I'm know very basic ASP and have been struggling with the handful of stuff I've found on Google!

Thanks

David
0
Comment
Question by:servicetechxp
  • 2
3 Comments
 
LVL 70

Accepted Solution

by:
Chris Dent earned 250 total points
ID: 21792042

Hey David,

I assume you've worked in permission to change the attribute you need?

What you need is:

1. A connection to a user, e.g. Set objUser = GetObject("LDAP://CN=User Name,OU= ...)

2. The attributes to change:

altRecipient

If you want to deliver and keep a copy you also need to set:

DeliverAndRedirect

To True. Default is False (as in leaving the box unticked).

3. Distinguished Name of the person you want to receive it.

That gives us:

strOriginalUser = "CN=Bob Jones,OU=Somewhere,DC=domain,DC=local"
strNewMailRecipient = "CN=Tracy Gibbs,OU=Somewhere,DC=domain,DC=local"

Set objUser = GetObject("LDAP://" & strOriginalUser
objUser.Put "altRecipient", strNewMailRecipient
objUser.SetInfo

You'll need those values returned from your searches. If your user isn't authenticating when logging on you'll need to have them choose both the user to forward, and the user to forward to.

HTH

Chris
0
 

Author Comment

by:servicetechxp
ID: 21826265
Hi,
Sorry for the delay in getting back to you - I'll try it tomorrow and let you know how I get on!
David
0
 

Author Closing Comment

by:servicetechxp
ID: 31467319
Yep that worked - thanks very much!
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
This article describes my battle tested process for setting up delegation. I use this process anywhere that I need to setup delegation. In the article I will show how it applies to Active Directory
To show how to create a transport rule in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Rules tab.:  To cr…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question