The Get-SCCustomPropertyValue cmdlet getsa custom property value object.
For more information about Get-SCCustomPropertyValue, type: "Get-Help Get-SCCustomPropertyValue -online".
Parameters
All
Required?
true
Accept Pipeline Input?
false
Position?
named
Retrieves a full list of all subordinate objects independent of the parent object. For example, the command Get-SCVirtualDiskDrive -All retrieves all virtual disk drive objects regardless of the virtual machine object or template object that each virtual disk drive object is associated with.
VMMServer
Required?
false
Accept Pipeline Input?
true (ByValue)
Position?
named
Specifies a VMM server object.
CustomProperty
Required?
true
Accept Pipeline Input?
false
Position?
named
Specifies a custom property object.
InputObject
Required?
true
Accept Pipeline Input?
true (ByValue)
Position?
named
Specifies the object that is assigned the property whose value you want to retrieve or change.
VMMServer
Required?
false
Accept Pipeline Input?
true (ByValue)
Position?
named
Specifies a VMM server object.
Examples
1: Get the value for a custom property
on a virtual machine.
The first command gets the virtual machine object named VM01 and stores the object in the $VM variable.
The second command gets the custom property object named Cost Center and stores the object in the $CustomProp variable.
The last command retrieves the value for the custom property stored in $CustomProp (Cost Center) for the virtual machine stored in $VM (VM01).