Kaspersky Security Center Automation
10.0
|
Put key into license storage. Installs license key into server-side license storage. This functionality is supported by Administration Server 7.0 or higher.
var oLicense = new ActiveXObject("klakaut.KlAkLicense"); oLicense.AdmServer = oAdmServer; var oKey = oLicense.LoadKey("data.key"); var oKeyData = new ActiveXObject("klakaut.KlAkParams"); oKeyData.Add("KLLIC_LICFILE", oKey); var oParams = new ActiveXObject("klakaut.KlAkParams"); oParams.Add("KLLICSRV_KEYDATA", oKeyData); oLicense.InstallKey(oParams); |