Create model
Description
Section titled “Description”Creates a hardware model on an OS Point.
Syntax
Section titled “Syntax”CreateModel(name As String, smbios As String, osPointID As Integer) As Boolean
Parameters
Section titled “Parameters”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.
Return value
Section titled “Return value”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.
Example
Section titled “Example”Set oCMS = CreateObject("CapaInstaller.SDK")wscript.echo oCMS.CreateModel("HP HP Z2 Tower G4 Workstation","HP Z2 Tower G4 Workstation*","1")Related functions
Section titled “Related functions”The OS Point ID can be retrieved with the function Get OS points.