set ADR for a client

shermanpan
New Contributor III

Dear All,

I set not allow share in the OS System preference , but now i want use a account to remote some Computer. So i run a script for special computers. while it's not working. OS is 10.13.6
please help me check the problems.

thanks in advance!

7f6a123699504e55ba1b53510add344c

#!/bin/sh
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -users oaks,test -access -on -privs -all -activate -allowAccessFor -specifiedUsers

#the local account of oaks and test  have create in this computer, but after ran the script i also not remote the computer.

907b0f5fe55044018f7847fa358b24a3

i want to remote the computer by Jamf Remote , while it's not working .
1cf40e4518e94142a9ccd033bd1c2832

3 REPLIES 3

shermanpan
New Contributor III
#!/bin/sh
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -users oaks,test -access -on -privs -all -activate -allowAccessFor -specifiedUsers

#the local account of oaks and test  have create in this computer, but after ran the script i also not remote the computer.

JustCallMeAJ
New Contributor III

This is what we use, and it works. You seem to be missing -activate

!/bin/sh

sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -users oaks,test -privs -all
sudo systemsetup -setremotelogin on

shermanpan
New Contributor III

@JustCallMeAJ i find the user which have access remote not all privs. but i have grant all privs.
07776940d5334de185bce21032dc65bd
c1ea28bed9b64c2ea73991ceea9698a2