Home

About Us

Contact Us

Application List

Recommendations

My Docs

Just Ask Computer Services

When you need computer support, Just Ask

Exmerge - Last Year

Save all files to C:\Program Files\exchsrvr\bin

 

Create text file named EXMERGELastYearPart1.ini

 

[EXMERGE]

MergeAction =0

SourceServerName =SERVER

DomainControllerForSourceServer=SERVER

SrcServerLDAP-Port=

DestServerName =

DomainControllerForDestServer=

DestServerLDAP-Port=

DataDirectoryName =D:\EXCHANGEBACKUP

LogFileName =ExmergeLastYear.log

LoggingLevel =0

 

Create text file named ExMergeLastYearPart2.ini

 

FileContainingListOfMessageSubjects =

SubjectStringMatchCriteria = 0

FileContainingListOfAttachmentNames =

AttachmentNameStringMatchCriteria = 0

FoldersProcessed = 2

ListOfFolders =

FileContainingListOfFolders =

ApplyActionToSubFolders = 0

DelimiterUsedInMailboxFile = 0

FileContainingListOfDatabases=

FileContainingListOfMailboxes =C:\Program Files\Exchsrvr\BIN\MAILBOXES.TXT

DateAttribute =0

DataImportMethod =2

ReplaceDataOnlyIfSourceItemIsMoreRecent =1

CopyUserData =1

CopyAssociatedFolderData =1

CopyFolderPermissions =0

CopyDeletedItemsFromDumpster = 0

RemoveIntermediatePSTFiles = 1

UseThisPSTFileForAllMailboxes =

StartingIndex=

EndingIndex=

MapFolderNameToLocalisedName= 0

RenameFoldersBasedOnFolderMappings= 0

RestoreDB= 0

[International]

DefaultLocaleID =1033

DefaultCodePage=

UseLastLogonLocaleID=0

 

Create VBS script file named Writedate.vbs

 

Const ForReading = 1

Const ForWriting = 2

Const ForAppending = 8

 

Set objFSO = CreateObject("Scripting.FileSystemObject")

 

strDate = Now

strYear = Right(Year(strDate), 2)

strMonth = Month(strDate)

strDay = Day(strDate)

strEndDate = strMonth & "/" & strDay & "/" & strYear

 

strOldDate = DateAdd("d", -365, strDate)

strOldYear = Right(Year(strOldDate), 2)

strOldMonth = Month(strOldDate)

strOldDay = Day(strOldDate)

strStartDate = strOldMonth & "/" & strOldDay & "/" & strOldYear

 

Set objOutput = objFSO.OpenTextFile("ExMergeLastYear.ini", ForAppending)

objOutput.WriteLine "SelectMessageStartDate = " & strStartDate & "  00:00:00"

objOutput.WriteLine "SelectMessageEndDate = " & strEndDate & "  23:59:59"

objOutput.Close

 

Create CMD file named Exmergelastyear.cmd

 

c:

cd\Program Files\Exchsrvr\BIN

copy /y ExMergeLastYearPart1.ini ExMergeLastYear.ini

cscript WriteDate.vbs //NoLogo

type ExMergeLastYearPart2.ini >>ExMergeLastYear.ini

EXMERGE -F ExMergeLastYear.ini -B