Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
titleNote

When inventory from the unit is collected by the CapaInstaller Backend, these settings will be deleted if not present in the inventory data collected.

 


Syntax

This function is overloaded, meaning that two separate parameter sets are available;

UnitName and UnitType

SetHardwareInventory(Byval UnitName as String, Byval UnitType as String, Byval section as String, Byval Name as String, Byval Value as String, Byval DataType as String) as Boolean

 


Uuid

SetHardwareInventoryUUID(Byval Uuid as String, Byval Section as String, Byval Name as String, Byval Value as String, Byval DataType as String) as Boolean


Parameters

UnitName (String)

The name of unit to get custom inventory for

UnitType (String)

The type of the unit stated in UnitName. Two different values are accepted;

  • "1" (Computer)
  • "2" (User)

Uuid (String)

The uuid of unit to get custom inventory for in the format;  xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

Section (String)

Inventory section

Name (String)

Name of the value

Value (String)

The value itself

DataType (String)

The type of data being inserted;

  • "I" = Integer
  • "T" = Time
  • "S" = String
  • "N" = Text

 


Examples

Code Block
languagevb
themeEclipse
languagevb
titleVBScript
Set oCMS = CreateObject("CapaInstaller.SDK")
wscript.echo oCMS.SetDefaultManagementPoint("1")
wscript.echo oCMS.SetHardwareInventory("Klient","1","Section","Name","Value","S")

...



Code Block

...

code
language
vb
themeEclipse
languagevb
titleVBScript
Set oCMS = CreateObject("CapaInstaller.SDK")
wscript.echo oCMS.SetDefaultManagementPoint("1")
wscript.echo oCMS.SetHardwareInventoryUUID("E3FBEC1E-32AC-4E51-AB9F-A644CD9F0A6B", "Section","Name","Value","S")