Merge-CMConflictingRecord
Merge-CMConflictingRecord
Merges a new Configuration Manager client record with a conflicting client record.
Syntax
Parameter Set: SearchBySiteCode
Merge-CMConflictingRecord -SiteCode <String> [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: SearchByIdMandatory
Merge-CMConflictingRecord -Id <String> [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: SearchByNameMandatory
Merge-CMConflictingRecord -Name <String> [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
The Merge-CMConflictingRecord cmdlet merges a new Microsoft System Center 2012 Configuration Manager client record with a conflicting client record that has the same hardware information.
When System Center 2012 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 System Center 2012 Configuration Manager to resolve conflicts automatically. For more information, see Configuring Settings for Client Management in Configuration Manager in the TechNet library at https://go.microsoft.com/fwlink/?LinkId=269847.
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.
Parameters
-Id<String>
Specifies an ID for the conflicting records.
Aliases |
Smsid |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-Name<String>
Specifies a name for the conflicting records.
Aliases |
AgentName |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-SiteCode<String>
Specifies a site code for a Configuration Manager site. This cmdlet merges the conflicting records for this site.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-Confirm
Prompts you for confirmation before running the cmdlet.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example 1: Merge conflicting records for a site
This command merges each of the conflicting records for the specified System Center 2012 Configuration Manager site.
PS C:\> Merge-CMConflictingRecords -SiteCode "CM2"
Example 2: Merge records for a named conflict
This command merges the conflicting records named CR07.
PS C:\> Merge-CMConflictingRecords -Name "CR07"