Skip to content

CMS\_RemoveHardwareInventory

Removes a HardwareInventory row from the database that is persistent.

:vb: CMS_RemoveHardwareInventory(category, entry)

:ps: [bool]CMS_RemoveHardwareInventory -category <string> -entry <string>

category (String)

Category name

entry (String)

variable name

:vb: Boolean, TRUE if function completed successfully.

:ps: Boolean, TRUE if function completed successfully.

If bStatus Then bStatus = CMS_RemoveHardwareInventory("BIOS Information", "Socket type")
If bStatus Then bStatus = CMS_RemoveHardwareInventory("Sound Adapter", "SoundBlaster compatiple")
Terminal window
CMS_RemoveHardwareInventory 'BIOS Information' 'Socket type'
CMS_RemoveHardwareInventory -category 'Sound Adapter' -entry 'SoundBlaster compatiple'
if (CMS_RemoveHardwareInventory 'Sound Adapter' 'SoundBlaster compatiple') {
$cs.Job_WriteLog("Removed", "SoundBlaster flag removed from Hardware inventory")
}

Scripting Guidelines

CMS_AddHardwareInventory