Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Removes a HardwareInventory row from the database that is persistent.

Syntax

(blue star) CMS_RemoveHardwareInventory(category, entry)

(blue star) [bool]CMS_RemoveHardwareInventory -category <string> -entry <string>

Parameters

category (String)

Category name

entry (String)

variable name

Return value

(blue star) Boolean, TRUE if function completed successfully.

(blue star) Boolean, TRUE if function completed successfully.

Example

(blue star) VBScript
Code Block
languagevbthemeEclipse
titleVBScript
If bStatus Then bStatus = CMS_RemoveHardwareInventory("BIOS Information", "Socket type")
If bStatus Then bStatus = CMS_RemoveHardwareInventory("Sound Adapter", "SoundBlaster compatiple")
(blue star) PowerShell
Code Block
languagepowershell
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


Related functions

CMS_AddHardwareInventory