Windows Experience Index (WEI) is a rating score (how to change WEI rating) that giving to a computer to gauge and benchmark the relative performance of the computer and its capability when running Windows Vista, Windows 7 and Windows Server 2008 (including R2 edition) operating system. WEI subscores and base score are calculated by a free benchmarking command-line utility called WinSAT.

For system administrators or network management managers who need to gather and retrieve Windows Experience Index rating score from many networked computers remotely, the following VBScript may help to get the score number. The VBScript will access the new WMI class called Win32_WinSAT to retrieve the WEI system accessment information from the remote computer. However, the VBScript only works on computer running operating system with WinSAT only, such as Windows Vista and newer OS such as Windows 7.

Copy and paste the following VBScript code below into a text editor such as Notepad, and then save it as any name with .vbs extension, such as WEIScore.vbs.

strCompName = Inputbox("Get Hardware Performance Ratings" & vbcrlf & "of a Remote computer," & vbcrlf & "Input the Computer Name:")

Set objWMIservices = GetObject("winmgmts:\\" & strCompName & "\root\cimv2")
Set colWSA = objWMIservices.ExecQuery("Select * From Win32_WinSAT")

For Each objItem in colWSA
    Wscript.Echo "Hardware Performance Ratings"
    Wscript.Echo "Processor : " & objItem.CPUScore
    Wscript.Echo "Memory: " & objItem.MemoryScore
    Wscript.Echo "Graphics: " & objItem.GraphicsScore
    Wscript.Echo "Gaming graphics: " & objItem.D3DScore
    Wscript.Echo "Primary hard disk: " & objItem.DiskScore

Double click on the VBS file to run the script. Enter the desired remote computer name in order to get the Windows Experience Index rating of the target system. If the “Error: The remote server machine does not exist or is unavailable: ‘GetObject'” error message is displayed, it means that the remote computer name is wrong, or unreachable.

Related Posts