Can I Script?

P

PDinh73

Guest
I manage our AD setup and what I am really looking for is a way to
automatically map/mount network drives for Macs in a similar way that I
do for PCs. I would love it if there was a way that I could stick a
script on the servers that the Mac clients would look at and run that on
startup and mount their network drives. I am really trying to avoid
going to every machine and making an SMB shortcut on their desktop
because then it becomes a nightmare when I have to change the file
structure and all their shortcuts break. Is it possible?
 
Joined
May 22, 2005
Messages
2,159
Reaction score
67
Points
48
Location
Closer than you think.
Your Mac's Specs
Performa 6116 2GBSCSI 8MB OS 7.5.3
I haven't been able to. The login.bat that you probably use in AD is not a binary file and therefore Mac won't read it correctly. You'd have to either create the script in an OS X app or VI.

Anything you try you'd need to apply to the computer account.
 
OP
P

PDinh73

Guest
MacsWork said:
I haven't been able to. The login.bat that you probably use in AD is not a binary file and therefore Mac won't read it correctly. You'd have to either create the script in an OS X app or VI.

Anything you try you'd need to apply to the computer account.

So how do you apply it to a computer account? (Thanks for the feedback)
 
Joined
May 22, 2005
Messages
2,159
Reaction score
67
Points
48
Location
Closer than you think.
Your Mac's Specs
Performa 6116 2GBSCSI 8MB OS 7.5.3
Since I'm an AD noob I'd assume there is a place in AD the say on login run this file. You'd have to use a UNC path, although the Mac might be looking for //server/share vs. \\server\share.

In administrer users and computers you'll see the Mac under computer accounts. Edit group policy there for the Mac. Keep in mind I don't know what the script would be, but I'm sure there's something out there already.

If the Macs are Tiger you might ever be able to create an Automator workflow and save it to use as the desired script/executable.

I'll fire up my W2k3 server and let you know if I can get more specific.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top