KSC Open API
Kaspersky Security Center API description
UaControl::SetAssignUasAutomatically ( boolean  bEnabled)

Enable or disable automatic Update agents assignment, see uactl_ua_assignment.

Parameters:
[in]bEnabledenable or disable bool