![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | How to find the operating system bit (x86/x64/ia64) Hi, How can one find out the operating system type installed (x86/x64/ ia64) ? I found an old post: http://groups.google.com/group/micro...a1999482d12e63 The above mentioned post describes a way using WMI query on the Win32_Processor class. Here you need to parse through the output of the "Description" field of each instance of the Win32_Processor class. This does not seem to be a very elegant method especially considering the fact that OS bit-ness is an operating system property and not that of the processor. Is there any method by which I can get the bit-ness of the operating system installed. For ex: On an x64 based hardware installed with x86 windows operating system I get "x86" or "32". Regards, Kiran |
My System Specs![]() |
| | #2 (permalink) |
| | Re: How to find the operating system bit (x86/x64/ia64) If you find out via another source, please post here. I'd love the answer too. Thanks. "kp" <kiran.r.pillai@xxxxxx> wrote in message news:dd1e831c-7d48-4d50-aa75-9e72d68ded30@xxxxxx Quote: > Hi, > > How can one find out the operating system type installed (x86/x64/ > ia64) ? |
My System Specs![]() |
| | #3 (permalink) |
| Windows 7 RTM 64-bit | Re: How to find the operating system bit (x86/x64/ia64) Type winver in the run box. OR simply hold the windows logo key+pause/break key. |
My System Specs![]() |
| | #4 (permalink) |
| | Re: How to find the operating system bit (x86/x64/ia64) On Apr 24, 5:38*pm, dinesh <gu...@xxxxxx-email.com> wrote: Quote: > Type *winver *in the run box. OR simply hold the windows logo > key+pause/break key. > > -- > dinesh > > Dinesh is a glorious beacon of light - Says Google. If you observe my question is how to find out the bit-ness through a vb script. I was already aware of the "winver" command. But, I guess I won't be able to run winver through a vb script and parse the output. Let me know if my understanding is incorrect here. Regards, Kiran |
My System Specs![]() |
| | #5 (permalink) |
| | Re: How to find the operating system bit (x86/x64/ia64) Here is one: '32 or 64 bit On Error Resume Next Set WshShell = WScript.CreateObject("WScript.Shell") sMsg = "This script will Display if you are running Windows 32 or 64 bit." & vbCr _ & "It will also Display the date and time the OS was installed and the OS version." & vbCr & vbCr _ & "Would you like to continue?" sInput = MsgBox(sMsg, vbYesNo + vbInformation, "Paul's XP and Vista Tweaks") If sInput = vbYes Then X = WshShell.RegRead("HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\PROCESSOR_ARCHITECTURE") If X = "x86" Then MsgBox "You Are Running Windows 32-bit!" & vbCr & "This script was downloaded from www.paulsxp.com", 64, "Windows 32-bit or 64-bit" Else MsgBox "You Are Running Windows XP 64-bit" & vbCr & "This script was downloaded from www.paulsxp.com", 64, "Good for You!" End If For Each pm in GetObject("winmgmts:{impersonationLevel=impersonate}")._ ExecQuery("Select CurrentTimeZone, InstallDate From Win32_OperatingSystem") With CreateObject("WbemScripting.SWbemDateTime") .Value = pm.InstallDate MsgBox "Windows Installed: " & DateAdd("n", -pm.CurrentTimeZone, ..GetVarDate) & vbCr &_ "This script was downloaded from www.paulsxp.com" ,64, "XP Installed" WshShell.Run("winver.exe") End With Next End If "kp" <kiran.r.pillai@xxxxxx> wrote in message news:4a48ec64-d26d-487b-9bfd-b89f746da786@xxxxxx Quote: > On Apr 24, 5:38 pm, dinesh <gu...@xxxxxx-email.com> wrote: Quote: >> Type *winver *in the run box. OR simply hold the windows logo >> key+pause/break key. >> >> -- >> dinesh >> >> Dinesh is a glorious beacon of light - Says Google. > Hi Dinesh, > > If you observe my question is how to find out the bit-ness through a > vb script. I was already aware of the "winver" command. But, I guess I > won't be able to run winver through a vb script and parse the output. > Let me know if my understanding is incorrect here. > > Regards, > Kiran |
My System Specs![]() |
| | #6 (permalink) |
| | Re: How to find the operating system bit (x86/x64/ia64) On Apr 24, 9:34*pm, "PaulM" <N...@xxxxxx> wrote: Quote: > Here is one: > > '32 or 64 bit > On Error Resume Next > > Set WshShell = WScript.CreateObject("WScript.Shell") > sMsg = "This script will Display if you are running Windows 32 or 64 bit." & > vbCr _ > *& "It will also Display the date and time the OS was installed and theOS > version." & vbCr & vbCr _ > *& "Would you like to continue?" > > sInput = MsgBox(sMsg, vbYesNo + vbInformation, "Paul's XP and Vista Tweaks") > If sInput = vbYes Then > > X = WshShell.RegRead("HKLM\SYSTEM\CurrentControlSet\Control\Session > Manager\Environment\PROCESSOR_ARCHITECTURE") > If X = "x86" Then > > MsgBox "You Are Running Windows 32-bit!" & vbCr & "This script was > downloaded fromwww.paulsxp.com", 64, "Windows 32-bit or 64-bit" > > Else > > MsgBox "You Are Running Windows XP 64-bit" & vbCr & "This script was > downloaded fromwww.paulsxp.com", 64, "Good for You!" > > End If > > For Each pm in GetObject("winmgmts:{impersonationLevel=impersonate}")._ > * ExecQuery("Select CurrentTimeZone, InstallDate From > Win32_OperatingSystem") > * With CreateObject("WbemScripting.SWbemDateTime") > * * .Value = pm.InstallDate > * * MsgBox "Windows Installed: " & DateAdd("n", -pm.CurrentTimeZone, > .GetVarDate) & vbCr &_ > *"This script was downloaded fromwww.paulsxp.com" ,64, "XP Installed" > WshShell.Run("winver.exe") > * End With > Next > End If > > "kp" <kiran.r.pil...@xxxxxx> wrote in message > > news:4a48ec64-d26d-487b-9bfd-b89f746da786@xxxxxx > Quote: > > On Apr 24, 5:38 pm, dinesh <gu...@xxxxxx-email.com> wrote: Quote: > >> Type *winver *in the run box. OR simply hold the windows logo > >> key+pause/break key. Quote: Quote: > >> -- > >> dinesh Quote: Quote: > >> Dinesh is a glorious beacon of light - Says Google. Quote: > > Hi Dinesh, Quote: > > If you observe my question is how to find out the bit-ness through a > > vb script. I was already aware of the "winver" command. But, I guess I > > won't be able to run winver through a vb script and parse the output. > > Let me know if my understanding is incorrect here. Quote: > > Regards, > > Kiran Thanks for your script. However, I need further granularity in case a 64 bit operating system is detected. I need to differentiate if it is as x64 or an ia64 operating system type. Is that possible with some additions to your script? Thanks, kp |
My System Specs![]() |
| | #7 (permalink) |
| | Re: How to find the operating system bit (x86/x64/ia64) Not sure, I would new someone running a x64 or ia64 computer. "kp" <kiran.r.pillai@xxxxxx> wrote in message news:e8c522e5-6846-4923-b1c5-001cafe82a5e@xxxxxx Quote: > On Apr 24, 9:34 pm, "PaulM" <N...@xxxxxx> wrote: Quote: >> Here is one: >> >> '32 or 64 bit >> On Error Resume Next >> >> Set WshShell = WScript.CreateObject("WScript.Shell") >> sMsg = "This script will Display if you are running Windows 32 or 64 >> bit." & >> vbCr _ >> & "It will also Display the date and time the OS was installed and the >> OS >> version." & vbCr & vbCr _ >> & "Would you like to continue?" >> >> sInput = MsgBox(sMsg, vbYesNo + vbInformation, "Paul's XP and Vista >> Tweaks") >> If sInput = vbYes Then >> >> X = WshShell.RegRead("HKLM\SYSTEM\CurrentControlSet\Control\Session >> Manager\Environment\PROCESSOR_ARCHITECTURE") >> If X = "x86" Then >> >> MsgBox "You Are Running Windows 32-bit!" & vbCr & "This script was >> downloaded fromwww.paulsxp.com", 64, "Windows 32-bit or 64-bit" >> >> Else >> >> MsgBox "You Are Running Windows XP 64-bit" & vbCr & "This script was >> downloaded fromwww.paulsxp.com", 64, "Good for You!" >> >> End If >> >> For Each pm in GetObject("winmgmts:{impersonationLevel=impersonate}")._ >> ExecQuery("Select CurrentTimeZone, InstallDate From >> Win32_OperatingSystem") >> With CreateObject("WbemScripting.SWbemDateTime") >> .Value = pm.InstallDate >> MsgBox "Windows Installed: " & DateAdd("n", -pm.CurrentTimeZone, >> .GetVarDate) & vbCr &_ >> "This script was downloaded fromwww.paulsxp.com" ,64, "XP Installed" >> WshShell.Run("winver.exe") >> End With >> Next >> End If >> >> "kp" <kiran.r.pil...@xxxxxx> wrote in message >> >> news:4a48ec64-d26d-487b-9bfd-b89f746da786@xxxxxx >> Quote: >> > On Apr 24, 5:38 pm, dinesh <gu...@xxxxxx-email.com> wrote: >> >> Type *winver *in the run box. OR simply hold the windows logo >> >> key+pause/break key. Quote: >> >> -- >> >> dinesh Quote: >> >> Dinesh is a glorious beacon of light - Says Google. Quote: >> > Hi Dinesh, Quote: >> > If you observe my question is how to find out the bit-ness through a >> > vb script. I was already aware of the "winver" command. But, I guess I >> > won't be able to run winver through a vb script and parse the output. >> > Let me know if my understanding is incorrect here. Quote: >> > Regards, >> > Kiran > Hi PaulM, > > Thanks for your script. > > However, I need further granularity in case a 64 bit operating system > is detected. I need to differentiate if it is as x64 or an ia64 > operating system type. > > Is that possible with some additions to your script? > > Thanks, > kp |
My System Specs![]() |
| | #8 (permalink) |
| | Re: How to find the operating system bit (x86/x64/ia64) Kiran, It turns out that you already have the answer with the script Paul showed if you just check the value he points to rather than using the post-processing via MsgBox. The PROCESSOR_ARCHITECTURE value contains a string describing how _Windows_ perceives the CPU. if it's AMD64 cpu, you get AMD64. If it's IA64 the value is IA64. If it's an x86 CPU, OR if you are running 32-bit Windows directly on an AMD64, you get back x86. Since you can access the machine key of the registry remotely using WMI, this is a good test for determining the OS architecture on a network of machines as well. "kp" <kiran.r.pillai@xxxxxx> wrote in message news:e8c522e5-6846-4923-b1c5-001cafe82a5e@xxxxxx Quote: > On Apr 24, 9:34 pm, "PaulM" <N...@xxxxxx> wrote: Quote: >> Here is one: >> >> '32 or 64 bit >> On Error Resume Next >> >> Set WshShell = WScript.CreateObject("WScript.Shell") >> sMsg = "This script will Display if you are running Windows 32 or 64 >> bit." & >> vbCr _ >> & "It will also Display the date and time the OS was installed and the >> OS >> version." & vbCr & vbCr _ >> & "Would you like to continue?" >> >> sInput = MsgBox(sMsg, vbYesNo + vbInformation, "Paul's XP and Vista >> Tweaks") >> If sInput = vbYes Then >> >> X = WshShell.RegRead("HKLM\SYSTEM\CurrentControlSet\Control\Session >> Manager\Environment\PROCESSOR_ARCHITECTURE") >> If X = "x86" Then >> >> MsgBox "You Are Running Windows 32-bit!" & vbCr & "This script was >> downloaded fromwww.paulsxp.com", 64, "Windows 32-bit or 64-bit" >> >> Else >> >> MsgBox "You Are Running Windows XP 64-bit" & vbCr & "This script was >> downloaded fromwww.paulsxp.com", 64, "Good for You!" >> >> End If >> >> For Each pm in GetObject("winmgmts:{impersonationLevel=impersonate}")._ >> ExecQuery("Select CurrentTimeZone, InstallDate From >> Win32_OperatingSystem") >> With CreateObject("WbemScripting.SWbemDateTime") >> .Value = pm.InstallDate >> MsgBox "Windows Installed: " & DateAdd("n", -pm.CurrentTimeZone, >> .GetVarDate) & vbCr &_ >> "This script was downloaded fromwww.paulsxp.com" ,64, "XP Installed" >> WshShell.Run("winver.exe") >> End With >> Next >> End If >> >> "kp" <kiran.r.pil...@xxxxxx> wrote in message >> >> news:4a48ec64-d26d-487b-9bfd-b89f746da786@xxxxxx >> Quote: >> > On Apr 24, 5:38 pm, dinesh <gu...@xxxxxx-email.com> wrote: >> >> Type *winver *in the run box. OR simply hold the windows logo >> >> key+pause/break key. Quote: >> >> -- >> >> dinesh Quote: >> >> Dinesh is a glorious beacon of light - Says Google. Quote: >> > Hi Dinesh, Quote: >> > If you observe my question is how to find out the bit-ness through a >> > vb script. I was already aware of the "winver" command. But, I guess I >> > won't be able to run winver through a vb script and parse the output. >> > Let me know if my understanding is incorrect here. Quote: >> > Regards, >> > Kiran > Hi PaulM, > > Thanks for your script. > > However, I need further granularity in case a 64 bit operating system > is detected. I need to differentiate if it is as x64 or an ia64 > operating system type. > > Is that possible with some additions to your script? > > Thanks, > kp |
My System Specs![]() |
| | #9 (permalink) |
| | Re: How to find the operating system bit (x86/x64/ia64) Reading back, I realize there was one point that I may not have made explicit: the values represent an OS architecture, not necessarily a specific manufacturer. So if your system is running a non-Itanium Intel x64 chip - which uses the AMD64 architecture - the 64-bit Windows will return AMD64 for PROCESSOR_ARCHITECTURE. As another and very far-fetched example: suppose a mysterious Eastern European company comes up with a reverse-engineered Itanium-compatible design tomorrow and markets it as the SkopjeCPU. Since it looks and acts like an Itanium, the only versions of Windows that will install on systems with the SkopjeCPU will be builds compiled as IA64; and if you check PROCESSOR_ARCHITECTURE on a SkopjeCPU machine, it will come back as IA64. "Alex K. Angelopoulos" <aka(at)mvps.org> wrote in message news:#agRVshxJHA.4776@xxxxxx Quote: > Kiran, > > It turns out that you already have the answer with the script Paul showed > if you just check the value he points to rather than using the > post-processing via MsgBox. > > The PROCESSOR_ARCHITECTURE value contains a string describing how > _Windows_ perceives the CPU. if it's AMD64 cpu, you get AMD64. If it's > IA64 the value is IA64. If it's an x86 CPU, OR if you are running 32-bit > Windows directly on an AMD64, you get back x86. > > Since you can access the machine key of the registry remotely using WMI, > this is a good test for determining the OS architecture on a network of > machines as well. > > "kp" <kiran.r.pillai@xxxxxx> wrote in message > news:e8c522e5-6846-4923-b1c5-001cafe82a5e@xxxxxx Quote: >> On Apr 24, 9:34 pm, "PaulM" <N...@xxxxxx> wrote: Quote: >>> Here is one: >>> >>> '32 or 64 bit >>> On Error Resume Next >>> >>> Set WshShell = WScript.CreateObject("WScript.Shell") >>> sMsg = "This script will Display if you are running Windows 32 or 64 >>> bit." & >>> vbCr _ >>> & "It will also Display the date and time the OS was installed and the >>> OS >>> version." & vbCr & vbCr _ >>> & "Would you like to continue?" >>> >>> sInput = MsgBox(sMsg, vbYesNo + vbInformation, "Paul's XP and Vista >>> Tweaks") >>> If sInput = vbYes Then >>> >>> X = WshShell.RegRead("HKLM\SYSTEM\CurrentControlSet\Control\Session >>> Manager\Environment\PROCESSOR_ARCHITECTURE") >>> If X = "x86" Then >>> >>> MsgBox "You Are Running Windows 32-bit!" & vbCr & "This script was >>> downloaded fromwww.paulsxp.com", 64, "Windows 32-bit or 64-bit" >>> >>> Else >>> >>> MsgBox "You Are Running Windows XP 64-bit" & vbCr & "This script was >>> downloaded fromwww.paulsxp.com", 64, "Good for You!" >>> >>> End If >>> >>> For Each pm in GetObject("winmgmts:{impersonationLevel=impersonate}")._ >>> ExecQuery("Select CurrentTimeZone, InstallDate From >>> Win32_OperatingSystem") >>> With CreateObject("WbemScripting.SWbemDateTime") >>> .Value = pm.InstallDate >>> MsgBox "Windows Installed: " & DateAdd("n", -pm.CurrentTimeZone, >>> .GetVarDate) & vbCr &_ >>> "This script was downloaded fromwww.paulsxp.com" ,64, "XP Installed" >>> WshShell.Run("winver.exe") >>> End With >>> Next >>> End If >>> >>> "kp" <kiran.r.pil...@xxxxxx> wrote in message >>> >>> news:4a48ec64-d26d-487b-9bfd-b89f746da786@xxxxxx >>> >>> > On Apr 24, 5:38 pm, dinesh <gu...@xxxxxx-email.com> wrote: >>> >> Type *winver *in the run box. OR simply hold the windows logo >>> >> key+pause/break key. >>> >>> >> -- >>> >> dinesh >>> >>> >> Dinesh is a glorious beacon of light - Says Google. >>> >>> > Hi Dinesh, >>> >>> > If you observe my question is how to find out the bit-ness through a >>> > vb script. I was already aware of the "winver" command. But, I guess I >>> > won't be able to run winver through a vb script and parse the output. >>> > Let me know if my understanding is incorrect here. >>> >>> > Regards, >>> > Kiran >> Hi PaulM, >> >> Thanks for your script. >> >> However, I need further granularity in case a 64 bit operating system >> is detected. I need to differentiate if it is as x64 or an ia64 >> operating system type. >> >> Is that possible with some additions to your script? >> >> Thanks, >> kp |
My System Specs![]() |
| | #10 (permalink) |
| | Re: How to find the operating system bit (x86/x64/ia64) On Apr 26, 4:32*pm, "Alex K. Angelopoulos" <aka(at)mvps.org> wrote: Quote: > Reading back, I realize there was one point that I may not have made > explicit: the values represent an OS architecture, not necessarily a > specific manufacturer. So if your system is running a non-Itanium Intel x64 > chip - which uses the AMD64 architecture - the 64-bit Windows will return > AMD64 for PROCESSOR_ARCHITECTURE. As another and very far-fetched example: > suppose a mysterious Eastern European company comes up with a > reverse-engineered Itanium-compatible design tomorrow and markets it as the > SkopjeCPU. Since it looks and acts like an Itanium, the only versions of > Windows that will install on systems with the SkopjeCPU will be builds > compiled as IA64; and if you check PROCESSOR_ARCHITECTURE on a SkopjeCPU > machine, it will come back as IA64. > > "Alex K. Angelopoulos" <aka(at)mvps.org> wrote in messagenews:#agRVshxJHA..4776@xxxxxx > Quote: > > Kiran, Quote: > > It turns out that you already have the answer with the script Paul showed > > if you just check the value he points to rather than using the > > post-processing via MsgBox. Quote: > > The PROCESSOR_ARCHITECTURE value contains a string describing how > > _Windows_ perceives the CPU. if it's AMD64 cpu, you get AMD64. If it's > > IA64 the value is IA64. If it's an x86 CPU, OR if you are running 32-bit > > Windows directly on an AMD64, you get back x86. Quote: > > Since you can access the machine key of the registry remotely using WMI, > > this is a good test for determining the OS architecture on a network of > > machines as well. Quote: > > "kp" <kiran.r.pil...@xxxxxx> wrote in message > >news:e8c522e5-6846-4923-b1c5-001cafe82a5e@xxxxxx Quote: > >> On Apr 24, 9:34 pm, "PaulM" <N...@xxxxxx> wrote: > >>> Here is one: Quote: Quote: > >>> '32 or 64 bit > >>> On Error Resume Next Quote: Quote: > >>> Set WshShell = WScript.CreateObject("WScript.Shell") > >>> sMsg = "This script will Display if you are running Windows 32 or 64 > >>> bit." & > >>> vbCr _ > >>> *& "It will also Display the date and time the OS was installed andthe > >>> OS > >>> version." & vbCr & vbCr _ > >>> *& "Would you like to continue?" Quote: Quote: > >>> sInput = MsgBox(sMsg, vbYesNo + vbInformation, "Paul's XP and Vista > >>> Tweaks") > >>> If sInput = vbYes Then Quote: Quote: > >>> X = WshShell.RegRead("HKLM\SYSTEM\CurrentControlSet\Control\Session > >>> Manager\Environment\PROCESSOR_ARCHITECTURE") > >>> If X = "x86" Then Quote: Quote: > >>> MsgBox "You Are Running Windows 32-bit!" & vbCr & "This script was > >>> downloaded fromwww.paulsxp.com", 64, "Windows 32-bit or 64-bit" Quote: Quote: > >>> Else Quote: Quote: > >>> MsgBox "You Are Running Windows XP 64-bit" & vbCr & "This script was > >>> downloaded fromwww.paulsxp.com", 64, "Good for You!" Quote: Quote: > >>> End If Quote: Quote: > >>> For Each pm in GetObject("winmgmts:{impersonationLevel=impersonate}")._ > >>> * ExecQuery("Select CurrentTimeZone, InstallDate From > >>> Win32_OperatingSystem") > >>> * With CreateObject("WbemScripting.SWbemDateTime") > >>> * * .Value = pm.InstallDate > >>> * * MsgBox "Windows Installed: " & DateAdd("n", -pm.CurrentTimeZone, > >>> .GetVarDate) & vbCr &_ > >>> *"This script was downloaded fromwww.paulsxp.com" ,64, "XP Installed" > >>> WshShell.Run("winver.exe") > >>> * End With > >>> Next > >>> End If Quote: Quote: > >>> "kp" <kiran.r.pil...@xxxxxx> wrote in message Quote: Quote: > >>>news:4a48ec64-d26d-487b-9bfd-b89f746da786@xxxxxx Quote: Quote: > >>> > On Apr 24, 5:38 pm, dinesh <gu...@xxxxxx-email.com> wrote: > >>> >> Type *winver *in the run box. OR simply hold the windows logo > >>> >> key+pause/break key. Quote: Quote: > >>> >> -- > >>> >> dinesh Quote: Quote: > >>> >> Dinesh is a glorious beacon of light - Says Google. Quote: Quote: > >>> > Hi Dinesh, Quote: Quote: > >>> > If you observe my question is how to find out the bit-ness through a > >>> > vb script. I was already aware of the "winver" command. But, I guess I > >>> > won't be able to run winver through a vb script and parse the output. > >>> > Let me know if my understanding is incorrect here. Quote: Quote: > >>> > Regards, > >>> > Kiran Quote: Quote: > >> Hi PaulM, Quote: Quote: > >> Thanks for your script. Quote: Quote: > >> However, I need further granularity in case a 64 bit operating system > >> is detected. I need to differentiate if it is as x64 or an ia64 > >> operating system type. Quote: Quote: > >> Is that possible with some additions to your script? Quote: Quote: > >> Thanks, > >> kp I guess I can get what I want from combining both your answers: 1. Check the registry key ""HKLM\SYSTEM\CurrentControlSet\Control \Session Manager\Environment\PROCESSOR_ARCHITECTURE" 2. If it returns "x86" --> It is an x86 operating system that is installed. 3. If it returns "IA64" --> It is an IA64 windows operating system that is installed. 4. Else it is an x64 (any of the x64 based ) operating system that is installed. Do you think my logic is correct here or do you see something wrong here? Thanks, Kiran |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Cannot Find Operating System! Help! | General Discussion | |||
| Operating System | Virtual PC | |||
| diff between X64 and IA64 | General Discussion | |||
| When the operating system | Vista General | |||
| Operating System Help | Vista General | |||