CDOLive LLC The Premier Resource for Microsoft Collaboration Data Objects             

Modify Mailbox Properties Outlook Form

This sample Microsoft Outlook form can be used to update the Exchange mailbox properties. It can also display the e-mail addresses (also known as proxy addresses) and direct reports/distribution list membership of a particular mailbox. Because CDO does not provide native access to the direct reports/distribution list membership a COM object is included which is used to pull that information out:

Special thanks to Ralf Timm of EcoNet IT Consulting, Munich Germany for his help to build the COM object.

Known Issues

This sample can be used only with Microsoft Outlook 98/2000 installed in 'Corporate or Workgroup Mode', using the MAPI provider to access Microsoft Exchange Server.

Only mailbox properties can be changed, if a custom recipient, distribution list or public folder is selected an error message is returned and the form will not open.

Also, if you try to modify the display name or alias an error message is returned. It seems not to be implemented in the current CDO version to modify these properties.

Prerequisites

Microsoft Exchange Server 5.x in US English version must be installed. Also make sure that Microsoft Outlook 98/2000 is installed in Corporate or Workgroup mode and running properly, because CDO 1.2x is required to have write access to the Microsoft Exchange Directory with CDO 1.2x.

After installing the Outlook security update this sample will stop working properly because of changes made by Microsoft. For more info on the Outlook security update please check Outlook e-mail Security Update

Note that the Office/Outlook 2000 setup does not install CDO 1.21 by default. You need to run the Office/Outlook 2000 setup and add CDO 1.21 as custom option.

If you want to display the direct reports/distribution list membership you need to install and register the file "CDOLIVE.DLL" using the following command "Regsvr32.exe cdolive.dll". Note that this COM object is only available for the Windows NT I386 platform.

Checked Build

If you would like to use this sample with another language version of Microsoft Exchange Server or Microsoft Outlook, it is possible that the sample will not work without modifications. Please consult the source code for more information. This sample is built and checked for a proper function using the following environment:

  • Microsoft Windows NT Server 4.0, with Service Pack 4/5/6a, US English - international
  • Microsoft Exchange Server 5.5, with Service Pack 2/3, US English - international
  • Microsoft Outlook 98, with Security Patch 2 and Archive Patch, US English - international
  • Microsoft Outlook 2000, with Service Release 1, US English - international
Installation and Configuration

The Microsoft Outlook 98/2000 form, which can be used to change the properties of a particular Microsoft Exchange Server mailbox.
Outlook form address1.zip (50 Kbyte)

Click on the Outlook form template to start it and choose 'Enable Macros' if the macro warning dialog is displayed. To prevent the macro warning popup you can publish the form to the organization forms library on your Microsoft Exchange Server.

This form displays an address book dialog box on startup from which a particular user can be selected. The current details of the selected mailbox are displayed and you can change the properties. You can use this form to e. g. let your human resources modify all mailbox properties of all your customers.

To enable the modification of the properties of a particular mailbox you must add the 'Modify Admin Attributes' permission to the appropriate user. You can do this on a user basis or container basis to enable it for each mailbox or for all mailboxes in a particular Microsoft Exchange Server Recipients Container.

 To prevent a user from modifying all properties simply start the form and change into design mode. You can make all properties read-only. Save the form and if you have published it to a forms library don't forget to re-publish it again.

 

The Microsoft Outlook 98/2000 form, which can be used to change the properties of your own Microsoft Exchange Server mailbox.
Outlook form address2.zip (50 Kbyte)

Click on the Outlook form template to start it and choose 'Enable Macros' if the macro warning dialog is displayed. To prevent the macro warning popup you can publish the form to the organization forms library on your Microsoft Exchange Server.

This form does not display an address book dialog box on startup. The details of the current mailbox are displayed and you can change the properties. You can use this form to let each of your customers only modify their own mailbox properties.

To enable the modification of the properties of a mailbox you must add the 'Modify Admin Attributes' permission to the mailbox owner (also known as 'Primary Windows NT Account')

To prevent a user from modifying all properties simply start the form and change into design mode. You can then make all possible properties read-only. Save the form and if you have published it to a Forms Library don't forget to re-publish it again.