From LedHed's Wiki
(Created page with "I was writing a vbscript today that required I know what OS Architecture (x86 or x64) I came across this site: http://csi-windows.com/toolkit/csi-getosbits In a nutshell: B...") |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 4: | Line 4: | ||
http://csi-windows.com/toolkit/csi-getosbits | http://csi-windows.com/toolkit/csi-getosbits | ||
| − | + | == VBScript == | |
Bits = GetObject("winmgmts:root\cimv2:Win32_Processor='cpu0'").AddressWidth | Bits = GetObject("winmgmts:root\cimv2:Win32_Processor='cpu0'").AddressWidth | ||
| + | |||
| + | |||
| + | |||
| + | == Command Line == | ||
| + | wmic Path Win32_Processor Get AddressWidth | ||
[[Category:Windows]] | [[Category:Windows]] | ||
[[Category:VBScript]] | [[Category:VBScript]] | ||
| + | [[Category:WMI]] | ||
Latest revision as of 12:45, 5 September 2013
I was writing a vbscript today that required I know what OS Architecture (x86 or x64)
I came across this site: http://csi-windows.com/toolkit/csi-getosbits
VBScript
Bits = GetObject("winmgmts:root\cimv2:Win32_Processor='cpu0'").AddressWidth
Command Line
wmic Path Win32_Processor Get AddressWidth