Become a Columnist Microsoft Exchange Site Microsoft Support SiteMSDN Exchange Site

   

Subscribe to OutlookExchange
Anderson Patricio
Ann Mc Donough
Bob Spurzem
Brian Veal
Catherine Creary
Cherry Beado
Colin Janssen
Collins Timothy Mutesaria
Drew Nicholson
Fred Volking
Glen Scales
Goran Husman
Guy Thomas
Henrik Walther
Jason Sherry
Jayme Bowers
John Young
Joyce Tang
Justin Braun
Konstantin Zheludev
Kristina Waters
Kuang Zhang
Mahmoud Magdy
Martin Tuip
Michael Dong
Michele Deo
Mitch Tulloch
Nicolas Blank
Pavel Nagaev
Ragnar Harper
Ricardo Silva
Richard Wakeman
Russ Iuliano
Santhosh Hanumanthappa
Steve Bryant
Steve Craig
Todd Walker
Tracey J. Rosenblath
 
 

The Complete Exchange 5.5 Reorg

Page 1 | Page 2 | Page 3 | Page 4 | Page 5

Importing the Public Folders

First, you need to import the Public Folders from the PST file. Open the PST file created prior to the Migration and drag the folders in the same relative location on the new server. Remember the steps you executed before to create the large DOS batch file: STEP2.CMD? The finished file looks something like this:

PFADMIN /L5 test SETACL "Engineering" " Default " R
PFADMIN /L5 test SETACL "Engineering" " Anonymous " 0
PFADMIN /L5 test SETACL "Engineering" " Jim Bryant " L
PFADMIN /L5 test SETACL "Engineering" " Scott Mathews " L
PFADMIN /L5 test SETACL "Engineering" " Jonathan Michaels " L
PFADMIN /L5 test SETACL "Engineering\Eng - Components" " Default " R
PFADMIN /L5 test SETACL "Engineering\Eng - Components" " Anonymous " 0
PFADMIN /L5 test SETACL "Engineering\Eng - Components" " Jim Bryant " L
PFADMIN /L5 test SETACL "Engineering\Eng - Components" " Janie Dunlap " PE
PFADMIN /L5 test SETACL "Engineering\Eng - Components" " Robby Temple " PE

By firing up this script, you will put back all the folder rights on the folders. Since you did this after the sites were standardized on names, you know that the names will match.

1. Execute step2.cmd to replace the rights.

Now for a very important step. Even though all of the items are back and the folders have the appropriate permissions, each item imported in the store has the wrong owner tag set because the old owner tag of O=old org;OU=old site, etc. is wrong. What you need to do is systematically reset every new item in the store. I have a small tool to help with this too.

Use the UpdateSender.oft Outlook form to reset the authors of every item in every folder. The current tool allows you to update all of the items in a single folder at once. Because of the amount of time this process takes, try smaller folders first and build up. You may also want to consider running this tool on several machines. Remember, log on as the Service Account so that you will have writes on the folders.

This tool actually copies each item and creates it using the context of the user who originally posted the item:

Click Here to View the Code behind the Form

Here are the tools you can download for help with importing and setting these folders. You may need to right-click to save the file to your disk.

UpdateSenders v2.oft Files

2. Import the Forms back into the org using your Outlook client.

Try to get all of this done with enough time to configure site replication and to allow overnight directory synchronization.

Client Modifications
Reset the Profile-Manual Procedures

Even though the settings on the Outlook profiles are still correct, Outlook will not be able to connect to the server. The Outlook profile must be reset in order for the user to connect to the server. Log in to the client computers as the user and right-click the Outlook icon to view the properties. Select the Exchange Server item and click the Properties button.

Place the cursor in the Server field and remove the last letter of the server name. Retype the letter and click the Check Name button. The user’s name should become underlined identifying connectivity to the new server.

From the Start Menu, click Start, Run and type Outlook.exe /resetoutlookbar and press Enter. This process will rebuild the bar as new. Any customization will be lost.

Reset the Profile-Script

From the Start Menu, click Start, Run and type Outlook.exe /resetoutlookbar and press Enter. This process will rebuild the bar as new. Any customization will be lost. I wrote a small VB application to automatically allow access to the Exchange Server without touching the desktop. By adding the following lines to the login script, the profile will be reset and the Outlook Bar reset:

    @echo off
    if exist %temp%\step1.flg goto check2 >NUL
    outloo~1.exe
    if not "%OS%" == "Windows_NT" goto WIN9
    reset.fav
    goto check2
    :WIN9
    outlook.exe /resetoutlookbar
    :check2
    echo ECMS>>%temp%\step1.flg
    exit
The following files must be placed in the Netlogon directory:
MSVBVM50.DLL
Already installed on machines with Office. Place file in logon directory anyway
Reset.exe 20K application that resets the profile
reset.fav Empty file that forces Win9x machines to rebuild the Outlook Bar
OUTLOOK.EXE Actual Outlook.exe. Copy the version in use by the population to the directory

This script works on both Outlook and the original Exchange 4.0 clients with ~90% success rate. Make sure you are prepared for the worst. The script basically determines the operating system, then deletes six values in the profile that hardcode the organization settings for the profile. We leave the Exchange server and mailbox name settings. Here is some of the syntax for the script:

Valuelist.AddItem "You are running Windows 9x"
ProfKey = "SOFTWARE\MICROSOFT\WINDOWS MESSAGING SUBSYSTEM\PROFILES\"
If RegOpenKeyEx(hKey, ProfKey, 0, 1, aphkResult) = ERROR_SUCCESS Then
Valuelist.Clear
Valuelist.AddItem "You are running Windows 9x"
GoTo osfound
End If
ProfKey = "SOFTWARE\MICROSOFT\WINDOWS NT\CURRENTVERSION\WINDOWS MESSAGING SUBSYSTEM\PROFILES\"
If RegOpenKeyEx(hKey, ProfKey, 0, 1, aphkResult) = ERROR_SUCCESS Then
Valuelist.Clear
Valuelist.AddItem "You are running Windows NT"
GoTo osfound
Else
MsgBox "I cannot find any Outlook Profiles"
End
End If

whack1 = "001e3001"
whack2 = "001e6602"
whack3 = "001e6603"
whack4 = "001e6612"
whack5 = "001e660b"
whack6 = "001e660c"

  • Outlook Reset.BAS
  • Outlook Reset.vbp
  • Outlook Reset.exe
  • Outlook Reset.FRM
  • reset.fav

  • Now, the first time Outlook launches, it is not going to like the Outlook Bar links because they too are gard-coded to the folders with O=Org;OU-Site information. To manually correct the Outlook Bar, use the Start Menu to click Start, Run and type Outlook.exe /resetoutlookbar and press Enter. This process will rebuild the bar as new. Any customization will be lost. In some cases, we chose to have the logon script launch Outlook the first time with these settings.

    Reset the Delegates

    Using the information you collected prior to the redeploy, reset the delegate rights to those utilizing the delegate feature. You will need to visit both the Host machine in order to set the rights and the machine of the person who accesses the other’s folder.

    Remote Users

    Remote clients who use OST files to synchronize their data will no longer be able to use their current OST file. These remote users will need to rename their current OST file and connect to the server in order to copy the data over again. Depending on the amount of data in their mailboxes, this process could take several hours.

    The current procedure for resetting remote machines is as follows

    1. Run the batch file to reset the profile
    2. Right-click the Outlook icon and select properties
    3. Select Exchange Server and click Properties
    4. Select Advanced Tab and notice the location for the OST file.

    If there is no OST file, you have only to download the Address Book to complete the procedure. In this case, Outlook is configured to use the OST.

    5. Use Explorer or Winfile to navigate to and delete the OST file.
    6. Use the Start Menu to launch Outlook using the /resetoutlookbar switch.
    7. Click OK when prompted about the OST. Click OK again to create the OST and OK again to commit.

  • Use the Outlook Menu bar to select Tools, Synchronize and choose to Download the Address List Book. Choose either download option and click OK.
  • Press F9 or use the menu bar again and Synchronize all folders.

  • The Complete Exchange 5.5 Reorg

    Page 1 | Page 2 | Page 3 | Page 4 | Page 5

    Disclaimer: Your use of the information contained in these pages is at your sole risk. All information on these pages is provided "as is", without any warranty, whether express or implied, of its accuracy, completeness, fitness for a particular purpose, title or non-infringement, and none of the third-party products or information mentioned in the work are authored, recommended, supported or guaranteed by Stephen Bryant or Pro Exchange. OutlookExchange.Com, Stephen Bryant and Pro Exchange shall not be liable for any damages you may sustain by using this information, whether direct, indirect, special, incidental or consequential, even if it has been advised of the possibility of such damages.

    Copyright Stephen Bryant 2008