This repository has been archived by the owner on Oct 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 58
AdminRemoteControl
Dan Kuehling edited this page Apr 19, 2018
·
18 revisions
The boot-every
folder is a great way to keep your admin privileges on your managed computers with the ARD kickstart and SSH activation running on every boot. This is especially handy for computers where your users have admin privileges.
#!/bin/bash
# Turn on Remote Management System Prefs
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -users "admin" -privs -all -restart -agent;
# Turn on Remote Login System Prefs (ssh)
/usr/sbin/systemsetup -setremotelogin on;
# Turn on Remote Apple Events System Prefs
/usr/sbin/systemsetup -setremoteappleevents on;