Jump to content

OS X Mount Active Directory Home Drive Automatically (Working Solution for OS X 10.10


Recommended Posts

Posted

Prior to OS X 10.9 Mavericks here at the college we would use the option in the "Directory Utility" app to mount the Active Directory home drives. This was done by checking off "Use UNC path from Active Directory" but with OS X 10.9 Mavericks & OS X 10.10 Yosemite there was the adoptions of SMB2 which does not play well with Microsoft's version of SMB. We would have drives mounting but not the drives we wanted. We would normally want their home folder mounted as (ex. /studentname) but instead it was now being mounted as (ex. share/studentname). This is how we've been running for the past two years and haven't had much luck fixing it. Today with the help of a co-worker we were able to come up with an AppleScript that fixes this.

 

Please see the full article here: http://twistedmac.com/index.php/29-mac-scripts/37-osx-mount-active-directory-home-drive-automatically

  • Thanks 4
  • 11 months later...
Posted

Hello Carter,

 

I have been having this same issue on multiple sites and not had any luck. When running the scipt i'm getting the following error:

 

tell current application

do shell script "whoami"

--> "Wes"

do shell script "dscl '/Active Directory/school/All Domains/' -read /Users/Wes | grep SMBHome: | cut -c 10- | sed 's/\\\\/\\//g' "

--> ""

end tell

tell application "Finder"

mount volume "SMB:"

--> error number -10004

end tell

tell application "Script Editor"

mount volume "SMB:"

--> error number -1715

end tell

Is there anything else that you had to do to get this working?

 

Has anyone else had this working?

 

Thanks!

 

Wes

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...