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.

The function will map the management point as a networkdrive (S:), create a rfc file to clear existing inventory if it exist, wait for it to be processed by the replicator service, and finally execute the WinPeInvetory script to collect hardware inventory and upload it.

No arguments provided.

Boolean, TRUE if function completed successfully.

Typically used in the PreDiskPartScript.wsf to allow the replicator to process inventory while harddrive 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