次の方法で共有


Reset-SCPROMonitorState

Resets the state of a specified PRO monitor.

Syntax

Default (Default)

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.

Parameter properties

Type:PROMonitorState
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-VMMServer

Specifies a Virtual Machine Manager (VMM) server object.

Parameter properties

Type:ServerConnection
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

PROMonitorState

This cmdlet returns a PROMonitorState object.