Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Verify Public Folder Migration between Exchange 2000 and Exchange 2007

 
Logged in as: Guest
arrSession:exec spGetSession 2,5,62022
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> Windows PowerShell >> Verify Public Folder Migration between Exchange 2000 and Exchange 2007
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Verify Public Folder Migration between Exchange 2000 an... - 6/30/2008 4:24:05 PM   
  turranx


Posts: 38
Score: 0
Joined: 2/7/2006
Status: offline
NOTE: Please do not use the code from the first two posts in this thread.  They are BETA quality code.  The third post holds the final (and much better behaved) revision.

Have you ever wondered if your Exchange 2000 Public Folders have successfully replicated to your new Exchange 2007 server?  Consider using this script.  It compares the item count and byte count of each Public Folder (recursive) that exist on both the old and new Exchange servers.  The results are printed to the screen for you to look over.  There are a number of changes I still have to make (logic flow, error handling, etc.), site my sources, figure out why many folders have identical item counts but slightly different byte counts, and figure out why some of the folders are coming back without results at all.  This code is entierly READ ONLY, so feel free to run it against your production servers.

The reason why I'm posting this beta code now is because I'm looking for feedback to help me polish up a final version.  I've seen some of the code you guys churn out on this forum; you're good.

This code was run successfully from my Exchange 2007 SP1 server. Please populate the variables in the top three lines of the script with your own values.


      

The output looks like this (below). 
The item and byte count for the old server are on the left. 
The item and byte count for the new server are on the right.

      

Background:
My company is migrating from Exchange 2000 to Exchange 2007.  We have a couple hundred Public Folders that need to be moved over.  Much of the documentation available online (http://msexchangeteam.com/archive/2007/06/25/445429.aspx) deals with Exchange 2003 to 2007 migration but shys away from Exchange 2000 to 2007.  No one would / could tell me how to truly verify, in an automated fashion, if the Public Folder data was completely replicated to the new Exchange Server.  Take a look at Question #3 in the afore mentioned link. 

I decided to write this script after spending several hours scouring the Internet for something to do this for me.  But like the drones (especially the ones not employed by Microsoft) that churn out Microsoft product related documentation, everybody skips by the hard questions.  Well not me.  I should really consider changing my user name to "The Angry Programmer".   

< Message edited by turranx -- 7/22/2008 11:26:09 PM >


_____________________________

Microsoft Windows 2000 Scripting Guide - The best book for newbie scripters
http://www.myspace.com/Evil__Overlord
 
 
Post #: 1
 
 Almost out of Beta - 7/14/2008 11:14:28 PM   
  turranx


Posts: 38
Score: 0
Joined: 2/7/2006
Status: offline
I've pounded on the code and shaped it into something much nicer; although I can't help but think it isn't bulletproof yet.  So for your enjoyment, I present revision two.

Enhancements:
  • Comments!  (What scripter doesn't love comments?)
  • XML file logging
  • More control over the mode of operation (Search for Security Permission Mode)



      

An example of what the XML log looks like:


      

< Message edited by turranx -- 7/22/2008 11:26:37 PM >


_____________________________

Microsoft Windows 2000 Scripting Guide - The best book for newbie scripters
http://www.myspace.com/Evil__Overlord

(in reply to turranx)
 
 
Post #: 2
 
 Finished! - 7/22/2008 11:24:52 PM   
  turranx


Posts: 38
Score: 0
Joined: 2/7/2006
Status: offline
This is the third and final version of my script to compare Item and Byte counts for Public Folders that are replicated between Exchange 2000 and Exchange 2007 servers.  Since we will be taking our Exchange 2000 server offline soon, my ability to develop / test / support this script has ended. 

Enhancements:
  • Require declaration of Powershell variables (kind of like Option Explicit for VBS)
  • Fixed some inconsistencies in logging
  • Updated output XML file name to include a timestamp
  • Added additional documentation within the code
If you've used this code in your environment to monitor Public Folder replication or even dissected the code to learn how to do something new, please post a comment below.  I feel really good when I know that someone has benefitted from my work.


      

This code generates an XML log file as its output.  Take a look here: http://www.visualbasicscript.com/m_62487/tm.htm for the Powershell script that will parse the log file and tell you which folders are out of sync.
An example of what the XML log looks like:


      

< Message edited by turranx -- 7/22/2008 11:27:06 PM >


_____________________________

Microsoft Windows 2000 Scripting Guide - The best book for newbie scripters
http://www.myspace.com/Evil__Overlord

(in reply to turranx)
 
 
Post #: 3
 
 RE: Finished! - 7/24/2008 11:59:25 AM   
  dm_4ever


Posts: 2432
Score: 38
Joined: 6/29/2006
From: Orange County, California
Status: offline
I just wanted to say thanks for your many posts....I'm still not using Powershell all that much, but I am sure your various posts will come in very handy when the time comes.

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to turranx)
 
 
Post #: 4
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Windows PowerShell >> Verify Public Folder Migration between Exchange 2000 and Exchange 2007 Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts