## Running commands on clients

If a threat outbreak occurs in a customer network, or if clients report an Infected or At Risk status, immediate remediation is best performed by running the appropriate commands on the affected clients.

To send a command to a client or group of clients, the methods of the CommandService API require the following information:

- A list of the client computers on which to run the specified command. This list is fetched from the following methods of the ClientService API:

  - getComputersByIP()

  - getComputersByHostName()

  - getGroupsByName()

  Note: | Some commands can be run only on lists of client computers, not on groups. See the Reference Guide for each command.

- The command method to run

  See also the Reference Guide.

The command method returns a commandID that can be used to obtain more information about the client and the command that was run. For details, see the Reference Guide.

More Information

Client commands reference