mirror of
https://github.com/micromdm/micromdm/
synced 2026-08-11 20:45:32 +08:00
Add EnableRemoteDesktop and DisableRemoteDesktop (#651)
Add ability to send EnableRemoteDesktop and DisableRemoteDesktop mdm-commands: https://developer.apple.com/documentation/devicemanagement/enable_remote_desktop Add test for EnableRemoteDesktop and DisableRemoteDesktop mdm-commands: https://developer.apple.com/documentation/devicemanagement/enable_remote_desktop
This commit is contained in:
10
tools/api/commands/disable_remote_desktop
Normal file
10
tools/api/commands/disable_remote_desktop
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
source $MICROMDM_ENV_PATH
|
||||
endpoint="v1/commands"
|
||||
jq -n \
|
||||
--arg request_type "DisableRemoteDesktop" \
|
||||
--arg udid "$1" \
|
||||
'.udid = $udid
|
||||
|.request_type = $request_type
|
||||
'|\
|
||||
curl $CURL_OPTS -u "micromdm:$API_TOKEN" "$SERVER_URL/$endpoint" -d@-
|
||||
10
tools/api/commands/enable_remote_desktop
Normal file
10
tools/api/commands/enable_remote_desktop
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
source $MICROMDM_ENV_PATH
|
||||
endpoint="v1/commands"
|
||||
jq -n \
|
||||
--arg request_type "EnableRemoteDesktop" \
|
||||
--arg udid "$1" \
|
||||
'.udid = $udid
|
||||
|.request_type = $request_type
|
||||
'|\
|
||||
curl $CURL_OPTS -u "micromdm:$API_TOKEN" "$SERVER_URL/$endpoint" -d@-
|
||||
Reference in New Issue
Block a user