Wanted to know if it was possible to enable file sharing and enable SMB through applescript or command line? I have found:
do shell script "/bin/launchctl load -w " & "/System/Library/LaunchDaemons/com.apple.AppleFileServer.plist" with administrator privileges
To enable AFP file sharing and haven’t found a way to turn on SMB. Any help would be greatly appreciated.