How to determine if a Windows machine has 64-bit Registry section
| Article:HOWTO79577 | | | Created: 2012-09-26 | | | Updated: 2012-09-26 | | | Article URL http://www.symantec.com/docs/HOWTO79577 |
The following vbscript is a concise example of how to determine if a Windows machine has a wow6432node in its registry:
*************************************************************************************************************************
' Determine if computer is x64 by the existence of the HKLM\SOFTWARE\Wow6432Node registry key
Const HKLM = &H80000002
Dim strRootKeyPath, arrSubKeys
Set objRegistry=GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv")
strRootKeyPath = "SOFTWARE\Wow6432Node"
objRegistry.EnumKey HKLM, strRootKeyPath, arrSubKeys
if IsNull(arrSubKeys) Then
strAdobePath = "SOFTWARE"
Wscript.echo "empty"
else
strAdobePath = "SOFTWARE\Wow6432Node"
Wscript.echo "not empty"
End If
*************************************************************************************************************************
|
|
Article URL http://www.symantec.com/docs/HOWTO79577
Terms of use for this information are found in Legal Notices









Thank you.