[updated to mac OS 10.14.3] MacOS 10.13.3 I've been able to get most of what I need through the ' Compliance Policies' and ' Profiles and Resources' menus but I'm stuck the last few items: 'Disable printer sharing', 'Disable screen sharing', 'Disable remote management', and 'Disable remote login (SSH)'. Maybe I'm missing these in the above AW menus, if so could you point out what I'm missing. I've tried running command line through ' Staging and Provisioning' but they all fail. Is it possible to create a ' Custom Settings' profile to 'Disable remote management', or any of the other items listed above or am I barking up the wrong tree?
Could I use ' Custom Attributes' profile to execute this command ' systemsetup -f -setremotelogin off' or ' systemsetup -setwakeonnetworkaccess off' ?
' you should look into running a script on each mac that populates AirWatch with a key on the current status' Please tell me or point me to documentation on how to do this. I can write scripts to tell me the current status is but how do I get AW to automate the execution of these scripts so that Custom Attributes can act upon the output of these scripts? Am I understanding the use case correctly?
For instance we want to make sure a setting in a plist is set:
# this checks if the reconnect on wake setting is enabled
defaults read com.viscosityvpn.Viscosity ReconnectOnWake && or
{ echo ' it's off' ; } || or
{ echo ' it's on' ; }
right now the output is an echo command, how would change that into something I can leverage with AW and use with custom attributes?