Solved

HOWTO: change an exchage 2003 attribute via ASP or similiar

Posted on 2008-06-15
3
204 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Utilizing an array to gracefully append to a list of EmailAddresses
This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
In this video we show how to create an Address List 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 Organization >> Ad…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

911 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now