Get-MonitoringObjectProperty
Get-MonitoringObjectProperty
Gets properties and associated values of monitoring objects.
Syntax
Parameter Set: FromMonitoringObject
Get-MonitoringObjectProperty [-MonitoringObject] <MonitoringObject> [ <CommonParameters>]
Detailed Description
Gets properties and associated values of monitoring objects. The cmdlet returns the information in the form of Windows PowerShell objects (PSObjects) that contain a monitoring class property object for each property along with the associated value of each property.
Parameters
-MonitoringObject<MonitoringObject>
Specifies the monitoring object for which to retrieve properties and corresponding values.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
true (ByValue) |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters
Notes
- For more information, type "Get-Help Get-MonitoringObjectProperty -detailed". For technical information, type "Get-Help Get-MonitoringObjectProperty -full".
When specifying multiple values for a parameter, use commas to separate the values. For example, "<parameter-name> <value1>, <value2>".
Examples
-------------- EXAMPLE 1 --------------
This command uses Get-Childitem, which acts like the dir command does in the file system, to get all the monitoring objects associated with the current location in the MonitoringObject provider. It then pipelines the results to Get-MonitorObjectProperty which gets all the properties and associated values for those monitoring objects. Last, the results are passed along the pipeline to Format-Table which selects ParentElement, Name and Value and displays them in a tabular format.
C:\PS>get-childitem | get-monitoringobjectproperty |
format-table parentelement, name, value