Enable remote management remotely on a mac

administratorapple-remote-desktopbashscriptssh

I am trying to use remote desktop to send a script to all Macs on my network that creates an additional admin account and hides it. I am trying to do this using Apple Remote Desktop. However most of these macs have remote management disabled.

How do I do I turn this on? Each Mac already has an admin account. Does that help? Can I do this through remote login (ssh)? But most of these macs also have that disabled. Thanks for the help in advance.

Best Answer

  1. ssh adminusername@ip_address

  2. sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate