Syntax
New-CustomField [-Entity] <InventoryItem> [-Name] <String> [[-Value] <String>] [-Global] [-WhatIf] [-Confirm] [<CommonParameters>]Related Commands
Online versionDetailed Description
This cmdlet is deprecated and scheduled for removal.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Entity | InventoryItem | Specifies the inventory objects for which you want to create a new custom field. | true | true (ByValue) | |
Name | String | Specifies the name of the new custom field. | true | false | |
Value | String | Specifies the value of the new custom field. | false | 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 | $true |
Global | SwitchParameter | Indicates that the new custom field applies to all types of objects. | 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
The specified InventoryItem objectNotes
Examples
-------------- Example 1 --------------
New-CustomField -Entity VM -Name CPUMaxLoad -Value 300
Creates a custom field named CPUMaxLoad for the VM virtual machine, and sets it initial value to 300. The command returns the virtual machine VM, to which the new custom field belongs.