Friday, January 15, 2010

Use Windows PowerShell 2.0 to Get Reliability Data from Remote PCs

0 comments
Microsoft Windows 7 Home Premium UpgradeWindows Vista introduced Reliability Monitor, which accessed system stability data from the Reliability Analysis Component (RAC) database in a graphical manner. This tool allows IT professionals to view the system stability trend and associated events that may have affected that stability. In Windows 7, RAC database is accessible via WMI, enabling IT pros to view and use this data more flexibly.


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

 

Copyright 2008 All Rights Reserved FREE computer guide