Get-CMComputerAssociation

Gets Configuration Manager computer associations.

Syntax

Get-CMComputerAssociation
   [-DestinationComputer <String>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-SourceComputer <String>]
   [<CommonParameters>]
Get-CMComputerAssociation [-DisableWildcardHandling] [-ForceWildcardHandling] -MigrationId 
 []

Description

The Get-CMComputerAssociation cmdlet gets computer associations. Microsoft System Center Configuration Manager uses a computer association to migrate user state and settings as part of operating system deployment. You can specify a source computer, a destination computer, or both. You can also use an ID to specify a computer association.

Examples

Example 1: Get all computer associations

PS C:\> Get-CMComputerAssociation

This command gets all the computer associations for System Center Configuration Manager.

Example 2: Get computer associations for a destination comptuter

PS C:\> Get-CMComputerAssociation -DestinationComputer "West155"

This command gets all the computer associations for the destination computer named West155.

Example 3: Get a computer association by using an ID

PS C:\> Get-CMComputerAssociation -MigrationId "MID1207"

This command gets the computer association that has the ID MID1207.

Required Parameters

-MigrationId

Specifies the ID of a computer association.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-DestinationComputer

Specifies the name of a destination computer.

Type:String
Aliases:RestoreName
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

Indicates that wildcard handling is disabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

Indicates that wildcard handling is enabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SourceComputer

Specifies the name of a source computer.

Type:String
Aliases:SourceName
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False