Solved

HOWTO: change an exchage 2003 attribute via ASP or similiar

Posted on 2008-06-15
3
209 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 71

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article shows the method of using the Resultant Set of Policy Tool to locate Group Policy that applies a particular setting.
Here's a look at newsworthy articles and community happenings during the last month.
This video discusses moving either the default database or any database to a new volume.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

691 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