Ali’s Knowledge Base
Destination Cloud …

Ali’s Knowledge Base

How can I use a script to determine the number of processors in a machine?

March 31st, 2005 . by Ali

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”)

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Reply

Name

Mail (never published)

Website