Get Processor and OS info

We can get the Processor and OS info like this using the Environment method

Set WshShell = WScript.CreateObject(“WScript.Shell”)
Set WshSysEnv = WshShell.Environment(“SYSTEM”)
WScript.Echo “NUMBER OF PROCESSORS : ” & WshSysEnv(“NUMBER_OF_PROCESSORS”)
WScript.Echo “PROCESSOR ARCHITECTURE : ” & WshSysEnv(“PROCESSOR_ARCHITECTURE”)
WScript.Echo “PROCESSOR IDENTIFIER : ” & WshSysEnv(“PROCESSOR_IDENTIFIER”)
WScript.Echo “OS : ” & WshSysEnv(“OS”)

Leave a Reply

Your email address will not be published. Required fields are marked *