Complete batch Script (Full Version)

All Forums >> [Microsoft Exchange 2013] >> Migration



Message


thejackal -> Complete batch Script (16.Apr.2015 8:48:43 PM)

Hey Guys,
I have a requirement where the customer would like the users migrated out of hours. I'm not keen at getting up in the middle of the night to kick it off so have decided to run the migration batch during the day with a manual completion.
In my testing the migration has worked fine however i would like to schedule the completion of the batch. Im gathering i can do this through task manager and power shell however having issues getting this working during testing.
I have made a ps file containing (which works fine when run from exchange shell.
Complete-MigrationBatch -Identity "Test Migrations" -confirm:$false
I have then called this through a scheduled task using the following
Program/Script: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
arguments: -command . c:\Program Files\Microsoft\Exchange Server\V15\bin\RemoteExchange.ps1′; Connect-ExchangeServer -auto; C:\source\batchcompleteion.ps1"

The task kicks off but does not start the batch migration completion. Any ideas would be appreciated.




Page: [1]