Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# must be run as root
scutil --set ComputerName $COMPUTER_NAME
scutil --set HostName $COMPUTER_NAME
scutil --set LocalHostName $COMPUTER_NAME
defaults write /Library/Preferences/SystemConfiguration/ 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.