I'm new to Jamf Pro and MacOS, so bare with me. I'm trying to find an alternative method to mapping two network drives for new computer deployments. Each user has an H drive for their local files, and an S drive for department files. These were originally mapped as part of our enterprise connect package/scripts. They stopped working with Big Sur.
I've had some luck with the script below. However it prompts for credentials and places both shares under Locations on the Finder sidebar. Ideally I'd like to avoid the login prompt and have the mapped drives display as desktop shortcuts.
---------------------------------
# Mount the network home
mount_script=`/usr/bin/osascript > /dev/null << EOT
# tell application "Finder"
# activate
mount volume "smb://servername/shares/"
mount volume "smb://servername/home/"
# end tell
EOT`
---------------------------------
