Examples

-------------- EXAMPLE 1 --------------

This command uses Get-MonitoringClass to retrieve a reference to the class Microsoft.Windows.Computer. It stores it in the $monitoringclass variable. It then uses Get-MonitoringClassProperty to retrieve a reference to the PrincipalName property and stores it in the $prop variable. Last, it uses New-MonitoringClassPropertyValuePair to create a property-value pair with the property PrincipalName and the value computer1.contoso.com.