Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Set favorite servers in newer macOSes
#!/bin/bash
servers=("smb://server/share"
"smb://anotherserver/anothershare")
###### SCRIPT #######
# Run as the user via ARD
for i in "${!servers[@]}"
do
sfltool add-item -n "${servers[$i]}" com.apple.LSSharedFileList.FavoriteServers "${servers[$i]}"
done
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.