Reinstalling a computer can cause Configuration Manager 2007/2012 to create a new computer object for this computer and setting the existing computer object to obsolete.
To prevent Configuration Manager from automatically creating new computer objects and instead merging the new record with the existing object you have to implement a few changes.
Download the PowerShell script
Download the PowerShell script and save it to a location on your site server. In this example I use “D:\Scripts\ConfigMgr\MergeConflictingRecords.ps1”.
Create a Status Filter Rule
- In the Configuration Manager Console go to Administration / Site Configuration / Sites.
- Select the site you want to configure the rule for.
- Select Status Filter Rules from the Ribbon.
- Create a new Rule with the following settings:
Merge conflicting records
Run a program
Configure the conflicting client records action
By default, Configuration Manager automatically resolves conflicting records. You have to change this behavior to make sure the Status Filter Rule can take over.
- In the Configuration Manager console go to Administration / Site Administration / Sites.
- Select Hierarchy Settings from the Ribbon.
- Select the Client Approval and Conflicting Records tab.
- Change the Conflicting client records setting to Manually resolve conflicting records.
Thanks to Jörg Nilsson and his blog post about merging conflicting records with Status Filter Rules.