Get-CMComputerAssociation

SYNOPSIS

Gets Configuration Manager computer associations.

SYNTAX

SearchByName (Default)

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

SearchByIdMandatory

Get-CMComputerAssociation -MigrationId <String> [-DisableWildcardHandling] [-ForceWildcardHandling]
 [<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.

PARAMETERS

-DestinationComputer

Specifies the name of a destination computer.

Type: String
Parameter Sets: SearchByName
Aliases: RestoreName

Required: False
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
Parameter Sets: (All)
Aliases: 

Required: False
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
Parameter Sets: (All)
Aliases: 

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

-MigrationId

Specifies the ID of a computer association.

Type: String
Parameter Sets: SearchByIdMandatory
Aliases: 

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

-SourceComputer

Specifies the name of a source computer.

Type: String
Parameter Sets: SearchByName
Aliases: SourceName

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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

OUTPUTS

NOTES

New-CMComputerAssociation

Remove-CMComputerAssociation

Set-CMComputerAssociation