Merge-​CM​Conflicting​Record

Merges a new Configuration Manager client record with a conflicting client record.

Syntax

Merge-CMConflictingRecord
     [-Confirm]
     [-DisableWildcardHandling]
     [-ForceWildcardHandling]
     -Id <String>
     [-WhatIf]
     [<CommonParameters>]
Merge-CMConflictingRecord
     [-Confirm]
     [-DisableWildcardHandling]
     [-ForceWildcardHandling]
     -InputObject <IResultObject>
     [-WhatIf]
     [<CommonParameters>]
Merge-CMConflictingRecord
     [-Confirm]
     [-DisableWildcardHandling]
     [-ForceWildcardHandling]
     -Name <String>
     [-WhatIf]
     [<CommonParameters>]
Merge-CMConflictingRecord
     [-Confirm]
     [-DisableWildcardHandling]
     [-ForceWildcardHandling]
     -SiteCode <String>
     [-WhatIf]
     [<CommonParameters>]

Description

The Merge-CMConflictingRecord cmdlet merges a new Microsoft System Center Configuration Manager client record with a conflicting client record that has the same hardware information.

When Configuration Manager recognizes a new client, it uses hardware information to check whether it previously created a record for that computer. For example, you might have reinstalled the operating system. The previous client record still exists with the same hardware information. If you manually resolve conflicts, you have the option to merge the new record with the existing record, create a new record, or create a record as a blocked record. You can also configure Configuration Manager to resolve conflicts automatically. For more information, see Configuring Settings for Client Management in Configuration Manager on TechNet.

You can specify conflicting records by using a name or ID or you can specify a site code to merge each of the unresolved conflicting records for that site.

Examples

Example 1: Merge conflicting records for a site

PS C:\>Merge-CMConflictingRecords -SiteCode "CM2"

This command merges each of the conflicting records for the specified System Center Configuration Manager site.

Example 2: Merge records for a named conflict

PS C:\>Merge-CMConflictingRecords -Name "CR07"

This command merges the conflicting records named CR07.

Required Parameters

-Id

Specifies an ID for the conflicting records.

Type:String
Aliases:Smsid
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject

Specifies the input to this cmdlet. You can use this parameter, or you can pipe the input to this cmdlet.

Type:IResultObject
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Name

Specifies a name for the conflicting records.

Type:String
Aliases:AgentName
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SiteCode

Specifies a site code for a Configuration Manager site. This cmdlet merges the conflicting records for this site.

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

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
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
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False