Remotely configure OS X to accept ARD administration

I hate it when I discover that a machine I’m trying to manage doesn’t have ARD installed and correctly configured. It is sort of a catch-22. I mean, ARD can be installed as a package to configure everything. But, if you use ARD to install software, and the machine doesn’t have ARD, how do you install ARD?

If you have SSH access to the box, the following three (well, four if we’re counting “shutdown”) commands should do the trick:

  • First, after connecting remotely via ssh, let’s kill/deactivate the current ARD service
    • sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -stop
  • Now, restart the machine. When it comes back up, you’ll need to reconnect via ssh. Ping it till it responds.
    • sudo shutdown -r now
  • Now run the following two commands to reconfigure ARD:
    • sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -allowAccessFor -specifiedUsers
    • sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -users myadminusername -privs -DeleteFiles -ControlObserve -TextMessages -OpenQuitApps -GenerateReports -RestartShutDown -SendFiles -ChangeSettings

The last one is going to vary. I like to be able to do pretty much everything possible on a machine. Obviously, substitute your actual admin username instead of “myadminusername”.

Advertisements

~ by Jay P Morgan on August 9, 2013.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s