Skip to main content

hello all, does anyone know how to disable remote login using a profile/policy 

The terminal command for disabling remote login is:

sudo systemsetup -f -setremotelogin off

So you should be able to create a policy with that line in Files and Processes > Execute Command to disable remote login on a computer.

 


The terminal command for disabling remote login is:

sudo systemsetup -f -setremotelogin off

So you should be able to create a policy with that line in Files and Processes > Execute Command to disable remote login on a computer.

 


(Except no sudo, since Jamf is executing as root already.)


The command @mdp should get the job done. However using the enable/disable Remote Desktop MDM command in under the Macs inventory record > Management > Management Commands is much faster. You can also issue the MDM command as a mass action.

 

 


I have a similar need to the OP and found this thread. Thanks so much!

I am going to assume from this that there isn't a config profile method that can be utilized to limit the removal?