Files
micromdm/tools/api/commands/disable_remote_desktop
Ryunosuke Sato a7ad62ea6c $ chmod +x tools/api/commands/* (#668)
Added executive permission to `tools/api/commands/*` due to run these scripts easily.
2020-05-20 10:01:58 -07:00

11 lines
264 B
Bash
Executable File

#!/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@-