Map Network Drives

lehose
New Contributor

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`

---------------------------------

 

6 REPLIES 6

Tribruin
Contributor III
Contributor III

Did you switch over to the Kerberos SSO? The shares should mount automatically if you have a Kerberos ticket.

Also, if you want, you can have the script run automatically once KSSO logs in successfully. Take a look at this document from HCS:

A Guide for configuring Kerberos SSO 

It explains how to use distributed notifications to launch scripts on certain events. 

Thanks for the input.  We haven't switch over to kerberos yet.  We haven't approved Big Sur for on campus use yet. This is one of the pieces I'm trying to get working.  I've been told we won't be making the kerb change for a while.

jcarr
Contributor III

macOS Big Sir is not required.  You can deploy the Kerberos Single Sign-on Extension to Macs running macOS Catalina and newer.

lehose
New Contributor

Right, but we are not implementing Kerberos Single Sign-on at this time.  I'm just looking for a quick fix until we do.

jcarr
Contributor III

Understood.  Your post implied that you are not using Kerberos because you have not yet deployed Big Sur.  Sorry for the confusion.

lehose
New Contributor

I was able to map the drives using a configuration profile from Jamf.  However there doesn't appear to be a way to include this in the Enterprise Connect install policy.  Does anyone have ideas how to achieve that?  I was testing with the copying of plists, but haven't had any luck yet