or open a command prompt and paste these lines in and press return/enter.... Code: REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "EditionID" REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "CompositionEditionID" this will query the registry and give results, the one with the '16,' is the the one i am trying to see what is stored there as the routine seems to chop off anything after the '16,' so it not show... Technically they should both have the same edition name, ie Professional.
Show this Spoiler C:\Windows\system32>REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "EditionID" HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion EditionID REG_SZ Professional C:\Windows\system32>REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v "CompositionEditionID" HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion CompositionEditionID REG_SZ Professional
hmm interesting, that area is correct. Not a clue where the 16, bit is coming from! I can add a check and exclude that result so it at least stops the wrong info. Will just edit QT's code and post a new beta link. Thanks for checking. I not use the CompositionID check in the QT just wanted to see if there was a difference...
Ok QT 37 beta 2, all being well the little tweak might just work, tested with dummy info to see how it reacts and it now parses better.. A two stage process, only adds a few milliseconds. Code: Link removed I will nail this one way or another
still same Spoiler MRP - OEM Query Tool v37.0 {BETA 2} Enhanced -- 12/12/2017 -- 9:23pm ------------------------------------------- - Basic OEM Information For This Computer - ------------------------------------------- OS Name - Windows 10 Pro x64 OS Edition {Registry} - Professional OS Edition {Switched} - 16, OS Build Number - 16299 OS Update Build Revision - 98 OS Language Name/Code - en-US / Dec:1033 {Hex:409} OS Locale - en-ID OS Language Value - ZZZ OS Installation Date - 09/12/2017 17:16:00 CPU Name - Intel{R} Core{TM} i3 CPU M 350 @ 2.27GHz CPU Description - Intel64 Family 6 Model 37 Stepping 5 CPU Architecture - 32/64 Bit Instruction Set CPU Cores/Threads - [2] / [4] HDD Mode/Partition - [AHCI] / [MBR] Bios Version - [_ASUS_, Undefined Date] Total Physical Memory - [3885 Mb] Available Memory - [1518 Mb] GPU Primary Adaptor Name - [Intel{R} HD Graphics] -------------------- - Scanned DMI/BIOS - -------------------- #01 CSProduct Name - K42F #09 SLIC Information - 2.1 #02 CSModel Name - K42F #10 Product Key - Not Shown On Saved Report #03 CSBaseboard Prod - K42F #11 MSDM Key - No MSDM Table Detected #04 CSProduct Vendor - ASUSTeK Computer Inc. #11 MSDM Edition - Undefined #05 CSManufacturer - ASUSTeK Computer Inc. #11 MSDM Brand Name - Undefined #06 Baseboard MFR - ASUSTeK Computer Inc. #12 BIOS/Boot Mode - Legacy/MBR #07 Serial/Service Tag - Not Shown On Saved Report #13 Certificate - Not Present #08 BIOS or SLIC ID - _ASUS_ #14 License Status - Licensed {Retail/Digital License} ----------- - Summary - ----------- OEM Theme/Branding - Asus [id: #04] OEM Activation Vista/7 - Asus [id: #08] Valid OEM Consumer OS - Vista/Win7 Only .Net Versions Detected - v1.1.4322 v2.0.50727 v3.5 v4.0.30319 v4.7.02556 Powershell Version{s} - 1.0, 2.0, 3.0, 4.0, 5.0, 5.1 License Status Reason - 0x4004F401: This computer has a valid Digital/Store License. Other Notes: - Possible Edition switch detected. ** End of Query Tool report. **
I am out of ideas! I even check for a comma and if present in the result to set the variable to null so it gets ignored. ok.. got a idea....
Code: Link Deleted In the switched line it will have quotes around it to show me if any extra spaces etc are present. I have checked for 16, and tweaked the code to set as null if found so the line may not show.
the result Spoiler MRP - OEM Query Tool v37.0 {BETA 3} Enhanced -- 12/12/2017 -- 9:59pm ------------------------------------------- - Basic OEM Information For This Computer - ------------------------------------------- OS Name - Windows 10 Pro x64 OS Edition {Registry} - Professional OS Edition {Switched} - "16," OS Build Number - 16299 OS Update Build Revision - 98 OS Language Name/Code - en-US / Dec:1033 {Hex:409} OS Locale - en-ID OS Language Value - ZZZ OS Installation Date - 09/12/2017 17:16:00 CPU Name - Intel{R} Core{TM} i3 CPU M 350 @ 2.27GHz CPU Description - Intel64 Family 6 Model 37 Stepping 5 CPU Architecture - 32/64 Bit Instruction Set CPU Cores/Threads - [2] / [4] HDD Mode/Partition - [AHCI] / [MBR] Bios Version - [_ASUS_, Undefined Date] Total Physical Memory - [3885 Mb] Available Memory - [1657 Mb] GPU Primary Adaptor Name - [Intel{R} HD Graphics] -------------------- - Scanned DMI/BIOS - -------------------- #01 CSProduct Name - K42F #09 SLIC Information - 2.1 #02 CSModel Name - K42F #10 Product Key - Not Shown On Saved Report #03 CSBaseboard Prod - K42F #11 MSDM Key - No MSDM Table Detected #04 CSProduct Vendor - ASUSTeK Computer Inc. #11 MSDM Edition - Undefined #05 CSManufacturer - ASUSTeK Computer Inc. #11 MSDM Brand Name - Undefined #06 Baseboard MFR - ASUSTeK Computer Inc. #12 BIOS/Boot Mode - Legacy/MBR #07 Serial/Service Tag - Not Shown On Saved Report #13 Certificate - Not Present #08 BIOS or SLIC ID - _ASUS_ #14 License Status - Licensed {Retail/Digital License} ----------- - Summary - ----------- OEM Theme/Branding - Asus [id: #04] OEM Activation Vista/7 - Asus [id: #08] Valid OEM Consumer OS - Vista/Win7 Only .Net Versions Detected - v1.1.4322 v2.0.50727 v3.5 v4.0.30319 v4.7.02556 Powershell Version{s} - 1.0, 2.0, 3.0, 4.0, 5.0, 5.1 License Status Reason - 0x4004F401: This computer has a valid Digital/Store License. Other Notes: - Possible Edition switch detected. ** End of Query Tool report. ** and this log when install win 10 Spoiler Multi-OEM/Retail Project Version : 171203-R76.0 - BaseLine [MRP/MDL] Required project files extracted successfully. OEM's folder detected, structure appears OK. Detected Config File - Checking For User Options... - Options Pre-Check Completed. MRP Logging Mode : Enhanced Confirm File Delete : Enabled W10 TitleBar Color : Enabled - Title Bars will be colorized to Blue. Hi-Lite Colorization : Enabled - Hi-Lited Text will be colorized to Grey. CustomTheme option : Enabled - Using 'Asus' defined in the MRPConfig file. 'ThisPC' On Desktop : Enabled OS Installation Date/Time: Sat 12/09/2017 -- 02:14am [OSINF] ======================= [OSINF] Detected OS Information [OSINF] ======================= [OSINF] Version Installed : Windows 10 Pro x64 [OSINF] Edition {Registry} : Professional [OSINF] Edition {WMIC} : Professional [OSINF] Build Information : 16299.15.amd64fre.rs3_release.170928-1534 [OSINF] Update Build Revision : 15 {Baseline Release} [OSINF] Edition Language/Code : en-US / 1033 {409h} [OSINF] Locale : en-US [OSINF] Language Name Value : ENU [OSINF] ======================= [MBINF] ======================= [MBINF] Motherboard Information [MBINF] ======================= [MBINF] #01 CS Product Name : [K42F] [MBINF] #02 CS Model Name : [K42F] [MBINF] #04 CS Vendor Name : [ASUSTeK Computer Inc.] [MBINF] #05 CS System Name : [ASUSTeK Computer Inc.] [MBINF] #06 Baseboard Name : [ASUSTeK Computer Inc.] [MBINF] #08 BIOS or SLIC ID : [_ASUS_] [MBINF] #09 SLIC Version : [v2.1] [MBINF] ======================= [CMINF] ======================= [CMINF] CPU/Memory Information [CMINF] ======================= [CMINF] CPU Name/Type : [Intel{R} Core{TM} i3 CPU M 350 @ 2.27GHz] [CMINF] CPU Description : [Intel64 Family 6 Model 37 Stepping 5] [CMINF] CPU Architecture : [32/64 Bit Instruction Set] [CMINF] CPU Cores/Threads : [2] / [4] [CMINF] Total Physical Memory : [3885 Mb] [CMINF] Available Memory : [3385 Mb] [CMINF] ======================= [HDTYP] Info: HDD Detected. [SATOU] -> Show User options enabled/applied. [FEXTS] Show File Extensions option enabled. [REMSC] Remove '-Shortcut' reference from icons option enabled. [GO2TP] Launch To 'ThisPC' instead of 'Quick Access' view option enabled. [APPDT] Apps use 'Dark Theme' option enabled. [MTTBT] Extra TaskBar Transparency option enabled. [AWLBM] Use 'F8' Legacy Boot Menu tweak applied. [SVROS] -> Detecting Server Kernel number. [USERL] System Drive user rename option enabled, 'Local Disk' changed to 'Win 10'. [PKEIC] -> PID.txt/ei.cfg Detection. [PKEIC] The PID.txt file was not detected. [PKEIC] The ei.cfg file "D:\Sources\EI.cfg" was detected. [CKDMI] Querying BIOS for any manufacturer brand information. [THMOK] Asus [#04] manufacturer detected. Defined CustomTheme 'Asus' will override this. [UDPNA] User defined 'Computer Model Name' option has been enabled. [CHKMN] Computer Model Name: 'K42F' has been applied. [BRND1] -> Branding Extra Checks Section. [RETXT] Retail.txt detected indicating retail online activation will be used instead of OEM activation. [RETXT] You will need to enter your own product key after setup has completed to activate your OS. [FTHWD] CustomTheme processing. [USRFT] User selected CustomTheme 'Asus' will be applied. [THMMS] -> OEM Brand Transfer Management Section. [WPCHK] Wallpaper.jpg transferred. [BGDFC] Desktop backgrounds folder created. [BGDFC] BackgroundDefault.jpg created from Wallpaper.jpg. [W8XAP] -> Windows 10: User Account Picture Management {1}. [RMXML] OOBE.xml file processed. [UBREP] User.bmp replaced. [UPREP] User.png replaced. [UPREP] User-40.png replaced. [WXAP2] -> Windows 10: User Account Picture Management {2}. [UPREP] User-32.png replaced. [UPREP] User-48.png replaced. [UPREP] User-192.png replaced. [WX81S] Lock Screen {img105.jpg} replaced. Original renamed as img0105.jpg. [WX81S] Log-In Background {img100.jpg} replaced. Original renamed as img0100.jpg. [OTFTS] -> OEM Theme Files Transfer Section. [OTFTS] OEM theme folder has been created. [OTFTS] OEM files have been transferred. [USCTA] User specified 'Asus' theme has been applied. [BSHCS] Branding script has completed. [ADMAN] Add-On Manager: Started. [SATOU] -> Show User options applied. [FEXTS] Show File Extensions tweak applied. [REMSC] Remove '-Shortcut' on icons tweak applied. [GO2TP] LaunchTo 'ThisPC' instead of 'Quick Access' tweak applied. [APPDT] Apps use 'Dark Theme' tweak applied. [MTTBT] Extra TaskBar Transparency tweak applied. [CMSDM] Querying BIOS for MSDM data. [CMSDM] No MSDM Table/Key detected in BIOS. [CMSDM] Retail.txt detected, any MSDM key detected will be saved only. [USRAC] Windows 10: Enhanced Log-On screen has been enabled. [WXSTB] Windows 10: 'Blue' Title Bar Colorization applied. [WXSHL] Windows 10: 'Grey' Hi-Lite Text Color applied. [USRAC] 'User Account Picture' registry entry applied. [USRRO] Windows 'Registered Owner' {Winver} registry entry corrected. [USRD0] Detected 'defaultuser0', removal process started. [RDUPM] Removal of 'defaultuser0' account completed. [AMBPS] -> Checking BIOS/Boot mode and OS HDD/SDD partition type. [AMBPS] BIOS/Boot Mode : Legacy [AMBPS] Partition Type : MBR [AMHDC] SSD/HDD Mode : AHCI [CHKLS] -> Check if Windows is activated/licensed. [CHKLS] License Status: Notification [OSLRC] License Status Reason Code: 0xC004F034 [OSLRT] License not found/invalid or could not connect to the Activation Server. [CHKLS] Online connection maybe required to complete activation. [ADMAN] Add-On Manager: Completed. [CLNUP] MRP Clean Up Routine Processed. ========================================================================================= = Please Note: It is advisable to log out or reboot your computer when possible to = = allow Windows 10 to finalize any settings/User Pictures etc. = = = = If you have used any tweak options within the configuration file then = = it is required to do a log out or reboot cycle to allow these options = = to take effect. = ========================================================================================= The Multi-OEM/Retail Project has completed.
OS Edition {Switched} - "16," so no other characters in the returned result which is good. But it is confusing me why the QT is picking up the "16," in the first place as my code even looks for a comma even "16," exactly and for some reason it is still showing the 16, ?? Regarding the serial i am not sure, even so if it accepted it and the QT would detect the key or change... This has me really head scratching!
Well i might have a clue... The check for edition is done twice , so have altered the code to do the editionID check in that 2nd area too... Just doing a test.... Its done twice because the reason code section uses it... Test shows it not caused any problems in the other area so will upload...
result Spoiler MRP - OEM Query Tool v37.0 {BETA 4} Enhanced -- 12/12/2017 -- 10:37pm ------------------------------------------- - Basic OEM Information For This Computer - ------------------------------------------- OS Name - Windows 10 Pro x64 OS Edition {Registry} - Professional OS Build Number - 16299 OS Update Build Revision - 98 OS Language Name/Code - en-US / Dec:1033 {Hex:409} OS Locale - en-ID OS Language Value - ZZZ OS Installation Date - 09/12/2017 17:16:00 CPU Name - Intel{R} Core{TM} i3 CPU M 350 @ 2.27GHz CPU Description - Intel64 Family 6 Model 37 Stepping 5 CPU Architecture - 32/64 Bit Instruction Set CPU Cores/Threads - [2] / [4] HDD Mode/Partition - [AHCI] / [MBR] Bios Version - [_ASUS_, Undefined Date] Total Physical Memory - [3885 Mb] Available Memory - [1166 Mb] GPU Primary Adaptor Name - [Intel{R} HD Graphics] -------------------- - Scanned DMI/BIOS - -------------------- #01 CSProduct Name - K42F #09 SLIC Information - 2.1 #02 CSModel Name - K42F #10 Product Key - Not Shown On Saved Report #03 CSBaseboard Prod - K42F #11 MSDM Key - No MSDM Table Detected #04 CSProduct Vendor - ASUSTeK Computer Inc. #11 MSDM Edition - Undefined #05 CSManufacturer - ASUSTeK Computer Inc. #11 MSDM Brand Name - Undefined #06 Baseboard MFR - ASUSTeK Computer Inc. #12 BIOS/Boot Mode - Legacy/MBR #07 Serial/Service Tag - Not Shown On Saved Report #13 Certificate - Not Present #08 BIOS or SLIC ID - _ASUS_ #14 License Status - Licensed {Retail/Digital License} ----------- - Summary - ----------- OEM Theme/Branding - Asus [id: #04] OEM Activation Vista/7 - Asus [id: #08] Valid OEM Consumer OS - Vista/Win7 Only .Net Versions Detected - v1.1.4322 v2.0.50727 v3.5 v4.0.30319 v4.7.02556 Powershell Version{s} - 1.0, 2.0, 3.0, 4.0, 5.0, 5.1 License Status Reason - 0x4004F401: This computer has a valid Digital/Store License. ** End of Query Tool report. **
Yes!!! Just got to remove my test bits and i think this has been sorted Phew! Now i have said that something else will appear lol.
Just removed my test code and converted to QT 37 RC .... Will check then upload this final test (sorry about this), and if all sorted then it will become the release version.
The Language ZZZ is one that WMIC returns when i think the OS language has non standard characters. I may check for ZZZ and remove that line if detected as the limitations of batch and some API calls seems to be showing now.
Will be a few minutes as i have corrupted my QT main code grr , now have to use the backup and re-edit the parts...
Code: Link Removed - Finalizing code... Ok fingers crossed the code works. Have adjusted the language ZZZ to not show or say N/A if it cannot be determined. A quick bodge i know but for now i have no idea how to get around that!
finally fix Spoiler MRP - OEM Query Tool v37.0 {RC1} Enhanced -- 12/12/2017 -- 11:18pm ------------------------------------------- - Basic OEM Information For This Computer - ------------------------------------------- OS Name - Windows 10 Pro x64 OS Edition {Registry} - Professional OS Build Number - 16299 OS Update Build Revision - 98 OS Language Name/Code - en-US / Dec:1033 {Hex:409} OS Locale - en-ID OS Installation Date - 09/12/2017 17:16:00 CPU Name - Intel{R} Core{TM} i3 CPU M 350 @ 2.27GHz CPU Description - Intel64 Family 6 Model 37 Stepping 5 CPU Architecture - 32/64 Bit Instruction Set CPU Cores/Threads - [2] / [4] HDD Mode/Partition - [AHCI] / [MBR] Bios Version - [_ASUS_, Undefined Date] Total Physical Memory - [3885 Mb] Available Memory - [1099 Mb] GPU Primary Adaptor Name - [Intel{R} HD Graphics] -------------------- - Scanned DMI/BIOS - -------------------- #01 CSProduct Name - K42F #09 SLIC Information - 2.1 #02 CSModel Name - K42F #10 Product Key - Not Shown On Saved Report #03 CSBaseboard Prod - K42F #11 MSDM Key - No MSDM Table Detected #04 CSProduct Vendor - ASUSTeK Computer Inc. #11 MSDM Edition - Undefined #05 CSManufacturer - ASUSTeK Computer Inc. #11 MSDM Brand Name - Undefined #06 Baseboard MFR - ASUSTeK Computer Inc. #12 BIOS/Boot Mode - Legacy/MBR #07 Serial/Service Tag - Not Shown On Saved Report #13 Certificate - Not Present #08 BIOS or SLIC ID - _ASUS_ #14 License Status - Licensed {Retail/Digital License} ----------- - Summary - ----------- OEM Theme/Branding - Asus [id: #04] OEM Activation Vista/7 - Asus [id: #08] Valid OEM Consumer OS - Vista/Win7 Only .Net Versions Detected - v1.1.4322 v2.0.50727 v3.5 v4.0.30319 v4.7.02556 Powershell Version{s} - 1.0, 2.0, 3.0, 4.0, 5.0, 5.1 License Status Reason - 0x4004F401: This computer has a valid Digital/Store License. ** End of Query Tool report. **