Skip to content

CMS_SubmitWinPEInventory(Deprecated)

VB Scripting Library > OSD Scripting Library > CMS functions (OSD)

Creates the computer as a unit in the management point, and uploads basic hardware inventory.

If the S: drive isn’t already mapped, the function maps the management point as network drive S:. It then runs the WinPEInventory script to collect hardware inventory and upload it. If S: can’t be mapped, the function returns FALSE.

No arguments provided.

Boolean, TRUE if function completed successfully.

Typically used in the PreDiskPartScript.wsf to allow the inventory to be processed while the hard drive is being partitioned and formatted.

The following example will check if a management point is specified, and upload inventory.

Private Function IncludeScript(sScriptFile)
'...
End Function
'Begin
bStatus=True
If bStatus Then bStatus=IncludeScript("customlib.cis")
If bStatus Then bStatus=IncludeLibrary("Capalib.cin")
If bStatus Then bStatus=IncludeLibrary("Osdlib.cin")
If bStatus Then bStatus=Job_Start("WS","Script Name","1.0","ScriptName.log","INSTALL")
If bStatus Then bStatus=OSD_Initialize()
If bStatus and gsManagementPoint <> "" Then bStatus=CMS_SubmitWinPEInventory()
Job_End(bStatus)
'End main

Scripting Guidelines Constants Package Property Variables