Quest recently announced that the On Demand Migration (ODM) PowerShell API module is now available in the PowerShell gallery. To help get you started, we have compiled a few example scripts that demonstrate how to perform common migration activities using the ODM API.
The examples below assume you have already connected to ODM and selected your Organization, Project, and ProjectWorkload, as described in the ODM API New Feature Spotlight. Note that these scripts are provided as-is for example purposes only, and you may need to modify them to work for your specific project.
Table of Contents
- Discover Accounts - Create task, start task, monitor task status
- Migrate Accounts - Create multiple tasks with a defined number of objects
- Migrate Mailboxes - Create task from collection, schedule task start time
- Migrate OneDrive - Create task, filter by size, schedule task start time
- Monitor Tasks - Return status and details for In Progress tasks
- Auto Start Tasks - Auto-start tasks, limit number of concurrent parallel tasks
Discover Accounts - Create task, start task, monitor task status
This example demonstrates how to create a task to discover all accounts, start the task and monitor the status of the task until it is no longer In Progress.
Migrate Accounts - Create multiple tasks with a defined number of objects
This example demonstrates how to create multiple tasks with the defined number of objects. For example, if you need to migrate 2000 accounts, you can split the migration into 10 tasks with 200 accounts each. Note: This example creates the tasks, but does not run them.
Migrate Mailboxes - Create task from collection, schedule task start time
This example script demonstrates how to create a task from a collection and schedule the task to start after a defined number of minutes.
Migrate OneDrive - Create task, filter by size, schedule task start time
This example script demonstrates how to create a migration task for OneDrives sized between 1 GB and 10 GB that have not previously been migrated and schedule the task to start at a specific date and time.
Monitor Tasks - Return status and details for In Progress tasks
This example script demonstrates how to monitor running tasks and return detailed info, utilizing filters such as Wildcardfilter, tasktype filters, and Get-OdmEvent filters.
Auto Start Tasks - Auto-start tasks, limit number of concurrent parallel tasks
This example script demonstrates how to automatically start tasks based on how many parallel tasks you want to run for a specific task type.
Further Information
For more information on this and many other features within On Demand Migration, check out the ODM User Guide Appendix A: Using PowerShell. We welcome your feedback and suggestions below and invite you to visit us at Quest.com.