KSC Open API
Kaspersky Security Center API description
HostMoveRules::ExecuteRulesNow ( int  nGroupId,
array  pRules,
int  nOptions,
[out] wstring  strActionGuid 
)

Execute rules now.

Executes rules for a specific group

Parameters:
nGroupId(int) group to launch rules for
pRules(array) array of rule ids(int)
nOptions(int) possible values:
  • 0 - rule is processed for hosts that need it
  • 1 - execute even if rule has been already executed
[out]strActionGuid(wstring) id of asynchronous operation, to get status use AsyncActionStateChecker.CheckActionState, lStateCode "1" means OK and "0" means fail