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