Syntax
Remove-CustomField [-Entity] <InventoryItem> [-Name] <String> [-WhatIf] [-Confirm] [<CommonParameters>]Related Commands
Online versionDetailed Description
This cmdlet is deprecated and scheduled for removal. Deletes the specified custom fields for the specified type of inventory items.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Entity | InventoryItem | Specifies the inventory items to which the custom field you want to remove belongs. | true | true (ByValue) | |
Name | String | Specifies the names of the custom fields you want to remove. | true | false | |
Confirm | SwitchParameter | If the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation. | false | false | |
WhatIf | SwitchParameter | Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified. | false | false |
Return Type
NoneNotes
Examples
-------------- Example 1 --------------
Remove-CustomField -Entity VM -Name CPUMaxLoad
Removes the custom field CPUMaxLoad from the virtual machine named VM. Asks for confirmation before running the task. The command returns the virtual machine VM, from which the custom field is removed.