Get-​CM​Computer​Association

Gets Configuration Manager computer associations.

Syntax

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

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
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
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

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

ForceWildcardHandling processes wildcard characters and may lead to unexpected behavior (not recommended). Cannot be combined with DisableWildcardHandling.

Type:SwitchParameter
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
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False