Finding a Mac’s network name

It’ll be in a form like XXX-XXXXXXX-XXX

Good:

About this Mac -> System Report ->Network -> Locations -> SMB: NetBIOSName

Then copy the name.

Better:

In terminal:

defaults read /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName

Then copy the name.

Best:

In terminal:

defaults read /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName | pbcopy

It’ll already be copied on your clipboard.

Then:

System Preferences -> Sharing. Paste the name where the model of the Mac is now.