Windows Vista Forums

Determine OS version and bit type from the registry

  1. #1


    RobM Guest

    Determine OS version and bit type from the registry

    Hi,

    I need to find out if there is a way to determine the operating system
    version and whether it is 32 or 64-bit by using the registry. I am aware of
    the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
    NT\CurrentVersion\CurrentVersion. Windows XP would be 5.1 and Vista would be
    6.0. I noticed that both the 32 and 64 bit versions are set to version 6.0.
    Does anyone know where to find the bit version installed in the registry?
    System Information is able to tell so it must be in the registry somewhere.

    I have been searching the internet for awhile without much luck so far.

    --

    Thanks,

    Rob

      My System SpecsSystem Spec

  2. #2


    Mark L. Ferguson Guest

    Re: Determine OS version and bit type from the registry

    --OS Architecture.VBS--cut here--
    ' Mark L. Ferguson 2008
    ' script to detect 32 or 64 bit architecture
    strComputer = "."
    Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" _
    & strComputer & "\root\cimv2")
    Set colOperatingSystems = objWMIService.ExecQuery _
    ("Select * from Win32_OperatingSystem")
    For Each objOperatingSystem in colOperatingSystems
    Wscript.Echo objOperatingSystem.Caption & _
    " " & objOperatingSystem.OSArchitecture
    Next
    --end file--cut here--

    --
    Use the "Ratings" feature. It helps the new users.
    Please use the Communities guidelines when posting.
    http://www.microsoft.com/wn3/locales...help_en-us.htm
    Mark L. Ferguson MS-MVP
    https://mvp.support.microsoft.com/profile/Mark.Ferguson

    "RobM" <RobM@xxxxxx> wrote in message
    news:8A55D8EB-D956-4D0C-B978-54AE4A313300@xxxxxx

    > Hi,
    >
    > I need to find out if there is a way to determine the operating system
    > version and whether it is 32 or 64-bit by using the registry. I am aware
    > of
    > the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
    > NT\CurrentVersion\CurrentVersion. Windows XP would be 5.1 and Vista would
    > be
    > 6.0. I noticed that both the 32 and 64 bit versions are set to version
    > 6.0.
    > Does anyone know where to find the bit version installed in the registry?
    > System Information is able to tell so it must be in the registry
    > somewhere.
    >
    > I have been searching the internet for awhile without much luck so far.
    >
    > --
    >
    > Thanks,
    >
    > Rob

      My System SpecsSystem Spec

  3. #3


    PaulM Guest

    Re: Determine OS version and bit type from the registry

    Go here line 14 and download the script and run it.
    http://www.paulsxp.com/tweaksvista.html

    --
    Paul's XP and Vista Tweaks
    ---------------------------------------
    www.paulsxp.com

    Paul's XP and Vista Help Forum
    --------------------------------------------
    www.paulsxp.com/forum

    Live Support
    ------------------
    www.paulsxp.com/livesupport.html

    "RobM" <RobM@xxxxxx> wrote in message
    news:8A55D8EB-D956-4D0C-B978-54AE4A313300@xxxxxx

    > Hi,
    >
    > I need to find out if there is a way to determine the operating system
    > version and whether it is 32 or 64-bit by using the registry. I am aware
    > of
    > the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
    > NT\CurrentVersion\CurrentVersion. Windows XP would be 5.1 and Vista would
    > be
    > 6.0. I noticed that both the 32 and 64 bit versions are set to version
    > 6.0.
    > Does anyone know where to find the bit version installed in the registry?
    > System Information is able to tell so it must be in the registry
    > somewhere.
    >
    > I have been searching the internet for awhile without much luck so far.
    >
    > --
    >
    > Thanks,
    >
    > Rob

      My System SpecsSystem Spec

Determine OS version and bit type from the registry

Similar Threads
Thread Forum
code to determine if a variable is currently type-constrained
Consider this transcript PS C:> $i = 1 PS C:> ((GI VARIABLE:i).attributes).count 0 PS C:> ((GI VARIABLE:i).attributes).count -ne 0 False PS...
PowerShell
determine version of .exe thru batch file
I have been researching a way to check the version of a file thru a batch file; i found the filever.exe utility, but then discovered it is not...
Vista General
is it possible to determine file mime type?
Hallo to everybody. I'd like to know if it's possible to loop a folder searching for a specific kind of file based on its mime type and not on its...
PowerShell
Determine File Version of a dll
I could use filever.exe to determine the above. Is there any .net classes to determine this via powershell ?
PowerShell
How can I determine if an install version is 32bit or 64 bit?
I am interested in purchasing an upgrade version of Vista Home Premium. However, the person selling the product doesn't know if it will install the...
Vista installation & setup
Determine which version of MS-Excel is installed
I need a VBScript that would determine which version of MS-Excel is currently installed. Our users would either have 2003 or 2007. Is there a folder...
VB Script
Determine installed SQL Version and Edition
I am looking for a way to determine the version and edition of SQL installed on all servers in my environment. I know the following can get the...
VB Script