Skip to content

Create model

Creates a model.

CreateModel(name As String, smbios As String, osPointID As Integer) As Boolean

Name (String)

The name of the model.

SmBios (String)

The smbios string used to match the model.

osPointID (integer)

The OS point id.

Boolean. The function returns True if successful, otherwise false.

VBScript

Set oCMS = CreateObject("CapaInstaller.SDK")
wscript.echo oCMS.SetDefaultManagementPoint("1")
wscript.echo oCMS.CreateModel("HP HP Z2 Tower G4 Workstation","HP Z2 Tower G4 Workstation*","1")