POST
/
v1
/
computer
/
{machine_id}
/
shell
/
powershell
/
exec
Execute PowerShell command
curl --request POST \
  --url https://api.cyberdesk.io/v1/computer/{machine_id}/shell/powershell/exec \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "command": "<string>",
  "same_session": true,
  "working_directory": "<string>",
  "session_id": "<string>"
}'
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

machine_id
string
required

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.