I'm trying to work out a script that will mount SMB shares and have them available on the desktop for the users. I searched around and did come upon a few posts that helped get me started, but I'm not sure where it's getting stuck now.
My script looks like this:
#!/bin/sh
defaults write com.apple.finder ShowMountedServersOnDesktop -bool True
mkdir -p /Users/$3/Desktop/Public
mkdir -p /Users/$3/Desktop/Home
mount -t smbfs //fileserver/staff/$3 /Users/$3/Desktop/home
mount -t smbfs //fileserver/Public /Users/$3/Desktop/public
exit
When I create a policy with this script for login, it doesn't give any errors in the log, but it only mounts up to the Staff share and appears on the desktop and the public share doesn't appear on the desktop. I converted it to an AppleScript which worked ok, sometimes it would only create the folders on the first run and then mount them on the second, but I am not sure how to get the Applescript to be deployed at logon through JSS and what I would need to modify for it to run with the logged in account.
I did see the website that shows how to add shares and printers based on the user group membership in AD, but I'm trying to keep it as simple as possible right now.
Thanks in advance.
