Skip to content

CMS\_RemoveCustomInventory

Removes a CustomInventory row that is persistent from the database.

:vb: CMS_RemoveCustomInventory(category, entry) as boolean

:ps: [bool]CMS_RemoveCustomInventory -category <string> -entry <string>

category (String)

Category name

entry (String)

variable name

:vb: Boolean, TRUE if function completed successfully.

:ps: Boolean, TRUE if function completed successfully.

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")
Terminal window
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

CMS_AddCustomInventory