Windows 7 includes Windows PowerShell 2.0, which provides remote scripting capabilities, including access to WMI. Combining these technologies, you can get the reliability data from user systems without having to physically visit their offices. Here are some handy commands:
Last 5 reliability event messages on a computer:
Copy Code get-wmiobject Win32_ReliabilityRecords -computername 127.0.0.1 -property Message
select-object -first 5 Message
format-list *
Distribution of reliability events:
Copy Code get-wmiobject Win32_ReliabilityRecords -property @("SourceName", "EventIdentifier")
group-object -property SourceName,EventIdentifier -noelement
sort-object -descending Count
select-object Count,Name
format-table *
The latest stability index for multiple machines:
Copy Code @("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
}
View a graphical display of the stability index:
Copy Code get-wmiobject Win32_ReliabilityStabilityMetrics -property @("SystemStabilityIndex","EndMeasurementDate")
foreach-object -process {
$t = "";
for ($i = 0; $i -le $_.SystemStabilityIndex * 5; $i++) { $t = $t + "=" };
$_.EndMeasurementDate + " " + $t
}

Comments
0 comments to "Use Windows PowerShell 2.0 to Get Reliability Data from Remote PCs"
Post a Comment