Connect to SMB server on startup I got a late 2017 macbook pro running the High Sierra update. I am wondering if its possible to auto connect to a smb server. I need to do this manually everytime i start up at work. And as small as it is. It gets quite annoying!

I have found a way to connect to AFP servers using a script (but im not using any) but that didnt work for me. 

Thanks!
There's a number of options for doing this, but the easiest way is to just use your Login Items. More specifically:


In the Finder, press CommandK (or click on the Go menu and select Connect to Server...)
Now enter the server address 
Click on the Connect button
IMPORTANT: If you're a registered user, when entering your login details you must ensure you enable the option for remembering your password in keychain
Once connected, go to Apple > System Preferences > Users &amp; Groups
Select the Login Items tab
Now navigate to the mounted server (e.g. on your desktop) and drag it to the Login Items list
OPTIONAL: If you don't want the server window to open every time you startup, you can click on the Hide checkbox on the left of the server in the Login Items list


NOTES: 


At step 4 the reason I say you must opt to remember the password is that macOS needs to remember this in order to be able to log in automatically!
At step 7, if you don't see the server mounted on your desktop, then go to Finder > Preferences > General and tick the checkbox for Connected servers.
Keep in mind that if for whatever reason your Mac can't connect to the server, this may in fact become more annoying then having to connect manually.


If your server doesn't mount on the desktop

If you can't get the server to mount on your desktop, try following these steps instead:


Go to Apple > System Preferences > Users &amp; Groups
Select the Login Items tab
Click on the + button at the bottom of the Login Items list
In the window that opens, click on the server in your left Sidebar (or navigate to it)
If you're not already connected to it, then connect to it through this window. (IMPORTANT: If you're a registered user, when entering your login details you must ensure you enable the option for remembering your password in keychain)
Once connected, navigate to and select whichever folder on your server you use the most
After a moment the add button will become active. Click on this
Now the folder you selected at Step 6 will be added to your Login Items
OPTIONAL: If you don't want the server window to open every time you startup, you can click on the Hide checkbox on the left of the server in the Login Items list


To show network mounted volumes (SMB, AFP, NFS, etc.) on your desktop, issue the following command in Terminal:

defaults write com.apple. finder ShowMountedServersOnDesktop —bool true