Kaspersky Security Center Automation
10.0
|
Add extended host moving rule. Creates new extended host moving rule with specified attributes.
Supports enumerating (See JScript sample below). var oCustom = new ActiveXObject("klakaut.KlAkParams"); oCustom.Add("MyComment", "Rule #1"); var oProps = new ActiveXObject("klakaut.KlAkParams"); oProps.Add("KLHST_MR_DN", "My test rule #1"); oProps.Add("KLHST_MR_Group", 1); oProps.Add("KLHST_MR_Options", 0); // Rule affects each filtered host once oProps.Add("KLHST_MR_Query", "(&(KLHST_WKS_FROM_UNASSIGNED <> 0)(KLHST_WKS_WINHOSTNAME=\"TEST*"))"); oProps.Add("KLHST_MR_Custom", oCustom); oHstRules.AddHstMoveRule(oProps); |