|
1 | 1 | remote_management |
2 | 2 | === |
3 | 3 |
|
4 | | -Use the **remote_management** resource to manage the "Remote Management" settings, found in System |
5 | | -Preferences > Sharing > Remote Management. Under the hood, the [**remote_management**](https://github.com/Microsoft/macos-cookbook/blob/master/resources/remote_management.rb) resource |
6 | | -executes the `kickstart` command, located in ARDAgent.app (one of macOS' "core services"). |
| 4 | +Use the **remote_management** resource to manage the "Remote Management" settings in System Preferences > Sharing > Remote Management. Under the hood, the [remote_management](../resources/remote_management.rb) resource utilizes the [kickstart](https://ss64.com/osx/kickstart.html) script. |
7 | 5 |
|
8 | 6 | Syntax |
9 | 7 | ------ |
10 | 8 |
|
11 | | -The **remote_management** resource block declares a basic description of the command configuration |
12 | | -and an action executed. For example: |
13 | | - |
14 | 9 | ```ruby |
15 | | -remote_management 'enable remote management' do |
16 | | - action :enable |
| 10 | +remote_management 'configure remote management' do |
| 11 | + users [String, Array] |
| 12 | + privileges [String, Array] |
| 13 | + computer_info [String, Array] |
17 | 14 | end |
18 | 15 | ``` |
19 | 16 |
|
20 | | -where |
21 | | - |
22 | | -- `:enable` activates remote management and configures full privileges for all users on the system. |
23 | | -- `:disable` deactivates the remote management agent and prevents it from activating at boot time. |
24 | | - |
25 | | -The default `:enable` action is equivalent to configuring the following |
26 | | -**System Preferences > Sharing** settings: |
27 | | - |
28 | | - |
29 | | - |
30 | | -The full syntax for all of the properties that are available to the **remote_management** |
31 | | -resource is: |
32 | | - |
33 | | -```ruby |
34 | | -remote_management 'description' do |
35 | | - action Symbol # defaults to [:enable] if not specified |
36 | | -end |
37 | | -``` |
| 17 | +Properties |
| 18 | +------- |
38 | 19 |
|
| 20 | +* `users` |
| 21 | + * **Description:** the user(s) whoose ARD privileges will be configured. |
| 22 | + * **Usage:** a single user can be specified in the form of a string, or multiple users can be specified as an array of strings. Specifying 'all' is a special case; all local users will be configured. |
| 23 | + * **Default:** `'all'` |
| 24 | + * Privileges will be configured for all local users. |
| 25 | + * **Constraints:** specified users must exist on the system. |
| 26 | + <br></br> |
| 27 | + |
| 28 | +* `privileges` |
| 29 | + * **Description:** the desired privileges to bestow upon the given user(s). |
| 30 | + **Usage:** a single privilege can be specified in the form of a string, or multiple privileges can be specified as an array of strings. |
| 31 | + * **Default:** `'all'` |
| 32 | + * **Constraints:** the list of optional privileges bellow |
| 33 | + * `all` → grant all privileges (default) |
| 34 | + * `none` → disable all privileges for the specified user |
| 35 | + * `DeleteFiles` → delete files |
| 36 | + * `TextMessages` → send a text message |
| 37 | + * `OpenQuitApp` → open and quit applications |
| 38 | + * `GenerateReport` → generate reports |
| 39 | + * `RestartShutDown` → restart *and/or* shutdown |
| 40 | + * `SendFile` → send *and/or* retrieve files |
| 41 | + * `ChangeSetting` → change system settings |
| 42 | + * `ShowObserve` → show the client when being observed or controlled |
| 43 | + * `ControlObserve` → control AND observe (unless ObserveOnly is also specified) |
| 44 | + * `ObserveOnly` → modify ControlObserve option to allow Observe mode only |
| 45 | + <br></br> |
| 46 | + |
| 47 | +* `computer_info` |
| 48 | + * **Description:** Info fields; helpful for stratifying computers in the ARD client app. |
| 49 | + * **Usage** a single info field can be added as a string, or multiple info fields can be added as an array of strings. |
| 50 | + * **Default:** `[]` |
| 51 | + * No info fields will be added. |
| 52 | + * **Constraints:** there is a maximum of four info fields allowed. |
| 53 | + |
39 | 54 | Actions |
40 | 55 | ------- |
41 | 56 |
|
42 | | -This resource has the following actions: |
43 | | - |
44 | | -`:enable` |
45 | | - |
46 | | - Activate remote management and configure full privileges for all users on the system. |
47 | | - |
48 | | -`:disable` |
| 57 | +* `enable` |
| 58 | + * **Description:** activate remote management and configure full privileges for all users on the system. |
| 59 | + * **GUI Equivalent:** activating with the privileges property set to 'all' is equivalent to the following: |
| 60 | +  |
49 | 61 |
|
50 | | - Deactivate the remote management agent and prevent it from activating at boot time. |
| 62 | +* `disable` |
| 63 | + * **Description:** deactivate the remote management agent and prevent it from activating at boot time. |
0 commit comments