tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Interviews | Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 VB Script > Advanced > Processor Info

Processor Info 

This example shows accessing processor information.

File Name  :  
source/VBS/advanced/processor_info.vbs 
Author  :  Sudhakar KV
Email  :  kvenkatasudhakar@gmail.com
01'Local computer
02strCompName = "."
03 
04Set wmiSvcObj = GetObject("winmgmts:\\" & strCompName & "\root\CIMV2")
05Set selProcessors = wmiSvcObj.ExecQuery("Select * from Win32_Processor")
06 
07For Each processorObj in selProcessors
08   
09  WScript.Echo "Name: " & processorObj.Name
10  WScript.Echo "Description: " & processorObj.Description
11  WScript.Echo "Processor ID: " & processorObj.ProcessorID
12  WScript.Echo "Manufacturer: " & processorObj.Manufacturer
13  WScript.Echo "Family: " & processorObj.Family
14  WScript.Echo "Address Width: " & processorObj.AddressWidth
15  WScript.Echo "Data Width: " & processorObj.DataWidth
16  WScript.Echo "Maximum Clock Speed: " & processorObj.MaxClockSpeed
17Next

It gives the following output,
Name: Intel(R) Core(TM)2 Duo CPU     T9600  @ 2.80GHz
Description: x86 Family 6 Model 23 Stepping 10
Processor ID: BFCBFAFF0001067C
Manufacturer: GenuineIntel
Family: 2
Address Width: 32
Data Width: 32
Maximum Clock Speed: 2792



 
  


  
bl  br