powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Get-VIProperty



NAME
Get-VIProperty

SYNOPSIS
Retrieves extended object properties.

SYNTAX
Get-VIProperty [[-Name] ] [[-ObjectType] ] [-DeclaredOnly] []


DESCRIPTION
Retrieves the extended properties and filters them by using the provided cmdlet parameters.


PARAMETERS
-Name
Specify the names of the extended properties you want to retrieve.

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

-ObjectType
Specify the object types for which you want to retrieve extended properties.

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

-DeclaredOnly
Indicate that you want to retrieve only the extended properties that have been directly defined for the specifi
ed object types.

Required? false
Position? named
Default value
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
VIProperty


NOTES




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

C:\PS>Get-VIProperty -Name "property*"


Retrieve all custom properties that match the specified name pattern.





-------------- Example 2 --------------

C:\PS>Get-VIProperty -ObjectType 'VirtualMachine'


Retrieve all custom properties for the specified object type.





-------------- Example 3 --------------

C:\PS>Get-VIProperty -ObjectType 'VirtualMachine' -DeclaredOnly


Retrieve all custom properties for the specified object type that are not inherited.






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