Benches macOS

1

How do I change my NetBIOS name?

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

This has been asked before in this community, and elsewhere, but I have yet to find an answer: how can I change the NetBIOS name of my computer durably?

It is different from the computer name indicated in Settings > Sharing. If I try to change it in Settings > Network > Advanced > WINS, the change doesn't stick (and after deleting the current WINS name, one can see the WINS name grayed out underneath).

Since preferences have been managed by a daemon since OS X 10.9, I've tried the command

sudo defaults delete /Library/Preferences/SystemConfiguration/com.apple.smb.server.plist

followed by a restart. This appears to work for a few seconds -- and then the NetBIOS name returns.

I've also tried the defaults delete command followed by a restart and PRAM reset, to no avail.

The question is this: where is Mojave getting the NetBIOS name from, and how can I get a NetBIOS name change to stick?

1 reply

Sign in or join Beachball Help to reply.

  1. 0

    odysseus

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Turns out that the solution was to:

    1. Remove all the NetBIOS name entries in /Library/Preferences/SystemConfiguration/preferences.plist (there was one for every interface) (I used vi)
    2. Killall -9 cfprefsd
    3. Issue the

    sudo defaults delete/Library/Preferences/SystemConfiguration/com.apple.smb.server.plist
    

    command for good measure.

    4.Restart

    I hope this can help others.