...
Removes a CustomInventory row that is persistent from the database that is persistent.
Syntax
CMS_RemoveCustomInventory(category, entry) as boolean
[bool]CMS_RemoveCustomInventory -category <string> -entry <string>
Parameters
category (String)
Category name
entry (String)
variable name
Return value
Boolean, TRUE if function completed successfully.
Boolean, TRUE if function completed successfully.
Example
VBScript
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
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")
|
PowerShell
Code Block | ||
---|---|---|
| ||
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("Added", "Bitlocker entry removed from Custom inventory")
}
|