Posted on 08-15-2016 04:22 AM
Anyone has a script for enabling and putting password on VNC under Remote management?
Posted on 08-15-2016 04:44 AM
Looking at the kickstart help you should be able to do the following:
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -restart -agent -privs -all -clientopts -setvncpw XXXXXXXX
Although that gives anyone with that password access...you might want to fine tune it to admins only.
Posted on 08-15-2016 04:56 AM
i have script that enable remote management, i hope you can give me that i can add on this script for vnc
adminUser="youruser"
if [ "$4" != "" ] && [ "$adminUser" == "" ];then
adminUser=$4
fi
privs="-DeleteFiles -ControlObserve -TextMessages -OpenQuitApps -GenerateReports -RestartShutDown -SendFiles -ChangeSettings"
if [ "$adminUser" != "" ]; then
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -allowAccessFor -specifiedUsers
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -access -on -privs $privs -users $adminUser
fi
Posted on 12-07-2017 05:08 AM
Hi all
I have tried running the command bellow and i get a "Command not found" error.
I have attached a screenshot of my terminal window.
Thanks
Dale
Looking at the kickstart help you should be able to do the following: sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -restart -agent -privs -all -clientopts -setvncpw XXXXXXXX