Skip to content

Instantly share code, notes, and snippets.

@wtfaremyinitials
Created April 13, 2019 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wtfaremyinitials/5dc2c0f79e43fe58aa00ff93668837e5 to your computer and use it in GitHub Desktop.
Save wtfaremyinitials/5dc2c0f79e43fe58aa00ff93668837e5 to your computer and use it in GitHub Desktop.
# 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