Posted on 06-21-2012 05:42 AM
I was setting up some managed preferences and I created one under com.apple.finder Mount Servers On Desktop and set the value to true. I applied the setting to system level enforced . shortly after we got this popup on our computers.
Connect drives is trying to send restricted scripting addition commands to other applications. Type you password to allow this.
.
Connect Drives is a simple applescript that we run to mount our shares. We are on OS X 10.7.4 These are the steps I’ve taken:
Turned enabled to False
deleted the managed preference
created a managed preference to not show connected servers
unmanaged the computers
deleted the finder plist
edited the finder Plist
removed the script from the computers
Posted on 06-25-2012 07:44 AM
Hi Larry,
Though I am not sure of the impact the Applescript is having in this situation I wanted to post these commands as they have been helpful in troubleshooting MCX for us.
Thanks!
Applying managed preferences with jamf binary:
sudo jamf mcx
sudo jamf mcx –username <username>
Reading managed preferences:
mcxquery
mcxquery -user <username>
mcxquery –computerOnly
dscl . -mcxread /Users/<username>
dscl . -mcxread /Computers/localhost
Removing managed preferences:
sudo dscl . -mcxdelete /Users/<username>
sudo dscl . -mcxdelete /Computers/localhost
rm –rf /Library/Managed Preferences/
Posted on 06-28-2012 09:24 AM
eleven I tried doing this and it was unsuccessful. If you can think of anything else please let me know.
Posted on 06-28-2012 09:27 AM
Mr. Hunt, can you provide the contents of the script in question? Is authentication required to access the shares? If so, are the credentials stored in the user's keychain?
J.I.
Posted on 06-29-2012 08:58 AM
Jamie the apple script I'm using is very simple example for now:
tell application "Finder" to mount volume "smb://share-fs1.domain.net/smith$"
would be the line to mount smiths network home folder. Jamie if you are looking for an automated script along with a launch agent I would highly recommend Ben Toms applescript from his website.
http://macmule.com/2011/09/08/how-to-map-drives-printers-based-on-ad-group-membership-on-osx/
I am about to roll this out.