Description
Removes a HardwareInventory row from the database that is persistent.
Syntax
CMS_RemoveHardwareInventory(category, entry)
[bool]CMS_RemoveHardwareInventory -category <string> -entry <string>
Parameters
category (String)
Category name
entry (String)
variable name
Return value
Boolean, TRUE if function completed successfully.
Boolean, TRUE if function completed successfully.
Example
VBScript
If bStatus Then bStatus = CMS_RemoveHardwareInventory("BIOS Information", "Socket type") If bStatus Then bStatus = CMS_RemoveHardwareInventory("Sound Adapter", "SoundBlaster compatiple")
PowerShell
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") }