Mac - network share mapping script

KRIECCO
Contributor

Is it possible to make a simple network drive mapping script on a mac ?. The script that I need should be on windows like Net use J: servershare
I have found some scripts for mac, where username and password also are included. But this should be avoided. If mac are Ad joined is username and password needed to mount a smb share ?

2 REPLIES 2

mark_mahabir
Valued Contributor

We use this extremely useful script

howie_isaacks
Valued Contributor II

Why don't you use the Login Items payload in a configuration profile? One of the login items you can use is a network mount. If your Macs are joined to AD, the shares should mount without asking for a user name and password so long that a Kerberos ticket has been granted to the Mac. The network mount would be something like smb://server.domain.com/share, or smb://server/share. I prefer to use the fully qualified domain name of servers instead of just the Net Bios name.