cURL
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>" }'
{}
Execute PowerShell command on the machine.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successful Response
The response is of type object.
object
Was this page helpful?