Kick start ARD remote management

If for some reason you actually forget to enable ARD client to remotely access and manage your clients I have a script here that will enable it again. This script was used and tested in OS X 10.5.4 and worked. It also assumes you want to give access to a local admin account, which is what this script is designed to do. If you need to enable directory or LDAP users you will need to tweak the script.

 

#!/bin/sh
 
#kick start ARD client on machines if currently disabled
#tested in OS X 10.5.4 and works, most likely will also work in 10.4.11 but I have not tested
 
echo "activating ARD agent"
 
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate
 
echo "configuring ARD cleint"
 
#now put the user you wish to specificy access
 
ardusers="user short name here"
 
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -users $ardusers -access -on -privs -all
 
 
echo "done"
 
exit 0

You can add a list of user's short names separated by commas in the variable above, or you can alter it to add it for all users.

Your rating: None Average: 4.5 (2 votes)