Hi everyone,
I am a relatively new (12 months) Mac user for my personal computer needs, however I have a mixed environment (Windows Media Center, Xbox 360, Windows Desktop PC's & Laptops and some Buffalo Linkstation network drives), so have alot of Windows File Shares.
I've searched everywhere for information on how to auto connect (auto mount) Windows File Shares (SMB) during bootup of my MBP and Mac Mini, but have had little success. In the end what I came up with was to create an Automator script, save it as an application then run that application at startup.
The script I made in Automator looks like below. Drag 1 & 2 in order over to the right workflow window in automator.
1.
Library: Finder
Action: Get Specified Servers
Name: smb://workgroup;servername/sharename
2.
Library: Finder
Action: Connect to Servers
Once done it should look like this:
With the smb "Name" above - you add this by clicking on the +, then choosing "File Servers" from the "Show" drop down box, then browsing your network until you find what you want. You then need to add the "/sharename" to the end of the "Address". You can get this share name from the Windows PC, or via the drop down box that comes up when you connect using the "Network" link in the Finder.
Once done, disconnect the shares you may have manually connected yourself (they'll be on your desktop), then run the script. You should see the red automator dot up near the clock of your Mac, then the shares should turn up one at a time on your desktop.
Once this works, choose "Save As..." from the File menu, and save it as an application somewhere on your Mac (somewhere you'll remember). You can then go into the "System Preferences" then into Accounts, and go to Login Items, click the + and browse to the app you just created and add it.
You'll then have your SMB shares mount automatically every time you load your Mac.
Note: If anyone has a better way to do this that is easier, please let me know.
Thanks,
Shane.