Get-CMComputerAssociation
Gets Configuration Manager computer associations.
Syntax
Get-CMComputerAssociation
[-DestinationComputer <String>]
[-SourceComputer <String>]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[<CommonParameters>]
Get-CMComputerAssociation
-MigrationId <String>
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[<CommonParameters>]
Description
The Get-CMComputerAssociation cmdlet gets computer associations. 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.
Note
Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>
. For more information, see getting started.
Examples
Example 1: Get all computer associations
PS XYZ:\> Get-CMComputerAssociation
This command gets all the computer associations for Configuration Manager.
Example 2: Get computer associations for a destination comptuter
PS XYZ:\> 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 XYZ:\> 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 |
Aliases: | RestoreName |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DisableWildcardHandling
This parameter treats wildcard characters as literal character values. You can't combine it with ForceWildcardHandling.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ForceWildcardHandling
This parameter processes wildcard characters and may lead to unexpected behavior (not recommended). You can't combine it with DisableWildcardHandling.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MigrationId
Specifies the ID of a computer association.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
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 |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None
Outputs
IResultObject[]
IResultObject