Use the remote_management resource to manage the "Remote Management" settings in System Preferences > Sharing > Remote Management. Under the hood, the remote_management resource utilizes the kickstart script.
remote_management 'configure remote management' do
users [String, Array]
privileges [String, Array]
computer_info [String, Array]
end
-
users
- Description: the user(s) whose ARD privileges will be configured.
- Usage: a single user can be specified as a string, or multiple users can be specified as an array of strings. Specifying 'all' is a particular case; all local users will be configured.
- Default:
'all'
- Privileges will be configured for all local users.
- Constraints: specified users must exist on the system.
-
privileges
- Description: the desired privileges for the given user(s).
- Usage: a single privilege can be specified in the form of a string, or multiple privileges can be specified as an array of strings.
- Default:
'all'
- Constraints: the list of optional privileges bellow
all
→ grant all privileges (default)none
→ disable all privileges for the specified userDeleteFiles
→ delete filesTextMessages
→ send a text messageOpenQuitApp
→ open and quit applicationsGenerateReport
→ generate reportsRestartShutDown
→ restart and/or shutdownSendFile
→ send and/or retrieve filesChangeSetting
→ change system settingsShowObserve
→ show the client when being observed or controlledControlObserve
→ control AND observe (unless ObserveOnly is also specified)ObserveOnly
→ modify ControlObserve option to allow Observe mode only
-
computer_info
- Description: Info fields are helpful for stratifying computers in the ARD client app.
- Usage a single info field can be added as a string, or multiple fields can be added as an array of strings.
- Default:
[]
- No info fields will be added.
- Constraints: there is a maximum of four info fields allowed.
-
enable
-
disable
- Description: deactivate the remote management agent and prevent it from activating at boot time.