?
Solved

HOWTO: change an exchage 2003 attribute via ASP or similiar

Posted on 2008-06-15
3
Medium Priority
?
210 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 1000 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

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

Unified and professional email signatures help maintain a consistent company brand image to the outside world. This article shows how to create an email signature in Exchange Server 2010 using a transport rule and how to overcome native limitations …
There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…
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 …
Suggested Courses
Course of the Month13 days, 4 hours left to enroll

777 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