Reset-SCPROMonitorState

Reset-SCPROMonitorState

Resets the state of a specified PRO monitor.

Syntax

Parameter Set: Default
Reset-SCPROMonitorState -PROMonitorState <PROMonitorState> [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Detailed Description

The Reset-SCPROMonitorState cmdlet resets the state of a specified PRO Monitor.

Parameters

-PROMonitorState<PROMonitorState>

Specifies a PRO monitor state object.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-VMMServer<ServerConnection>

Specifies a VMM server object.

Aliases

none

Required?

false

Position?

named

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 (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • PROMonitorState

Examples

Example 1: Reset a PRO monitor state

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

The second command gets all PRO monitor state objects on VMHost01, and then 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.

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

Get-SCPROMonitorState

Get-SCVMHost