Skip to content

Commit 4e39fae

Browse files
authored
Update Set-MigrationBatch.md with new example
Added example for incrementally adding users to a migration batch.
1 parent d5f6692 commit 4e39fae

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

exchange/exchange-ps/ExchangePowerShell/Set-MigrationBatch.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ Set-MigrationBatch -Identity MigrationBatch01 -ApproveSkippedItems
7373

7474
This example updates MigrationBatch01 by approving all of the skipped items for all of the users in the batch that were detected previously.
7575

76+
### Example 2
77+
```powershell
78+
`Set-MigrationBatch -Identity MigrationBatch01 -AddUsers -CSVData ([System.IO.File]::ReadAllBytes('C:\Data\MigrationBatch01.csv'))`
79+
```
80+
81+
In the cloud-based service, this example adds new users to the existing migration batch named MigrationBatch01. The new users are identified in the file C:\Data\MigrationBatch01.csv that was used to create the original migration batch. Only the new users in the file are processed.
82+
7683
## PARAMETERS
7784

7885
### -Identity
@@ -102,13 +109,9 @@ Accept wildcard characters: False
102109
103110
This parameter is available only in the cloud-based service.
104111
105-
This command supports incrementally adding users to an existing migration batch without recreating or resubmitting the entire batch. It should be used as follows:
106-
107-
> Set-MigrationBatch -AddUsers -CSVData <FilePath>
108-
109-
The CSV file provided in the -CSVData parameter must have the same format as the one originally used when creating the migration batch with New-Migration-Batch.
112+
The AddUsers switch specifies whether to incrementally add users to an existing migration batch without recreating or resubmitting the entire batch. You don't need to specify a value with this switch.
110113
111-
Running this command appends the new CSV data provided to the existing CSV data that already belongs to the migration batch. It then only processes the new entries, rather than reprocessing the existing ones.
114+
You use this switch with the CSVData parameter. The specified CSV file must have the same format as the CSV file used to create the migration batch. Only new entries in the CSV file are processed. For more information, see Example 2 in the Examples section.
112115
113116
```yaml
114117
Type: SwitchParameter

0 commit comments

Comments
 (0)