Appendix D: Migration Processing Scripts. Binary Tree 4.4
विज्ञापन
विज्ञापन
Appendix D: Migration Processing Scripts
The Migration Processing Scripts include these MCP scripts:
Confirm-ScheduleMigration.ps1
Confirm-BeginMigration.ps1
Confirm-EndMigration.ps1
Enabling Migration Customization Scripts
Perform the following steps to enable the migration scripts to be called from Exchange Pro.
1. Click Settings in the main toolbar.
2. Click the Scripts tab. The script settings are displayed.
3. Check Enable External Scripts.
4. Set the Scripts Folder location. For example, c:\contoso\scripts\ps\
5. Enter the script file name for the Migration Script you want to be called. For example: In the End
Migration Script field, enter Confirm-EndMigration.ps1
Failures designed to halt the migration can be expressed as thrown exceptions or as calls to Write-Error in the confirmation scripts. Both the Schedule and Begin confirmations can halt the migration by failing in this manner. The End confirmation cannot cause the migration to fail if the mailbox is already complete, but it can cause a warning to be reported.
Because the confirmation script runs in a non UI environment, calls in PowerShell such as Write-Host will cause faults and should not be used. Write-Error, Write-Warning, and Write-Verbose are acceptable to use, since they write to specific pipelines which are redirected in PowerShell.
Exchange Pro 4.4 User Guide
130
डाउनलोड
विज्ञापन