I'm looking for a way to script the Remote Management section in Sharing System Preferences. What I'm trying accomplish is to script the Computers Settings button and everything inside it. So far I have:
alias kickstart="/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart" sudo kickstart -activate -configure -allowAccessFor -specifiedUsers -restart -agent sudo kickstart -activate -configure -users hcpadmin -access -on -privs -all -restart -agent sudo kickstart -clientopts -setreqperm -reqperm yes sudo kickstart -clientopts -setvnclegacy -vnclegacy yes sudo kickstart -clientopts -setvncpw -vncpw deskt0p sudo kickstart -configure -computerinfo -set1 -1 User\ Name sudo kickstart -configure -computerinfo -set2 -2 Location\ and\ Cube\ # sudo kickstart -configure -computerinfo -set3 -3 Desktop\ Asset Tag\ # sudo kickstart -configure -computerinfo -set4 -4 Display\ Asset\ Tag\ #
But I can't seem to get is the "Anyone may request..." checked and the VNC with password checked and working. Has anyone ever got this working?