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 5 Next »

Description

Removes a CustomInventory row that is persistent from the database.


Syntax

(blue star) CMS_RemoveCustomInventory(category, entry) as boolean

(blue star) [bool]CMS_RemoveCustomInventory -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_RemoveCustomInventory("Customer Inventory", "Install time packages")
If bStatus Then bStatus = CMS_RemoveCustomInventory("Bitlocker", "TPM Chip - Enabled")
If bStatus Then bStatus = CMS_RemoveCustomInventory("Bitlocker", "TPM Chip - Manufactured")
(blue star) PowerShell
CMS_RemoveCustomInventory 'Customer Inventory' 'Install time packages'

CMS_RemoveCustomInventory -category 'Bitlocker' -entry 'TPM Chip - Enabled'

if (CMS_RemoveCustomInventory 'Bitlocker' 'TPM Chip - Manufactured') {
  $cs.Job_WriteLog("Removed", "Bitlocker entry removed from Custom inventory")
}

Scripting Guidelines


Related functions

CMS_AddCustomInventory

  • No labels