Windows 7 には、WMI へのアクセスを含め、リモート スクリプト機能を提供する Windows PowerShell 2.0 が含まれています。これらのテクノロジを組み合わせることによって、物理的にユーザーのオフィスを訪問することなく、ユーザーのシステムから信頼性データを取得できます。ここでは、便利なコマンドをいくつか紹介します。
コンピューター上の最後の 5 つの信頼性イベント メッセージ:
get-wmiobject Win32_ReliabilityRecords -computername 127.0.0.1 -property Message |
select-object -first 5 Message |
format-list *
信頼性イベントの分布:
get-wmiobject Win32_ReliabilityRecords -property @("SourceName", "EventIdentifier") |
group-object -property SourceName,EventIdentifier -noelement |
sort-object -descending Count |
select-object Count,Name |
format-table *
複数のコンピューターの最新の安定性インデックス:
@("USER-PC-1", "USER-PC-2") |
foreach-object -process {
get-wmiobject Win32_ReliabilityStabilityMetrics -computername $_ -property @("_SERVER", "SystemStabilityIndex") |
select-object -first 1 _SERVER,SystemStabilityIndex |
format-table
}
安定性インデックスのグラフィカル表示:
get-wmiobject Win32_ReliabilityStabilityMetrics -property @("SystemStabilityIndex","EndMeasurementDate") |
foreach-object -process {
$t = "";
for ($i = 0; $i -le $_.SystemStabilityIndex * 5; $i++) { $t = $t + "=" };
$_.EndMeasurementDate + " " + $t
}