One of the things we struggled with was the ease of mounting network shares for our Mac users that we easily accomplish for our Windows users. Our network became more complex when we added more VLANs so we really needed a good solution since the Macs only see what is on their current subnet in Bonjour, even though they can access the server via “Connect to Server” in the Finder menu.

We wrote an AppleScript and saved it as an App. For each Mac user we copy it to their Applications folder as we prepare their machine for deployment. We also setup each user’s profile so when they login the first time, there are fewer things for them to configure.

Once you have logged in as the user for the machine, go to System Preferences> Users & Groups> Choose the current user> and click on the Login Items tab. Browse or drag your Login into the window and you are set for it to run automatically each time the user logs in.

If the user has a laptop, we also keep a copy of the script in the Dock. We do this because if a user on our network logs in while on their wireless card, the Mac has to use cached credentials and can’t connect to the network until after it has logged in. Once they login they can manually launch the script from their Dock and the script runs just fine.

One other thing I’d like to note is that since we moved to a new namespace (from a .local namespace), it takes about a two seconds for the script to run. Before our Domain migration, it took about 15 seconds for it to find everything we mount.

If you are interested in creating your own login script for your Mac Users, here is a sample login script in a PDF. Below is a screen shot of the script so you can see what it looks like in the editor. The script was written by one of my volunteers, who has some cool things on his blog.

5/15/14 Update:  We made some changes to the Logon Script that have added improvements and removed some errors off site.  Our Macs are in our Domain so they authenticate with Kerberos tickets to our file server.  New Sample Logon Script here: Applescript Logon script ver2014