Kaspersky Security Center Automation  10.0
HRESULT IKlAkHosts::UpdateHost ( [in] BSTR  strHostName,
[in] IKlAkParams pInfo 
)

Modify specified attributes for host.

Modifies specified attributes for given host

Parameters:
strHostName host name (unique server-generated string)
pInfo IKlAkParams container with host attributes to be modified. See List of host attributes


See JScript call sample below.

	...
	var oHosts = new ActiveXObject("klakaut.KlAkHosts"); 
	oHosts.AdmServer = ... 
	...
	//name of the host to change attributes
	var strHostName = ...
	...
	//Fill container with attributes to change
	var oProps = new ActiveXObject("klakaut.KlAkParams");
	oProps.Item("KLHST_WKS_DN") = "New host display name";
	//Change host attributes
	oHosts.UpdateHost(strHostName, oProps);