Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.
March 29, 2005
A. You can use a Windows Management Instrumentation (WMI) script to easily ascertain the number of processors on a machine. To do so, use these VBScript commands in a script file:
Set oShell = WScript.CreateObject("WScript.Shell")Set oEnv = oShell.Environment("SYSTEM")WScript.Echo oEnv("NUMBER_OF_PROCESSORS")
You May Also Like