Friday, June 27, 2008

SCR Test

SCR Test

Dismount-Database sch-mb01\Prod-mb01

Restore-StorageGroupCopy sch-mb01\Prod-mb01 -StandbyMachine wd-mb01

ESEUTIL /MH M:\prod-mb01\prod-mb01.edb

ESEUTIL /R E01 /l E:\prod-mb01 /S M:\prod-mb01 /a

Move-StorageGroupPath wd-mb01\SG1PORT -SystemFolderPath "C:\Program Files\Microsoft\Exchange Server\Mailbox\sg1Port" -LogFolderPath "E:\prod-mb01" –ConfigurationOnly

Move-DatabasePath wd-mb01\SG1PORT\MBX1PORT -EdbFilePath "M:\prod-mb01\prod-mb01.edb" –ConfigurationOnly

Set-MailboxDatabase wd-mb01\SG1PORT\MBX1PORT -AllowFileRestore:$true

Mount-Database wd-mb01\SG1PORT\MBX1PORT

Get-Mailbox -Database sch-mb01\Prod-mb01\Prod-mb01 |where {$_.ObjectClass -NotMatch '(SystemAttendantMailbox|ExOleDbSystemMailbox)'}| Move-Mailbox -ConfigurationOnly -TargetDatabase wd-mb01\SG1PORT\MBX1PORT

No comments: