Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Description

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
If bStatus Then bStatus = CMS_RemoveHardwareInventory("BIOS Information", "Socket type")
If bStatus Then bStatus = CMS_RemoveHardwareInventory("Sound Adapter", "SoundBlaster compatiple")
(blue star) 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")
}

Scripting Guidelines


Related functions

CMS_AddHardwareInventory

  • No labels