Get-CMMigrationCollection
Get-CMMigrationCollection
Gets collections selected for migration.
Syntax
Parameter Set: SearchById
Get-CMMigrationCollection [-Id <String> ] [ <CommonParameters>]
Parameter Set: SearchByName
Get-CMMigrationCollection [-Name <String> ] [ <CommonParameters>]
Detailed Description
The Get-CMMigrationCollection cmdlet gets the collections selected from a source hierarchy for migration. A collection is a set of resources in the Microsoft System Center 2012 Configuration Manager hierarchy. A migration collection is the set of resources chosen from a hierarchy for migration, including related objects.
Parameters
-Id<String>
Specifies an identifier for a collection in Configuration Manager.
Aliases |
CollectionEntityId |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-Name<String>
Specifies a name for a collection in Configuration Manager.
Aliases |
CollectionName |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
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: Get a migration collection by name
This command uses the Get-CMMigrationCollection cmdlet to get the migration collection. The command specifies the value PhoneCollection5 for the Name parameter.
PS C:\> Get-CMMigrationCollection -Name "PhoneCollection5"