powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Remove-CustomField



NAME
Remove-CustomField

SYNOPSIS
Deletes the specified custom fields for the specified type of inventory items.

SYNTAX
Remove-CustomField [-Entity] [-Name] [-WhatIf] [-Confirm] []


DESCRIPTION
This cmdlet is deprecated and scheduled for removal. Deletes the specified custom fields for the specified type of
inventory items.


PARAMETERS
-Entity
Specify the inventory items to which the custom field you want to remove belongs.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? true

-Name
Specify the names of the custom fields you want to remove.

Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? true

-WhatIf
Indicate that the cmdlet is run only to display the changes that would be made and actually no objects are modi
fied.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Confirm
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.

Required? false
Position? named
Default value $true
Accept pipeline input? false
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS



NOTES




-------------- Example 1 --------------

C:\PS>Remove-CustomField -Entity VM -Name CPUMaxLoad


Removes the custom field CPUMaxLoad from the virtual machine named VM. Asks for confirmation before running the tas
k. The command returns the virtual machine VM, from which the custom field is removed.






RELATED LINKS
Online version: http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/Remove-CustomField.html
New-CustomField