AppleScript to KickStart ARDagent

stevewood
Honored Contributor II
Honored Contributor II

The command, from shell, is:

/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart
-activate -configure -access -on -users <user> -privs -all -restart -agent
-menu

using AppleScript it would be something like:

do shell script
"/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart
-activate -configure -access -on -users <user> -privs -all -restart -agent
-menu"

Obviously you want to put your user name in <user>.

Steve Wood
Director of IT
swood at integer.com

The Integer Group | 1999 Bryan St. | Ste. 1700 | Dallas, TX 75201
T 214.758.6813 | F 214.758.6901 | C 940.312.2475

3 REPLIES 3

stevewood
Honored Contributor II
Honored Contributor II

Are these machines managed in Casper? If so, you could just write a shell
script, or AppleScript, and push that out via Casper Remote, or make a
policy in the JSS and set it to the every15 trigger, or whatever.

Steve Wood
Director of IT
swood at integer.com

The Integer Group | 1999 Bryan St. | Ste. 1700 | Dallas, TX 75201
T 214.758.6813 | F 214.758.6901 | C 940.312.2475

Not applicable

if you have remote login enabled you can do it via SSH...
if not, then you'll have to go on the sneaker net.

Nick Caro Desktop Support Technician

stevewood
Honored Contributor II
Honored Contributor II

You can do a Network Scan using Recon. If you can see the machines in
Timbuktu, I'm assuming you have network connection to all of the machines. So, fire up Recon on a Mac and use the Network Scan feature. Input the
network range(s) you want to scan, and enter in the admin credentials to use
(you can add multiples if you aren't sure which one), and away you go.

As long as SSH is enabled on the machines, they should all get added to the
JSS. From that point you can use Casper Remote or a policy to push the ARD
commands.

Steve Wood
Director of IT
swood at integer.com

The Integer Group | 1999 Bryan St. | Ste. 1700 | Dallas, TX 75201
T 214.758.6813 | F 214.758.6901 | C 940.312.2475