CMS_SubmitWinPEInventory(Deprecated)
VB Scripting Library > OSD Scripting Library > CMS functions (OSD)
CMS_SubmitWinPEInventory()
Section titled “CMS_SubmitWinPEInventory()”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.
Arguments
Section titled “Arguments”No arguments provided.
Return Type
Section titled “Return Type”Boolean, TRUE if function completed successfully.
Remarks
Section titled “Remarks”Typically used in the PreDiskPartScript.wsf to allow the inventory to be processed while the hard drive is being partitioned and formatted.
Example
Section titled “Example”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