Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagevb
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
Code Block
languagepowershell
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

...