Posted on 03-15-2024 07:58 AM
We are rolling our Jamf Remote Assist and trying to wipe out some legacy Screen Sharing settings we set a while back. I want to disable the ability for our team to use the built in Screen Sharing app to remote into user's computers for support. Looking for a way to script the changes necessary or maybe delete a plist etc? My original code I found on jamfnation years ago to set this up is below:
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -targetdisk / -activate -configure -clientopts -setmenuextra -menuextra no
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -targetdisk / -configure -users otheruser,Administrator -access -on -privs -all
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -targetdisk / -configure -allowAccessFor -specifiedUsers -privs -all
03-15-2024 08:19 AM - edited 03-15-2024 08:20 AM
been a while, but you have these switches for the kickstart command (which is a script.. you can open in text editor)
-uninstall
-install
-deactivate
-activate
-configure
-stop
-restart
Posted on 03-15-2024 08:41 AM
@jamf-42 good idea, I'll try the -deactivate switch with kickstart
Posted on 03-17-2024 07:16 AM
You could try;
kickstart="/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart"
$kickstart -targetdisk / -verbose -uninstall -settings -prefs