KSC Open API
Kaspersky Security Center API description
Tasks::AddHostToTask ( wstring  strTask,
wstring  strHostName 
)

Add host to task.

Adds host to the HostList of the specified task (about HostList see Task settings format). Works only for a task whose target is the HostList.

Parameters:
strTask(wstring) task id in digital representation, like "1" or "45" and etc.
strHostName(wstring) host name (GUID-like ID). A unique string generated by the server (see the KLHST_WKS_HOSTNAME attribute). It is not the same as the computer network name, for example, DNS name, FQDN name, NetBIOS name.