I have been working on mounting drives with this script in Kace as an online shell script.


#!/bin/sh
/usr/bin/osascript -e 'mount volume "smb://<servername>/sharename"'
exit


Whenever I run it with the proper names filled in above it prompts for the root password.  Is there some way I can do this on a machine that is joined to active directory and it just mounts and shows up on the desktop?


Thanks



It prompts me for the root password. 

0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

0
The linux samba command would be
smb://user_name:password@server_name/sharename
Answered 08/15/2016 by: Senathon
Senior White Belt

Please log in to comment
Answer this question or Comment on this question for clarity