Tutorials Forums
     Tutorials Videos
        Sign Up Now For FREE
Welcome, Guest
Username Password: Remember me

Use WMI to retrieve CPU ID in VBScript
(1 viewing) (1) Guest
ASP.NET PROGRAMS, ASP.NET DESIGN, ASP.NET CODE, ASP.NET TOOLS

ASP.NET combines Active Server Pages with the .NET Framework. This technology allows you to create dynamic web applications. ASP.NET pages work in all browsers. Best of all, ASP.NET lets you build web pages using less code than you need with classic ASP. If you’re using ASP.NET to build some applications for your website, you owe it to yourself to check out the articles in this section.
  • Page:
  • 1

TOPIC: Use WMI to retrieve CPU ID in VBScript

Use WMI to retrieve CPU ID in VBScript 08 Dec 2009 07:30 #46

This is a snippet that can be used to retrieve the CPU ID in VBScript

Instructions: Add the function to your vbs file, then call it

 
Function GetCpuID()
'create our variables
Dim wmi, cpu
'
use GetObject to get the WMI instance
Set wmi = GetObject("winmgmts:")
'loop through all CPU's found
For Each cpu in wmi.InstancesOf("Win32_Processor")
'write out the processor ID
wscript.echo "CPU: " & cpu.ProcessorID
Next
End Function
 
  • mnjon
  • OFFLINE
  • CE Staff
  • Posts: 78
  • Karma: 40
CodersEngine
  • Page:
  • 1
Time to create page: 0.26 seconds