Report on Sharing settings

DiddyDave

Registered
Hi there,
I am new to Mac administration and struggling somewhat on how to programatically report in the settings in the Sharing Preference panel (10.7 and 10.8)
Basically - I want to report in which settings are on and off. I have imagined writing a script to be able to report this status back.

I can see that for some of the settings I can use 'systemsetup' (remote login, remote Apple Events) but for others I am at a loss to where to go check to see if the options are enabled.
DVD and CD Sharing
Screen Sharing
File Sharing
AFP and SMB
Printer Sharing
Scanner Sharing
Remote Management
Internet Sharing
Bluetooth Sharing

I am less concerned about if the service is active (i.e. currently in use by someone) but initially want to just report if the options are checked on.

Later on I want to extend the script to report on other items such as if auto-login is enabled and the number of local admin accounts etc.

Anyone offer any guidance.

Thanks in advance

dave
 
Top