Solved

HOWTO: change an exchage 2003 attribute via ASP or similiar

Posted on 2008-06-15
3
203 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
Comment Utility

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
Comment Utility
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
Comment Utility
Yep that worked - thanks very much!
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
To show how to generate a certificate request 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 Servers >> Certificates…
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 …

743 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

12 Experts available now in Live!

Get 1:1 Help Now