I can't comment because of rep but I would like to add to this because people now might come across it and want to pull this off. With Sierra's SIP implementation, Adam's method no longer works by default due to the inability to copy files to any CoreServices subdirectories. You would have to disable SIP first.
Before I go further you must understand that SIP is a protective measure put in place by Apple to make sure the integrity of your system is not compromised.
I will not go into how I feel about SIP as an application developer but suffice it to say that I'm not always in sync with Apple's decision making.
To do this:
Reboot your Mac.
When you hear the chime, press and hold CMD+R until you see the desktop start to appear.
From the 'Utilities' menu on the top, select 'Terminal'
Type "csrutil disable" and hit enter.
Type "reboot" and hit enter.
SIP is now disabled. I generally don't care for SIP myself but understand I'm in the minority. Also, I don't want Apple too mad at me. That said, I recommend if you are doing this to replace a system icon that you reenable SIP immediately when you are done. To do so, follow the instructions to disable but replace the word "disable" with "enable".
There needs to be a way to distinguish between the machines, and I don't think samba will purposely behave different from windows to be recognised as such... – Daniel Beck – 2011-12-05T07:03:10.167
According to this, you can advertise a server as an Xserve or other device. Looking in CoreType.bundle, I can see that there is a mapping of these names (for example Xserve or RackMac is mapped to com.apple.xserve (.icns) by using the com.apple.device-model-code Equivalent Types. Extending from this, I'd assume that creating a custom one would be adding another entry, but I can't get it to work.
– Adam M-W – 2011-12-12T08:21:12.583I'd argue this belongs to SO because I don't believe there's any tweak that would allow that without any heavy programming. But then again, I'm just guessing here in hope to shed a light. :P – cregox – 2012-01-10T12:27:25.390