Some useful command line scripts for ARD

ARD can be activated, configured, or restarted on Mac OS X clients by running the kickstart command.

Here are some useful command line tools for ARD (Apple Remote Desktop):

Restart Remote Desktop Agent
sudo /System/Library/CoreServices/RemoteManagement/ -restart -agent

Activate Remote Desktop Sharing and enable access privileges for a specific admin user
sudo /System/Library/CoreServices/RemoteManagement/ -activate -configure -access -on -users {user} -privs -all -restart -agent -menu
Where: {user} is the name of the admin user

Deactivate ARD
sudo /System/Library/CoreServices/RemoteManagement/ -deactivate -configure -access -off

Update the computer Information of a client computer
sudo /System/Library/CoreServices/RemoteManagement/ -configure -computerinfo -set1 -1 {ComputerInfoHere}
{ComputerInfoHere} is the computer information you want to add
For adding information with spaces, simply put Computer\ Info\ Here
You can also add up to 4 computer entries for the client computer's info. Just add -set2 -2 Description2Here -set3 -3 Description3Here -set4 -4 Description4Here

To get help, just type in:
/System/Library/CoreServices/RemoteManagement/ -help

Powered by Blogger.