[VBScript] Microsoft Windows 10 Operating System ID Script

Discussion in 'Scripting' started by 38956, Jan 20, 2018.

  1. 38956

    38956 MDL Member

    Jun 7, 2010
    130
    138
    10
    #1 38956, Jan 20, 2018
    Last edited: Jun 16, 2018
    Microsoft Windows 10 Operating System ID Script

    This VBScript will retrieve information about the Windows 10 Operating System (via WMI) so you can ID which release/version you have.

    The information retrieved will be saved to a xml file in the same directory as this script and linked to a xsl stylesheet

    [Old Script [18.01]: The information will echo to screen then saved to a text file in the same directory as this script.]​


    [> Requires Windows Version 10 <]


    This script uses the following via WMI
    • Win32_OperatingSystem
    • StdRegProv (System Registry Provider)

    [These are only used if sub procedures are enabled]

    SoftwareLicensingService [ Retrieve OA3 information ] > Untested <
    SoftwareLicensingProduct [ Retrieve Partial Product Key and License Channel (RETAIL, OEM-DM ect..) ] # NOTE: SLOWS DOWN SCRIPT
    Win32_ComputerSystem [ Retrieve Computer Identification information ]
    Win32_ComputerSystemProduct [ Retrieve Computer Identification information ]
    Win32_BaseBoard [ Retrieve Computer Identification information ]
    Win32_BIOS [ Retrieve as part of Computer Identification information ]
    Win32_SystemDriver (for UEFI Driver) [ Retrieve as part of Computer Identification information ] # xml file without xsl stylesheet

    command line arguments/switches [for 18.06 #002A ]
    • /id [ Retrieve Computer Identification information ]
    • /oa3 [ Retrieve OA3 information ]
    • /slp [ Retrieve Software Licensing Product information ] # SLOWS DOWN SCRIPT
    • /nonote [ suppress file created notification ]
    • /nolnk [ remove xsl stylesheet link from xml file ]
    • /desktop [ Saves xml file to current users desktop without stylesheet ]

    Download Link(s)

    • 18.06 #003A
      • Download Links: [ DataFileHost: 7z | sfx: Self-extracting archive (exe) ] [ ZippyShare: 7z | sfx: Self-extracting archive (exe) ]
        • File Type: 7-zip || File name: MSWin10OS-ID.[18.06#003A].7z
          SHA-256: 010BD6CF246C31099F9212737F4C489F7EBB1B596812B919190B26D15A516273
        • File Type: sfx(exe) || File name: MSWin10OS-ID.[18.06#003A].exe
          SHA-256: EE06B650561148BBEA9E72D331FECD27D650DD5739074E9337572E95973E9870
        • File Type: VBScript || File name: MSWin10OS-ID.[18.06#003A].vbs
          SHA-256: B00CDFFA0A6CEA79405132D630EC63B4CD404152377C782D540B54029E32F216
        • File Type: XSL Stylesheet || File name: MSWin10OS-ID.[v0.01].xsl
          SHA-256: FB223F04D3589A99B74A426898910D1E6C73480DDA027C4F608E2F35ED8AD254
    • 18.06 #002A
      • Download Links: ZippyShare 7z | sfx: Self-extracting archive (exe)
        • File Type: 7-zip || File name: MSWin10OS-ID.[18.06].7z
          SHA-256: A108E2115241D7285D05893E7E6AD54048A863B7053C1AAE7720677D1E4B6DF8
        • File Type: sfx(exe) || File name: MSWin10OS-ID.[18.06].exe
          SHA-256: FAD278144584711A6A75C9CE394573B4431824934ADB2AC27EBC7644635E6B3F
        • File Type: VBScript || File name: MSWin10OS-ID.[18.06#002A].vbs
          SHA-256: 2DBA28D0FFA142249311051CF68B6D4CFDFA426DEAA2EF91A8FEE99321C8605E
        • File Type: XSL Stylesheet || File name: MSWin10OS-ID.[v0.01].xsl
          SHA-256: FB223F04D3589A99B74A426898910D1E6C73480DDA027C4F608E2F35ED8AD254
    • 18.01 #03A
      • Download Links: Zippyshare : File Type: VBScript || File name: MSWin10OS-ID [18.01 #03A].vbs
        SHA-256: E3E67E1B8EE4E20AA5FB83CC441AEEDA580FC3CBAF3796A58EA5AB623981B36F
     

    Attached Files:

  2. 38956

    38956 MDL Member

    Jun 7, 2010
    130
    138
    10
    #2 38956, Jan 22, 2018
    Last edited: Jun 16, 2018
    (OP)
    18.06 #002A

    The information retrieved will be saved to a xml file in the same directory as this script and linked to a xsl stylesheet.

    [ These are only used if sub procedures are enabled by using command line arguments/switches ]

    SoftwareLicensingService [ Retrieve OA3 information ] > Untested <
    SoftwareLicensingProduct [ Retrieve Partial Product Key and License Channel (RETAIL, OEM-DM ect..) ] # NOTE: SLOWS DOWN SCRIPT
    Win32_ComputerSystem [ Retrieve Computer Identification information ]
    Win32_ComputerSystemProduct [ Retrieve Computer Identification information ]
    Win32_BaseBoard [ Retrieve Computer Identification information ]
    Win32_BIOS [ Retrieve as part of Computer Identification information ]
    Win32_SystemDriver (for UEFI Driver) [ Retrieve as part of Computer Identification information ] # xml file without xsl stylesheet

    Command line arguments/switches [for 18.06 #002A ]
    • /id [ Retrieve Computer Identification information ]
    • /oa3 [ Retrieve OA3 information ]
    • /slp [ Retrieve Software Licensing Product information ] # SLOWS DOWN SCRIPT
    • /nonote [ suppress file created notification ]
    • /nolnk [ remove xsl stylesheet link from xml file ]
    • /desktop [ Saves xml file to current users desktop without stylesheet ]
    [ Removed ]
    • Echo information to screen
    • Save information to text file

    18.06 #003A


    Code:
      0,"Undefined"
      1,"Ultimate"
      2,"Home Basic"
      3,"Home Premium"
      4,"Enterprise"
      5,"Home Basic N"
      6,"Business"
      7,"Standard Server"
      8,"Datacenter Server"
      9,"Small Business Server"
     10,"Enterprise Server"
     11,"Starter"
     12,"Datacenter Server Core"
     13,"Standard Server Core"
     14,"Enterprise Server Core"
     15,"Enterprise Server IA64"
     16,"Business N"
     17,"Web Server"
     18,"Cluster Server"
     19,"Home Server"
     20,"Storage Express Server"
     21,"Storage Standard Server"
     22,"Storage Workgroup Server"
     23,"Storage Enterprise Server"
     24,"Server For Small Business"
     25,"Small Business Server Premium"
     26,"Home Premium N"
     27,"Enterprise N"
     28,"Ultimate N"
     29,"Web Server Core"
     30,"Medium Business Server Management"
     31,"Medium Business Server Security"
     32,"Medium Business Server Messaging"
     33,"Server Foundation"
     34,"Home Premium Server"
     35,"Server For Small Business V"
     36,"Standard Server V"
     37,"Datacenter Server V"
     38,"Enterprise Server V"
     39,"Datacenter Server Core V"
     40,"Standard Server Core V"
     41,"Enterprise Server Core V"
     42,"Hyper-V"
     43,"Storage Express Server Core"
     44,"Storage Standard Server Core"
     45,"Storage Workgroup Server Core"
     46,"Storage Enterprise Server Core"
     47,"Starter N"
     48,"Professional"
     49,"Professional N"
     50,"SB Solution Server"  ' Small Business Solutions Server
     51,"Server For SB Solutions"
     52,"Standard Server Solutions"
     53,"Standard Server Solutions Core"
     54,"SB Solution Server EM"
     55,"Server For SB Solutions EM"
     56,"Solution Embedded Server"
     59,"Essential Business Server Management"
     60,"Essential Business Server Additional"
     61,"Essential Business Server Management SVC"
     62,"Essential Business Server Additional SVC"
     63,"Small Business Server Premium Core"
     64,"Cluster Server V"
     66,"Starter E"
     67,"Home Basic E"
     68,"Home Premium E"
     69,"Professional E"
     70,"Enterprise E"
     71,"Ultimate E"
     72,"Enterprise Evaluation"
     74,"Prerelease"
     76,"MultiPoint Standard Server"
     77,"MultiPoint Premium Server"
     79,"Standard Evaluation Server"
     80,"Datacenter Evaluation Server"
     84,"Enterprise N Evaluation"
     95,"Storage Workgroup Evaluation Server"
     96,"Storage Standard Evaluation Server"
     97,"Core ARM"
     98,"Core N"
     99,"Core Country Specific"
    100,"Core Single Language"
    101,"Core"
    103,"Professional WMC"  ' Professional with Media Center
    104,"Mobile Core"
    121,"Education"
    122,"Education N"
    123,"IoT UAP"  '  Internet of Things Universal App Platform
    125,"Enterprise S"
    126,"Enterprise S N"
    129,"Enterprise S Evaluation"
    130,"Enterprise S N Evaluation"
    131,"IoT UAP Commercial"  '  Internet of Things Universal App Platform Commercial
    133,"Mobile Enterprise"
    161,"Pro Workstation"  ' Professional/Pro for Workstations
    162,"Pro Workstation N"  ' Professional/Pro for Workstations N
    178,"Cloud"
    179,"Cloud N"
     
  3. blackdeathzc

    blackdeathzc MDL Novice

    Jul 21, 2009
    7
    1
    0
    can you check your link again please. getting empty page after clicking download. only the older script download worked.
    thx for the script
     
  4. 38956

    38956 MDL Member

    Jun 7, 2010
    130
    138
    10
    Thanks for letting me know about the download link not working.

    I've updated the Download link. (Zippyshare)
     
  5. RickC

    RickC MDL Novice

    Sep 1, 2015
    4
    3
    0
    For info, downloads from Zippyshare are blocked by Malwarebytes Premium due to 'malvertising'.
     
  6. parrish

    parrish MDL Junior Member

    Oct 16, 2016
    58
    28
    0
    Thank you... :)
     
  7. 38956

    38956 MDL Member

    Jun 7, 2010
    130
    138
    10
    [18.06 #002A]

    Script updated see posts 1 and 2
     
  8. 38956

    38956 MDL Member

    Jun 7, 2010
    130
    138
    10
    [18.06 #003A]

    Script updated see posts #1 and #2