Check if OS running is 32bit or 64 bit

You can use this script to get the OS version of a remote/local computer

[shell]
fo = get_OS_Bit(“.”)
wscript.echo info
Function get_OS_Bit(strComputer)
const HKEY_LOCAL_MACHINE = &H80000002
Set oReg=GetObject(“winmgmts:{impersonationLevel=impersonate}!” &
strComputer & “rootdefault:StdRegProv”)
strKeyPath = “HARDWAREDESCRIPTIONSystemCentralProcessor�”
strValueName = “Identifier”
oReg.GetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue

if (instr(strValue,”x86″)) then
Wscript.echo “OS running on : ” & strComputer & ” is 32 bit.”
get_OS_Bit=”32″
elseif (instr(strValue,”64″)) then
get_OS_Bit=”64″
Wscript.echo “OS running on : ” & strComputer & ” is 64 bit.”
Else
get_OS_Bit=”NotSure”
wscript.echo “Not sure.”
end if
End Function
[/shell]