Reset-SCPROMonitorState
Reset-SCPROMonitorState
Resets the state of a specified PRO monitor.
構文
Parameter Set: Default
Reset-SCPROMonitorState -PROMonitorState <PROMonitorState> [-VMMServer <ServerConnection> ] [ <CommonParameters>]
詳細説明
The Reset-SCPROMonitorState cmdlet resets the state of a specified PRO Monitor.
パラメーター
-PROMonitorState<PROMonitorState>
Specifies a PRO monitor state object.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
-VMMServer<ServerConnection>
Specifies a VMM server object.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
- PROMonitorState
例
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]