Kaspersky Security Center Automation  10.0
Sample. Logging IKlAkParams to the text file.

JScript sample code.

function Log_KlAkParams_Val(prefix, name, oItem, bIsLastChild)
{
	if("" == prefix)
		g_oLog.WriteLine("");
	g_oLog.Write(prefix + "+---" + name);

	if( (oItem instanceof ActiveXObject) && 1 == oItem.Type)
	{
		g_oLog.WriteLine(" (Params)");
		var enumObj = new Enumerator(oItem);
		var i = 0;
		var nSize = oItem.Count;
		for (;!enumObj.atEnd();enumObj.moveNext(), ++i)
		{
			var strName = enumObj.item();
			var oObject = oItem.item(strName);
		
			if(bIsLastChild)
				Log_KlAkParams_Val(prefix + "	", strName, oObject, i == nSize-1);
			else
				Log_KlAkParams_Val(prefix + "|   ", strName, oObject, i == nSize-1);
	};
}
	else if( (oItem instanceof ActiveXObject) && 2 == oItem.Type)
	{
		g_oLog.WriteLine(" (Array)");
		var enumObj = new Enumerator(oItem);
		var i = 0;
		var nSize = oItem.Count;
		for (;!enumObj.atEnd();enumObj.moveNext(), ++i)
		{
			var oObject = enumObj.item();
		
			if(bIsLastChild)
				Log_KlAkParams_Val(prefix + "	", i + "", oObject, i == nSize-1);
			else
				Log_KlAkParams_Val(prefix + "|   ", i + "", oObject, i == nSize-1);
	};
}
	else
		g_oLog.WriteLine(" = (" + typeof(oItem) + ")" + oItem);
}


function Log_KlAkParams(oInfo)
{
	Log_KlAkParams_Val("", "", oInfo, true);
	g_oLog.WriteLine("");
};

var g_oFileSystemObject;
var g_oLog;

g_oFileSystemObject = new ActiveXObject("Scripting.FileSystemObject");
g_oLog = g_oFileSystemObject.CreateTextFile("log.txt", true);

g_oLog.Close();