I made this into a profile using MCXtoProfile. Testing on OS X 10.9.5. The JSS is not involved yet.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>favoriteservers</key>
<dict>
<key>Controller</key>
<string>CustomListItems</string>
<key>CustomListItems</key>
<array>
<dict>
<key>Name</key>
<string>smb://server1.fqdn/</string>
<key>URL</key>
<string>smb://server1.fqdn/</string>
</dict>
<dict>
<key>Name</key>
<string>smb://server2.fqdn/</string>
<key>URL</key>
<string>smb://server2.fqdn/</string>
</dict>
<dict>
<key>Name</key>
<string>afp://server3.fqdn/</string>
<key>URL</key>
<string>afp://server3.fqdn/</string>
</dict>
</array>
</dict>
</dict>
</plist>
Tried scripting additions of servers as well using the following as well:
#!/bin/bash
/usr/bin/defaults write com.apple.sidebarlists favoriteservers -dict Controller CustomListItems CustomListItems '( { Name = "afp://server1.fdqn/"; URL = "afp://server1.fdqn/"; }, { Name = "smb://server2.fdqn/"; URL = "smb://server2.fdqn/"; }, { Name = "smb://server3.fdqn/"; URL = "smb://server3.fdqn/"; } )'
killall cfprefsd
killall cfprefsd
killall cfprefsd
exit 0
The script at the very least creates the plist but doesn't populate the favorite servers like I want it to. Tried killing Finder as well, but that didn't do much either. Restarting the computer does work, but I don't want to have people restart for something that really shouldn't require a reboot.
I've checked out a few threads but none seem to mention what needs to be killed for the plist to take effect right away. Ideally the profile would just work but that's not happening. How are others approaching this?
