Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# must be run as root
COMPUTER_NAME=name
scutil --set ComputerName $COMPUTER_NAME
scutil --set HostName $COMPUTER_NAME
scutil --set LocalHostName $COMPUTER_NAME
defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string $COMPUTER_NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.