Contribute
Register

[GUIDE] Clear multiple configuration identities in MacOS

jaymonkey

Moderator
Joined
Aug 27, 2011
Messages
4,079
Motherboard
GB Z490 Vision D
CPU
i9-10850K OC @ 5.2 GHz
Graphics
RX6800-XT+UHD630
Mac
  1. MacBook Air
  2. MacBook Pro
  3. Mac Pro
Mobile Phone
  1. iOS
Background Information

MacOS generates a configuration 'key' based on the current SMBIOS identity ID's such as SM type, S/N, MLB, ROM .. etc. This 'key' is used as a 'pointer' to the current configuration that MacOS will use in the file(s) located in :-

/Library/Preferences/SystemConfiguration

Example Preferences.plist :-
Code:
<dict>
    <key>CurrentSet</key>
    <string>/Sets/D80BAEE4-A6B5-4654-BD59-84CA3BAAC790</string>
    <key>Model</key>
    <string>MacBookPro14,1</string>

If you change your SMBIOS type or any of the critical system ID's such as MLB, ROM, S/N in your clover config.plsit then MacOS will generate a new configuration 'set' and 'key' but will also keep copies of all previous configuration 'sets' in its configuration files. If you have an iCloud account then these old configuration 'sets' remain as associated devices with your iCloud account.

As most of us will know its possible to remove old Hackingtosh devices from our iCloud accounts using the online iCloud website and going into setup -> devices, however 'ghost' devices that are identified through multiple configuration 'sets' on the local system do not always show up on the on-line system.

You can easily check to see if your system has multiple 'ghost' configuration identities :-

Open System Preferences, Click on the iCloud icon and then on Account Details, wait for a few seconds and you should see a new dialogue panel open, wait a few seconds and then click on the Devices tab.

You should see a list all of the devices registered with your iCloud account.

If you have changed any of the SMBIOS ID's on existing Hackingtosh builds then it is quite likely that you will see multiple instances of them in this list. In my case I had four versions of my HP Spectre X360 laptop that i've been working on over the last few months.

iCloud Devices.png

Normally we can use this dialogue panel to remove devices associated with our iCloud account by simply selecting a device in the list and then clicking the option 'Remove from Account'. You need to click on each one and compare the System Type and S/N to to you current working build to identify the ghost devices to remove. This works fine for devices that are no longer associated with a live configuration.

However since you are quite likely logged into iCloud on a device that has multiple device configuration 'set's this will not work, if you try you'll see the 'ghost' device removed from the list for a few seconds and then be re-listed again.

Ramifications of Multiple Configuration Identities

Good question, to my knowledge none at the moment, however since genuine Apple Mac systems have all the SMBIOS ID's baked into the motherboard and firmware its unlikely that it would ever happen on a genuine Apple Mac unless the motherboard was replaced, in which case its quite likely that Apple would cleanup the configuration files before returning the system back to the customer.

Its quite feasable that Apple could use the existence of multiple configuration keys to identify Hackingtosh systems in the future if they wanted to. As detailed in my iMessage Guide in the past Apple have used invalid SMBIOS data to block and lockout iMessage users and in some cases iCloud accounts. At the moment Apple seem to be relaxed about the use of Hackingtosh systems with iMessage and iCloud but that could change.

I believe in good house keeping with MacOS and we should do everything we can to keep things as close to a genuine Appel Mac system as possible.

How to clear Multiple Configuration Identities

The procedure to reset MacOS Configuration files is detailed in Section 3.2 of my iMessage Guide what follows is doctored version of that method more applicable to this issue. This procedure is completely safe if followed correctly and you will not loose any data, this method is also recommended by Apple support when genuine Mac's have configuration issues.

1. Using Finder navigate to the root of the OSX/MacOS system drive and then to :-

/Library/Preferences/

Note: You may need to use show all files or press <SHIFT><CMD>. to see these folders/files

2. Make a backup copy of the folder :-

SystemConfiguration

Save it somewhere in your user folder such as Documents/Sys-Backup just in case something goes wrong or you need to reference something in your old config files. Most of what is stored in these files is used internally by MacOS and they do not contain much if any user settings or critical

3. Select all the files in the SystemConfiguration folder in /Library/Preferences/ and move them to the trash/bin.

4. Enter your Password if prompted.

5. Empty the trash and reboot.

6.. Upon reboot OSX/MacOS will rebuild all of the configuration files, with just one configuration identity.

Note: This will reset a few of your network settings such as the last connected WiFi network but the SSID passwords will still be stored on the system. If you have set a custom "Computer Name" that too will be rest to the default.

7. To ensure that you can easily identify the device entry that is using the current active configuration 'set' I recommend that you set a custom computer name, Open System Preferences and click on 'Sharing 'and enter a custom "Computer Name", make sure this is different to any that you have used in the past, close Sys Prefs and reboot again.

8. You can now go back to System Preferences -> iCloud -> Account Details -> Devices, if you followed step 7 then you will be able to identify the current active device from the computer name you entered (usually at the top), you can now work your way through the rest of the list and remove any 'ghost' device entries. If you did not perform step 6 then check each 'ghost' entry by clicking on it and very carefully comparing the details against your current SMBIOS values and MacOS version to ensure you only delete the ghost entries and not the active one.

Final Thoughts

If you've been working on getting a Hackingtosh system up and running and have changed either the SMBIOS type or any of the associated critical ID's then its worth checking for ghost devices associated with your iCloud Account. Apple are notorious for closing security holes and with the Mac much of the security revolves around the SMBIOS and its critical ID's.

From a Hackingtosh perspective keeping a clean house will help to ensure that your system continues to work with Apples iCloud and on-line services such as iMessage, as such its worth going through the above procedure once you have a working and stable system.

Cheers
Jay
 
Last edited:
Following this guide, my Apple ID device list and the iCloud device list accessed via Apple Device is clean and error free. The very strange thing is, that one wrong/old device is still listed via icloud.com and I still cant delete it from there. And there, my new Hackintosh is not listed like in the Apple ID list or the iCloud device list via device.

Accessed via original Macbook:
upload_2018-7-16_14-37-11.png


Accessed via Apple ID login (web):
upload_2018-7-16_14-38-41.png


Accessed via iCloud login (web):

upload_2018-7-16_14-39-29.png

The here displaced iMac (Hackintosh) has the wrong/outdated SN and a) not the new SN and b) the wrong device name. Since I face this problem, I have massive issues with the iCloud sync - especially with the calendar - on iOS devices.

UPDATE: After following steps from this post (https://www.tonymacx86.com/threads/cant-delete-hackintosh-from-icloud-com.177051/#post-1779808), now the old and the new Mac device are listed in the iCloud web overview. The device overview accessed through any device (OS/iOS) only shows the current device.
 

Attachments

  • upload_2018-7-16_14-38-3.png
    upload_2018-7-16_14-38-3.png
    98.6 KB · Views: 332
Last edited:
Hi, I followed the same procedure. But, still my ghost device appears in Account Details of iCloud settings.
Can you guide me?
388830
 
Last edited:
Thanks for the write up. You learn something new every day :)

Some things to add:

1. It is much safer to do this booted into recovery and then mounting your system from there. macOS locks and caches many of it's configuration files, especially those close to the system. Removing them from an active system can lead to corruption or conflicts. I'm 99% sure it's safe, but hey, nature favours the prepared.

2. You don't need to clear out everything in SystemConfiguration, just the any plist that ends with the SMBIOS you are no longer using. For example, if you've run 19,1, 1,1 and now run 7,1 you should have the following files, one for each:

NetworkInterfaces.plist-MacPro7,1
NetworkInterfaces.plist-iMac19,1
NetworkInterfaces.plist-iMacPro1,1


Simply delete the one(s) you no longer need. There are only a handful of files needing to be removed. If you use Quick Look on any file that doesn't have an SMBIOS suffix, and scroll to the bottom, you can see which SMIOS it belongs to. (Hint: any file that doesn't explicitly haven an SMBIOS at the end belongs to the current system.

3. The parent folder (/Library/Preferences) actually also stores multiple plists for things like PowerManagement. Each file is bound to the UUID. Find yours and delete all others no longer in use.

4. ~/Library/Preferences/ByHost also stores multiple plists bound to each individual UUID. Again, find yours and clear out all others.

As you mentioned above there is no downside to leaving them. And never will be. This is macOS being pragmatic and not breaking anything by leaving old stuff alone. Historically it's always done this. But I like to run a tight ship and see no need to have a boatload of cruft on my system.

Thanks again for this guide and hope the above supplemental info helps some.
 
You don't need to clear out everything in SystemConfiguration, just the any plist that ends with the SMBIOS you are no longer using.


@LordHumungus,

Unfortunately you seem to have missed an important point in the guide.

In many cases users will have kept the same SMBIOS type but may have changed the SMBIOS ID's such as S/N, MLB, ROM .. etc, in this case there will only be one set of config files in the SystemConfiguration sub folder (all without a SMBIOS suffix) and within those config files there will be multiple identities stored as "/set/" keys (each defined as a UUID of type "<string>"). It is the "/Set/" key UUID's that create ghost identities on a iCloud account.

macOS locks and caches many of it's configuration files, especially those close to the system. Removing them from an active system can lead to corruption or conflicts.


Not true in the case of the SystemConfiguration sub folder.

Deleting the contents of the SystemConfiguration sub folder is nothing to worry about as MacOS will automatically rebuild the contents on the next reboot. The procedure is listed on the official Apple self support site as a safe way to solve many network related issues and is usually the first thing an Apple support operator will do (either by remote control or talking a user through the procedure) when someone reports having any kind of network related issue to Apple support.

3. The parent folder (/Library/Preferences) actually also stores multiple plists for things like PowerManagement. Each file is bound to the UUID. Find yours and delete all others no longer in use.

4. ~/Library/Preferences/ByHost also stores multiple plists bound to each individual UUID. Again, find yours and clear out all others.


I am aware of the other locations but those config files do not contribute to the ghost system identities seen in a iCloud account which is primarily what the guide was written to resolve. To keep things simple for novices without having to selectively wade through a long list of plists it's far simpler for them just to delete the contents of of the SystemConfiguration sub folder which will resolve multiple iCloud identities for the same machine generated by both scenarios (same SMBIOS multiple S/N, MLB and/or multiple SMBIOS's) and not worry about the other locations.

Cheers
Jay
 
Last edited:
The procedure is listed on the official Apple self support site as a safe way to solve many network related issues and is usually the first thing an Apple support operator will do
Alright man... here goes
 
How to clear Multiple Configuration Identities

The procedure to reset MacOS Configuration files is detailed in Section 3.2 of my iMessage Guide what follows is doctored version of that method more applicable to this issue. This procedure is completely safe if followed correctly and you will not loose any data, this method is also recommended by Apple support when genuine Mac's have configuration issues.

1. Using Finder navigate to the root of the OSX/MacOS system drive and then to :-

/Library/Preferences/

Note: You may need to use show all files or press <SHIFT><CMD>. to see these folders/files

2. Make a backup copy of the folder :-

SystemConfiguration

Save it somewhere in your user folder such as Documents/Sys-Backup just in case something goes wrong or you need to reference something in your old config files. Most of what is stored in these files is used internally by MacOS and they do not contain much if any user settings or critical

3. Select all the files in the SystemConfiguration folder in /Library/Preferences/ and move them to the trash/bin.

4. Enter your Password if prompted.

5. Empty the trash and reboot.

6.. Upon reboot OSX/MacOS will rebuild all of the configuration files, with just one configuration identity.

Note: This will reset a few of your network settings such as the last connected WiFi network but the SSID passwords will still be stored on the system. If you have set a custom "Computer Name" that too will be rest to the default.

7. To ensure that you can easily identify the device entry that is using the current active configuration 'set' I recommend that you set a custom computer name, Open System Preferences and click on 'Sharing 'and enter a custom "Computer Name", make sure this is different to any that you have used in the past, close Sys Prefs and reboot again.

8. You can now go back to System Preferences -> iCloud -> Account Details -> Devices, if you followed step 7 then you will be able to identify the current active device from the computer name you entered (usually at the top), you can now work your way through the rest of the list and remove any 'ghost' device entries. If you did not perform step 6 then check each 'ghost' entry by clicking on it and very carefully comparing the details against your current SMBIOS values and MacOS version to ensure you only delete the ghost entries and not the active one.

Thanks for the guide!

I have been having problems with iCloud (iMessage, iCloud Photos) and read that logging out of and then back into iCloud could solve some of my problems.

Should I ldo that before or after deleting /Library/Preferences/SystemConfiguration folder?

Thank you,

Bruno
 
Back
Top