• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 441
  • Last Modified:

Automate mapping drives to Mac

I have a user that takes her macbook home with her at night and when she comes into the office at work she needs mapped drives. I've entered logon scripts but she doesn't reboot when she comes in she just plugs in and gets to work. Is there a way to have a script run or somehow map drives automatically when she hops on the network? Somehow use the work network as the variable to trigger the event? Or just everytime she opens the lid it runs the script? Or gets an IP address?

Thanks in advance.
1 Solution
Just put aliases to her network drives on the desktop or in her dock. Then the drives will open whenever she double clicks the alias.
You can also write an apple script like the following and either access it from the desktop or have it in the login items. Issue with having it in the login items is when she logs in and isn't on the LAN.
tell application "Finder"
	delay 0.3
		mount volume "smb://Servername1/applications"
		mount volume "smb://servername2/lis"
		mount volume "smb://servername3/public"
	end try
	delay 0.3
end tell

Open in new window

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now