Jump to content

Login script to map SMB home drives to desktop on Yosemite


Recommended Posts

Posted

Hi,

Does anybody have an example of a good login script that I can use to map a users SMB home drive and shared drive to the Yosemite desktop

and any instructions on where to place it.

Had enough of Yosemite profile manager and home folders trying to get them to appear.

Posted

You need to open script editor,

 

Put the following code in, (Amend to your own details)

 

tell application "System Events"

tell current user

set fn to full name

try

mount volume "smb://share.yourdomain/yourfolder/yoursubfolder/" & fn

end try

end tell

end tell

 

Export the script as an application and place in the /USR/BIN folder.

 

Now in Profile manager go to Login Items for users and under Items put the path to the login app. e.g.

Capture.JPG

 

This will now map the home drive onto the desktop.

  • Thanks 1

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...