Skip to content

Instantly share code, notes, and snippets.

@boyron
Created May 3, 2014 11:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boyron/4f456210e57416bc0d47 to your computer and use it in GitHub Desktop.
Save boyron/4f456210e57416bc0d47 to your computer and use it in GitHub Desktop.
32 or 64 Bit Windows?
'Copyright 2010 - Ron
'http://www.ittybittytalks.com
On Error Resume Next
Set WshShell = WScript.CreateObject("WScript.Shell")
X = WshShell.RegRead("HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\PROCESSOR_ARCHITECTURE")
If X = "x86" Then
Message = vbCR & "You have a 32 bit version of Windows Operating System" & vbCR & vbCR
Message = Message & "You should download 32 bit versions of Service Packs, " & vbCR
Message = Message & "Hotfixes and other Windows updates"
MsgBox Message, vbOkOnly, "32-Bit Windows Found!"
Else
Message = vbCR & "Your Processor Architecture is not 32-Bit x86." & vbCR & vbCR
Message = Message & "This identifies a machine potentially running a 64-Bit" & vbCR
Message = Message & "Edition of Windows OS. You should open your system properties" & vbCR
Message = Message & "(Start menu>Programs>Accessories>System tools>System information)" & vbCR
Message = Message & "to identify which hotfixes to apply on this system." & vbCR & vbCR
Message = Message & "Intel Itanium/II CPU = patches marked IA64" & vbCR
Message = Message & "AMD Opteron or Athlon64/FX = Patches marked as AMD64" & vbCR
MsgBox Message, vbOkOnly, "Non x86 Windows Found!"
End If
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment