Created
April 13, 2019 20:46
-
-
Save wtfaremyinitials/5dc2c0f79e43fe58aa00ff93668837e5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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