Reset-SCPROMonitorState

Resets the state of a specified PRO monitor.

Syntax

Reset-SCPROMonitorState
     [-VMMServer <ServerConnection>]
     -PROMonitorState <PROMonitorState>
     [<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
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-VMMServer

Specifies a Virtual Machine Manager (VMM) server object.

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

Outputs

PROMonitorState

This cmdlet returns a PROMonitorState object.