CMS_RemoveCustomInventory
Description
Section titled “Description”Removes a CustomInventory row that is persistent from the database.
Syntax
Section titled “Syntax”CMS_RemoveCustomInventory(category, entry) as boolean[bool] CMS_RemoveCustomInventory -category <string> -entry <string>Parameters
Section titled “Parameters”category (String)
Section titled “category (String)”Category name
entry (String)
Section titled “entry (String)”variable name
Return value
Section titled “Return value”Boolean, TRUE if function completed successfully.
Example
Section titled “Example”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")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")}Related functions
Section titled “Related functions”CMS_AddCustomInventory Constants Package Property Variables Business Unit support