Skip to main content
Question

VNC

  • August 15, 2016
  • 3 replies
  • 28 views

Forum|alt.badge.img+5

Anyone has a script for enabling and putting password on VNC under Remote management?

3 replies

roiegat
Forum|alt.badge.img+16
  • Valued Contributor
  • August 15, 2016

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.


Forum|alt.badge.img+5
  • Author
  • Contributor
  • August 15, 2016

i have script that enable remote management, i hope you can give me that i can add on this script for vnc

!/bin/sh

adminUser = Admin User Name for Remote Acces

adminUser="youruser"

######################

Do Not Modify Below This Line

######################

if [ "$4" != "" ] && [ "$adminUser" == "" ];then adminUser=$4
fi

DEFINE CONTROL SETTINGS

privs="-DeleteFiles -ControlObserve -TextMessages -OpenQuitApps -GenerateReports -RestartShutDown -SendFiles -ChangeSettings"

Do Not Modify Below This Line

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


Forum|alt.badge.img+3
  • New Contributor
  • December 7, 2017

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