Skip to content

Create model

Creates a hardware model on an OS Point.

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. If you specify an empty string, the name of the model is used.

osPointID (Integer)

The OS point id.

Boolean. The function returns True if successful. The function raises an error if the OS Point isn’t found, or if a model with the same name already exists on the OS Point.

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

The OS Point ID can be retrieved with the function Get OS points.