Reset-SCPROMonitorState

Resets the state of a specified PRO monitor.

Syntax

Reset-SCPROMonitorState -PROMonitorState <PROMonitorState> [-VMMServer <ServerConnection>] [<CommonParameters>]

Description

The Reset-SCPROMonitorState cmdlet resets the state of a specified Performance and Resource Optimization (PRO) monitor.

Examples

Example 1: Reset a PRO monitor state

PS C:\> $VMHost = Get-SCVMHost "VMHost01.Contoso.com"
PS C:\> $PROMonitorState = @(Get-SCPROMonitorState -VMHost $VMHost)
PS C:\> Reset-SCProMonitorState -PROMonitorState $PROMonitorState[0]

The first command gets the host object named VMHost01 and stores the object in the $VMHost variable.

The second comand gets all PRO monitor state objects on VMHost01 and stores the objects in the $PROMonitorState object array. This example assumes that there are multiple PRO monitors on VMHost01.

The last command resets the first PRO monitor state object stored in $PROMonitorState.

Parameters

-PROMonitorState

Specifies a PRO monitor state object.

Type:PROMonitorState
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-VMMServer

Specifies a Virtual Machine Manager (VMM) server object.

Type:ServerConnection
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Outputs

PROMonitorState

This cmdlet returns a **PROMonitorState** object.