Hi all, I am new to Casper and also to Mac scripting. I just want to mount as simple as possible our shared drives to the users Macs. I got an osascript running which works perfectly on the Mac itself.
Have imported it to Casper Admin, created a policy but it doesn't work. It states me an error:
Script exit code: 127
Script result: /Library/Application Support/JAMF/tmp/MountSharedDrives: line 2: tell: command not found
/Library/Application Support/JAMF/tmp/MountSharedDrives: line 3: try: command not found
mount: You must specify a filesystem type with -t.
Find below the osascript I wrote:
set userName to do shell script "whoami"
tell application "Finder"
try
mount volume "cifs://our.domain.com/abc/share/"
mount volume "cifs://our.domain.com/abc/music/"
mount volume "cifs://our.domain.com/abc/home/gt_home/" & userName & "/"
end try
end tell