ASP.NET School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

 

Code Snippets

  

ASP Source Code


Welcome to Dream.In.Code
Become a ASP.NET Expert!

Join 300,309 ASP.NET Programmers for FREE! Get instant access to thousands of ASP.NET experts, tutorials, code snippets, and more! There are 2,088 people online right now. Registration is fast and FREE... Join Now!





Use WMI to retrieve CPU ID in VBScript

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

Submitted By: PsychoCoder
Actions:
Rating:
Views: 5,116

Language: ASP

Last Modified: February 10, 2008
Instructions: Add the function to your vbs file, then call it

Snippet


  1. Function GetCpuID()
  2.   'create our variables
  3.   Dim wmi, cpu
  4.   'use GetObject to get the WMI instance
  5.   Set wmi = GetObject("winmgmts:")
  6.   'loop through all CPU's found
  7.   For Each cpu in wmi.InstancesOf("Win32_Processor")
  8.   'write out the processor ID
  9.    wscript.echo "CPU: " & cpu.ProcessorID     
  10.   Next
  11. End Function 

Copy & Paste


Comments


There are currently no comments for this snippet. Be the first to comment!

Add comment


You must be registered and logged on to </dream.in.code> to leave comments.





Live ASP.NET Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

ASP.NET Tutorials

Reference Sheets

ASP.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month