Results 1 to 5 of 5

Thread: How to check is the OS is 64 bit or 32 bit?

  1. #1
    Gugle Guest

    How to check is the OS is 64 bit or 32 bit?

    Hi all,
    I want to check if the OS is 64 bit or 32 bit using vbscript. I'm
    currently reading the registry key - HKEY_LOCAL_MACHINE\SYSTEM
    \CurrentControlSet\Control\Session Manager\Environment
    \PROCESSOR_ARCHITECTURE and checking the architecture. My question is
    - Will this return the architecture of the OS or the architecture of
    the processor? i.e., if a 32-bit Windows OS is installed on 64 bit
    Processor, what will this return?

    Thanks in advance for your help!

  2. #2
    Richard Mueller [MVP] Guest

    Re: How to check is the OS is 64 bit or 32 bit?


    "Gugle" <gugle.rulez@gmail.com> wrote in message
    news:293ee69d-ded9-448a-8bdb-c6af160c05f8@e1g2000pra.googlegroups.com...
    > Hi all,
    > I want to check if the OS is 64 bit or 32 bit using vbscript. I'm
    > currently reading the registry key - HKEY_LOCAL_MACHINE\SYSTEM
    > \CurrentControlSet\Control\Session Manager\Environment
    > \PROCESSOR_ARCHITECTURE and checking the architecture. My question is
    > - Will this return the architecture of the OS or the architecture of
    > the processor? i.e., if a 32-bit Windows OS is installed on 64 bit
    > Processor, what will this return?
    >
    > Thanks in advance for your help!


    I replied in microsoft.public.scripting.vbscript.

    The registry setting seems to return info on the OS. I would suggest using
    WMI for information on either OS (Win32_OperatingSystem class) or processor
    (Win32_Processor class).

    --
    Richard Mueller
    MVP Directory Services
    Hilltop Lab - http://www.rlmueller.net
    --



  3. #3
    Pegasus \(MVP\) Guest

    Re: How to check is the OS is 64 bit or 32 bit?


    "Gugle" <gugle.rulez@gmail.com> wrote in message
    news:293ee69d-ded9-448a-8bdb-c6af160c05f8@e1g2000pra.googlegroups.com...
    > Hi all,
    > I want to check if the OS is 64 bit or 32 bit using vbscript. I'm
    > currently reading the registry key - HKEY_LOCAL_MACHINE\SYSTEM
    > \CurrentControlSet\Control\Session Manager\Environment
    > \PROCESSOR_ARCHITECTURE and checking the architecture. My question is
    > - Will this return the architecture of the OS or the architecture of
    > the processor? i.e., if a 32-bit Windows OS is installed on 64 bit
    > Processor, what will this return?
    >
    > Thanks in advance for your help!


    Have a look at the answers you received in the VB Scripting newsgroup, then
    check out this link to see the merits of cross-posting vs. multi-posting:
    http://www.blakjak.demon.co.uk/mul_crss.htm



  4. #4
    Gugle Guest

    Re: How to check is the OS is 64 bit or 32 bit?

    On Jan 13, 10:07 pm, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:
    > "Gugle" <gugle.ru...@gmail.com> wrote in message
    >
    > news:293ee69d-ded9-448a-8bdb-c6af160c05f8@e1g2000pra.googlegroups.com...
    >
    > > Hi all,
    > > I want to check if the OS is 64 bit or 32 bit using vbscript. I'm
    > > currently reading the registry key - HKEY_LOCAL_MACHINE\SYSTEM
    > > \CurrentControlSet\Control\Session Manager\Environment
    > > \PROCESSOR_ARCHITECTURE and checking the architecture. My question is
    > > - Will this return the architecture of the OS or the architecture of
    > > the processor? i.e., if a 32-bit Windows OS is installed on 64 bit
    > > Processor, what will this return?

    >
    > > Thanks in advance for your help!

    >
    > Have a look at the answers you received in the VB Scripting newsgroup, then
    > check out this link to see the merits of cross-posting vs. multi-posting:http://www.blakjak.demon.co.uk/mul_crss.htm


    Hi Pegasus,
    Apologies for multi-posting. I was in urgent need of a solution for
    this and hence I was trying out different newsgroups.


  5. #5
    Pegasus \(MVP\) Guest

    Re: How to check is the OS is 64 bit or 32 bit?


    "Gugle" <gugle.rulez@gmail.com> wrote in message
    news:2d129bf8-ba6a-45e9-a1ec-725d2715f0d9@h41g2000yqn.googlegroups.com...
    On Jan 13, 10:07 pm, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:
    > "Gugle" <gugle.ru...@gmail.com> wrote in message
    >
    > news:293ee69d-ded9-448a-8bdb-c6af160c05f8@e1g2000pra.googlegroups.com...
    >
    > > Hi all,
    > > I want to check if the OS is 64 bit or 32 bit using vbscript. I'm
    > > currently reading the registry key - HKEY_LOCAL_MACHINE\SYSTEM
    > > \CurrentControlSet\Control\Session Manager\Environment
    > > \PROCESSOR_ARCHITECTURE and checking the architecture. My question is
    > > - Will this return the architecture of the OS or the architecture of
    > > the processor? i.e., if a 32-bit Windows OS is installed on 64 bit
    > > Processor, what will this return?

    >
    > > Thanks in advance for your help!

    >
    > Have a look at the answers you received in the VB Scripting newsgroup,
    > then
    > check out this link to see the merits of cross-posting vs.
    > multi-posting:http://www.blakjak.demon.co.uk/mul_crss.htm


    Hi Pegasus,
    Apologies for multi-posting. I was in urgent need of a solution for
    this and hence I was trying out different newsgroups.

    =================

    That's perfectly alright - as long as you cross-post them! Unfortunately you
    chose to multi-post them.



Similar Threads

  1. How to check RAM on all PCs on network
    By Shakirah in forum Technology & Internet
    Replies: 3
    Last Post: 23-10-2010, 12:16 AM
  2. How to check LAN printing
    By Chakradev in forum Networking & Security
    Replies: 4
    Last Post: 12-03-2010, 05:51 AM
  3. How to Check Your RAM?
    By Aapti in forum Motherboard Processor & RAM
    Replies: 5
    Last Post: 11-02-2009, 12:04 PM
  4. Check browser with ASP check
    By FenceeII in forum Software Development
    Replies: 3
    Last Post: 14-01-2009, 02:47 PM
  5. Check your bandwidth
    By Computer_Freak in forum Tips & Tweaks
    Replies: 3
    Last Post: 02-05-2008, 06:37 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,060,364.49259 seconds with 16 queries