Set-CMMigrationExclusionList
Set-CMMigrationExclusionList
Edits the global exclusion list for migration jobs.
Syntax
Parameter Set: EditExclusionListByName
Set-CMMigrationExclusionList -Name <String[]> [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
The Set-CMMigrationExclusionList cmdlet edits the global exclusion list for migration jobs in Microsoft System Center 2012 SP1 Configuration Manager.
For a collection-based migration, you specify one or more collections to migrate. For each collection that you specify, the migration job automatically selects all related objects for migration. Objects on the exclusion list are available for migration, but System Center 2012 Configuration Manager does not automatically include these objects when you create a new collection-based migration job.
Parameters
-Name<String[]>
Specifies an array of objects that you exclude by default from collection-based migration jobs.
Aliases |
EntityName |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-Confirm
Prompts you for confirmation before running the cmdlet.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example 1: Specify a migration exclusion list
This command adds the objects in the array ContosoUsersWest01 to the migration exclusion list.
PS C:\> Set-CMMigrationExclusionList -Name "ContosoUsersWest01"