Moving Exchange 2007 DB to a new location on a schedule
Hello, I need to move my Mailbox Database and my Public Folder Database to a new location. I know how to do it via the GUI, but my problem is that because of timezones I need to do it at 1:30 a.m. I want to use the Exchange Management Shell to move the mailbox database and public folder database to a new location automatically at 1:30 a.m. Is scheduling possible with EMS?
June 19th, 2008 9:35pm

Im sure scheduling a powershell script to run the move-databasepath cmdlet would acomplish what you are looking for. http://technet.microsoft.com/en-us/library/bb124742(EXCHG.80).aspx Scheduling a PS PS Script. http://www.searchmarked.com/windows/how-to-schedule-a-windows-powershell-script.php
Free Windows Admin Tool Kit Click here and download it now
June 20th, 2008 4:14am

Thank you for your help. I tried what you suggested and the batch file ran the powershell but not the Exchange powershell. I did a little modifying and here is the final batch file I created. "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -PSConsoleFile "C:\Program Files\Microsoft\Exchange Server\bin\exshell.psc1" -noexit -command get-mailbox" This executes the Exchange command line "get-Mailbox" but I am sure it can execute any of the exchange commands.
June 20th, 2008 6:37pm

Hi, It require to add Exchange Management SnapIn in script, create a file name ScheMove.ps1 & add the code below. Code Snippet - ScheMove.ps1 Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin Move-DatabasePath . . . . . . . . Reference: Move-DatabasePath Now, create a batch file to schedule this script to run and schedule it with account which has Exchange Server Administrator role and local Administrator rights. Code Snippet - Schedule.CMD powershell -command "& 'c:\....\schemove.ps1' "
Free Windows Admin Tool Kit Click here and download it now
June 20th, 2008 6:55pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics