CMS_RemoveHardwareInventory
Description
Section titled “Description”Removes a HardwareInventory row from the database that is persistent.
Syntax
Section titled “Syntax”CMS_RemoveHardwareInventory(category, entry)[bool] CMS_RemoveHardwareInventory -category <string> -entry <string>Parameters
Section titled “Parameters”category (String)
Section titled “category (String)”Category name
entry (String)
Section titled “entry (String)”variable name
Return value
Section titled “Return value”Boolean, TRUE if function completed successfully.
Example
Section titled “Example”If bStatus Then bStatus = CMS_RemoveHardwareInventory("BIOS Information", "Socket type")If bStatus Then bStatus = CMS_RemoveHardwareInventory("Sound Adapter", "SoundBlaster compatiple")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")}Related functions
Section titled “Related functions”CMS_AddHardwareInventory Constants Package Property Variables Business Unit support