DrunkMunki
Registered
i have spent the past 2 weeks searching google and have also searched these forums and have found standard responses using Automator and drag drive into login items...
But i need to do this for 100+ macs with over 500 Users who will be logging in using a Microsoft ADS bound to a Mac Snow Leopard Server in the city.local forest.
We will be rolling out a single mac student image and need help to create a login script on login that will:
1) mount network drive "cty-mac-stu/Users" using AFP on login
2) create a folder (on login if it doesnt exist already) under cty-mac-stu/Users with their username (using "whoami") e.g mount the folder afp://cty-mac-stu/Users/bob
3)make a desktop link of afp://cty-mac-stu/Users/[username] to /Volumes/[username] (using ln -s doesnt work) (is it possible to remove link on logoff???)
4) change/check the permissions of afp://cty-mac-stu/Users/[username] folder so only that user or an admin can access it on the AFP share
what I have so far and need help with all 3 items listed above
1)
2) no idea how to do this [Frown]
3) no idea [Frown]
4) no idea [Frown]
any help on this would greatly reduce my stress levels [Smile] and i'm sure would help a lot of people
But i need to do this for 100+ macs with over 500 Users who will be logging in using a Microsoft ADS bound to a Mac Snow Leopard Server in the city.local forest.
We will be rolling out a single mac student image and need help to create a login script on login that will:
1) mount network drive "cty-mac-stu/Users" using AFP on login
2) create a folder (on login if it doesnt exist already) under cty-mac-stu/Users with their username (using "whoami") e.g mount the folder afp://cty-mac-stu/Users/bob
3)make a desktop link of afp://cty-mac-stu/Users/[username] to /Volumes/[username] (using ln -s doesnt work) (is it possible to remove link on logoff???)
4) change/check the permissions of afp://cty-mac-stu/Users/[username] folder so only that user or an admin can access it on the AFP share
what I have so far and need help with all 3 items listed above
1)
Code:
set MyName to do shell script "whoami"
tell application "Finder"
try
mount volume "afp://" & MyName & "@cty-mac-stu/" & MyName & "/ /Volumes/" & MyName & "/"
on error
display dialog "There was an error mounting the Volume " & MyName & return & return & "Please inform the support staff if the problem continues after a reboot." buttons {"Okay"} default button 1
end try
end tell
2) no idea how to do this [Frown]
3) no idea [Frown]
4) no idea [Frown]
any help on this would greatly reduce my stress levels [Smile] and i'm sure would help a lot of people