How do I schedule mailbox migration and the synchronization process? (NETIQKB23774)

  • 7723774
  • 02-Feb-2007
  • 11-Feb-2008

Resolution

goal
How do I schedule mailbox migration and the synchronization process?

fact
Exchange Migrator 2.x

fix
This can be achieved by combining the required EMCLI commands in a batch file, and by running the batch file at a later date using the Windows Schedule service.  Windows completes each command in the batch file starting at the top of the list before executing the next command. 

In the following batch file, mymigration.bat, the EMCLI commands specified will perform the following commands on the My Project project:

  • Migrate all mail objects.
  • Synchronise all mail objects.
  • Synchronise all public folder objects.
  • Synchronise the directories.

To run the batch file at a scheduled time, follow these steps:

rem Example Batch file mymigration.bat

EMCLI MMIG /PROJECT "my project" /TIME 5

EMCLI MSYNC /PROJECT "my project" /TIME 4

EMCLI PFSYNC /PROJECT "my project" /TIME 3

EMCLI DIRSYNCH /PROJECT "my project" /DIRECTION TWOWAY >dailysynch.txt

Finally, schedule the batch file to run at specified times using the Windows Schedule service.



note
Please note that this information can also be obtained from Appendix B in the User Guide.

note
This and further information relating to the various EMCLI commands which are available to be used in conjunction with the windows scheduler service are available in Appendix B in the Exchange Migrator User Guide.

Additional Information

Formerly known as NETIQKB23774