remote login disabling using profiles

jamfgeorg
New Contributor II

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

4 REPLIES 4

mdp
Contributor

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.

 

---
Matthew Prins -- Jamf Scripts @ Github

mdp
Contributor

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

---
Matthew Prins -- Jamf Scripts @ Github

AJPinto
Honored Contributor II

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.

 

AJPinto_0-1702391806813.png

 

delta_sync
New Contributor II

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?