I do remember having this issue with Win7 and using the FOR command for searching volumes within a batch file. Once it hit the empty volume of the CR it would stop with an error. I was searching for my USB WinPE install key at the time. I found some AutoIT code that I modded to find my key. It uses the WMI Service & logicaldisk. The disk order can also randomly change in win7 even though the assigned volumes remain. There is a KB at MS about it.
Hello here ! Thanks for your work I need a little help, I want to change the Lock Screen in OOBE for the last Windows Build (1709), and my last script didn't work : OOBE.cmd Code: takeown /f %SystemRoot%\WEB\Screen\*.* icacls %SystemRoot%\WEB\Screen\*.* /Grant System:(F) del /q %SystemRoot%\WEB\Screen\*.* copy %~dp0img100.jpg %SystemRoot%\WEB\Screen\img100.jpg RMDIR /S /Q "%WINDIR%\Setup\Scripts" exit Windows maked always a custom wallpaper Thanks for your help !
@Chibi ANUBIS , Code: TAKEOWN /F "%windir%\Web\Screen\img100.jpg" >nul ICACLS "%windir%\Web\Screen\img100.jpg" /reset /T /Q >nul Then you should be able to delete/rename old img100.jpg and replace with your custom image. The above code is used in the project to do the change over for the lock (img100) and log-in (img105) the MRP does both 100 & 105 images. You was close with icacls %SystemRoot%\WEB\Screen\*.* /Grant System : (F) but it not always 'grant' the permissions. The method in the code tag above should work.
Well so far so good with testing, the Sony laptop i was using has a SD card Slot and one of the Sony MemStick slots, on RC5 it ignored them as nothing was in those slots and correctly detected the ei.cfg, (using the same FOR loop routine as the PID check), in the usb D: i was using. I have tested some code about WMIC logicaldisk to determine type 2 or 5 (those being removable/usb and CD/DVD drives) but what if you are using a mounted image or a network drive to install windows from? - this gets overly complicated as there are so many variables to consider and would be a pain to add in. So for now the code that is in does seem to work as intended (fingers crossed). As more testing needs to be done once i can get a older Acer X1301 with a multi-sd reader to work as at present it not even giving me any BIOS Post Codes to indicate what the fault is! If i can get that pc to work i can test windows 7 with RC5 to see if it will fail or succeed. Then take it from there. Was hoping to release 78.0 today but looks like it will be delayed for now...
It seems it is just Windows 7 that has the hiccup. Just building up a PC with a Asus P5N32 Deluxe board and have the multi-sd card reader from the broken Acer connected up to test to see if it plays up... Fun has started already as it not booting from a USB lol Got to the setup edition selection screen finally... Copying files blah blah.. The boot menu to get to choose the usb drive shown the multi flash cards (as it calls it) so that part is working... So will see during the setup if that causes any problems. This might take a while as it so slow copying files...
Looks like a success! Screen pic attched to show the E: & F:\ Multi-SD-Reader thing. The drives not show in My Computer screen i see the C: and D: drives not the E: F: only those show in the Device Manager screen. If i put a sd card in then it will show it as E: as it first in the order. Spoiler: w7 78.0 RC log Code: Multi-OEM/Retail Project Version : 171214-R78.0.RC5 - RC [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 Show 'My Computer' On Desktop : Enabled OS Installation Date/Time : 15/12/2017 -- 4:49pm [OSINF] ======================= [OSINF] Detected OS Information [OSINF] ======================= [OSINF] Version Installed : Windows 7 Professional x64 [OSINF] Edition {Registry} : Professional [OSINF] Edition {WMIC} : Professional [OSINF] Build Information : 7601.23807.amd64fre.win7sp1_ldr.170512-0600 [OSINF] Edition Language/Code : en-US / 1033 {409h} [OSINF] Locale : en-GB [OSINF] Language Name Value : ENG [OSINF] ======================= [MBINF] ======================= [MBINF] Motherboard Information [MBINF] ======================= [MBINF] #01 CS Product Name : [P5B32-SLI-SE ] [MBINF] #02 CS Model Name : [P5B32-SLI-SE ] [MBINF] #04 CS Vendor Name : [ASUSTek Computer ] [MBINF] #05 CS System Name : [ASUSTek Computer ] [MBINF] #06 Baseboard Name : [ASUSTeK Computer INC.] [MBINF] #08 BIOS or SLIC ID : [_ASUS_] [MBINF] #09 SLIC Information : [v2.1] [MBINF] ======================= [CMINF] ======================= [CMINF] CPU/Memory Information [CMINF] ======================= [CMINF] CPU Name/Type : [Intel{R} Celeron{R} CPU E1200 @ 1.60GHz] [CMINF] CPU Description : [Intel64 Family 6 Model 15 Stepping 13] [CMINF] CPU Architecture : [32/64 Bit Instruction Set] [CMINF] CPU Cores/Threads : [2] / [2] [CMINF] Total Physical Memory : [4095 Mb] [CMINF] Available Memory : [3651 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. [AMSRT] Disable 'Malicious Software Removal Tool' tweak applied. [AUTOL] MRP System Drive rename option enabled, 'Local Disk' changed to 'Windows_7_Pro'. [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. [DSLIC] Detecting any SLIC information. [SCKV7] Asus [#08] SLIC manufacturer found for possible Windows 7 OEM activation. [THMOK] Asus [#04] manufacturer detected for automated theme/branding. [CHKKD] -> Checking database for OEM-SLP Product Key. [KEYOK] Asus OEM-SLP Product Key found and applied. [XRMAN] -> OEM XRM-MS Certificate Management. [XRMOK] Asus {C3} XRM-MS OEM Certificate will be applied. [OEASC] OEM activation subroutine created. [OASHC] OEM activation subroutine has completed. [CHKMN] Computer Model Name: Undefined. [BRND1] -> Branding Extra Checks Section. [USRFT] CustomTheme option was not used. [X64RF] Registry fix for x64 theme applied. [THMMS] -> OEM Brand Transfer Management Section. [WPCHK] Wallpaper.jpg transferred. [BGDFC] Desktop backgrounds folder created. [BGDFC] BackgroundDefault.jpg created from Wallpaper.jpg. [UBREP] User.bmp replaced. [OTFTS] -> OEM Theme Files Transfer Section. [OTFTS] OEM theme folder has been created. [OTFTS] OEM files have been transferred. [ATHBA] 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. [AMBPS] -> Checking BIOS/Boot mode and OS HDD/SDD partition type. [AMBPS] BIOS/Boot Mode : Legacy [AMBPS] Partition Type : MBR [AMHDC] SSD/HDD Mode : IDE [CHKLS] -> Check if Windows is activated/licensed. [CHKLS] License Status: Licensed [AMUTC] UserTweaks.cmd file is present. [AMUTC] UserTweaks completed without errors. [ADMAN] Add-On Manager: Completed. [CLNUP] MRP Clean Up Routine Processed. ========================================================================================= = Please Note: It is advisable to logout or reboot your computer when possible to = = allow Windows to finalize any settings. = = = = 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.
Just putting all the bits together and changing status from RC to Baseline, the changelog etc. Will post details soon.
MRP v78.0 has been uploaded and first post password has been updated. Quick Summary + Better SLIC detection - hopefully mentions if there is a duff SLIC table. + Hopefully fixed the Windows 7 and SD Card Reader glitch, all tests seems to say it has. Thanks to @bios83 , for mentioning it. + Aligned text area at the top of the Project.log so it looks neater. + Few other code tweaks that i can't remember lol. + Moved MRPConfigCreator folder to main folder in the archive to find it easier. Spoiler: W7 78.0 Baseline log Used a PID.txt file with a non working key to see what happens, it didn't activate which is what i had expected. But MRP detected the PID.txt and bypassed the SLP key. Code: Multi-OEM/Retail Project Version : 171215-R78.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 Show 'My Computer' On Desktop : Enabled OS Installation Date/Time : 15/12/2017 -- 6:22pm [OSINF] ======================= [OSINF] Detected OS Information [OSINF] ======================= [OSINF] Version Installed : Windows 7 Professional x64 [OSINF] Edition {Registry} : Professional [OSINF] Edition {WMIC} : Professional [OSINF] Build Information : 7601.23807.amd64fre.win7sp1_ldr.170512-0600 [OSINF] Edition Language/Code : en-US / 1033 {409h} [OSINF] Locale : en-GB [OSINF] Language Name Value : ENG [OSINF] ======================= [MBINF] ======================= [MBINF] Motherboard Information [MBINF] ======================= [MBINF] #01 CS Product Name : [P5N32-SLI-SE-Deluxe ] [MBINF] #02 CS Model Name : [P5N32-SLI-SE-Deluxe ] [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 Information : [v2.1] [MBINF] ======================= [CMINF] ======================= [CMINF] CPU/Memory Information [CMINF] ======================= [CMINF] CPU Name/Type : [Intel{R} Celeron{R} CPU E1200 @ 1.60GHz] [CMINF] CPU Description : [Intel64 Family 6 Model 15 Stepping 13] [CMINF] CPU Architecture : [32/64 Bit Instruction Set] [CMINF] CPU Cores/Threads : [2] / [2] [CMINF] Total Physical Memory : [4095 Mb] [CMINF] Available Memory : [3645 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. [AMSRT] Disable 'Malicious Software Removal Tool' tweak applied. [AUTOL] MRP System Drive rename option enabled, 'Local Disk' changed to 'Windows_7_Pro'. [PKEIC] -> PID.txt/ei.cfg Detection. [PKEIC] The PID.txt file "E:\Sources\PID.txt" was detected. [PKEIC] The ei.cfg file was not detected. [CKDMI] Querying BIOS for any manufacturer brand information. [DSLIC] Detecting any SLIC information. [SCKV7] Asus [#08] SLIC manufacturer found for possible Windows 7 OEM activation. [THMOK] Asus [#04] manufacturer detected for automated theme/branding. [CHKKD] -> Checking database for OEM-SLP Product Key. [PIDFD] Note: PID.txt file present, OEM-SLP key processing will be bypassed. [CHKMN] Computer Model Name: Undefined. [BRND1] -> Branding Extra Checks Section. [USRFT] CustomTheme option was not used. [X64RF] Registry fix for x64 theme applied. [THMMS] -> OEM Brand Transfer Management Section. [WPCHK] Wallpaper.jpg transferred. [BGDFC] Desktop backgrounds folder created. [BGDFC] BackgroundDefault.jpg created from Wallpaper.jpg. [UBREP] User.bmp replaced. [OTFTS] -> OEM Theme Files Transfer Section. [OTFTS] OEM theme folder has been created. [OTFTS] OEM files have been transferred. [ATHBA] 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. [AMBPS] -> Checking BIOS/Boot mode and OS HDD/SDD partition type. [AMBPS] BIOS/Boot Mode : Legacy [AMBPS] Partition Type : MBR [AMHDC] SSD/HDD Mode : IDE [CHKLS] -> Check if Windows is activated/licensed. [CHKLS] License Status: Out-of-Box Grace [OSLRC] License Status Reason Code: 0x4004F00C [OSLRT] This computer is in 'Out-Of-Box' Grace allowance. [CHKLS] System reboot maybe required to complete activation. [AMUTC] UserTweaks.cmd file is present. [AMUTC] UserTweaks completed without errors. [ADMAN] Add-On Manager: Completed. [CLNUP] MRP Clean Up Routine Processed. ========================================================================================= = Please Note: It is advisable to logout or reboot your computer when possible to = = allow Windows to finalize any settings. = = = = 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. Just the Query Tool to finalize and that be it until after the festivities.
Query Tool v38.0 Uploaded and first post password updated. + Better Edition switch detection. Three way checks are done now to be a lot more accurate. + Other tweaks that i can't remember as busy with main MRP code. Plus lost my notes! That's it until after the festivities barring any major bugs. I will still be around just having a well earned break. The QT was actually finalized yesterday but was a bit busy with sorting the MRP.
Test Query Tool v.38.0 Spoiler: MRPQTv38.0 MRP - OEM Query Tool v38.0 Enhanced -- 16/12/2017 -- 11:33am ------------------------------------------- - Basic OEM Information For This Computer - ------------------------------------------- OS Name - Windows 10 Pro x64 OS Edition {Registry} - Professional OS Build Number - 16299 OS Update Build Revision - 125 OS Language Name/Code - en-US / Dec:1033 {Hex:409} OS Locale - en-ID OS Installation Date - 15/12/2017 10:00:10 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 - [1027 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. **
Bios Version - [_ASUS_ , Undefined Date] Undefined date or other such wording means either the date is in a non standard format or the WMIC call used cannot get any valid data/empty return value. It could also indicate a SLIC mod, although the Asus K42F looks like it had Windows 7 pre installed at factory. Lenovo is another make that can have strange BIOS Version data, there may be others. It's nothing to worry about as it may even mean that the data is stored in a different location in the bios. Purely cosmetic and does not affect the QT or even MRP. The important part is the Summary area where it shows what type of branding/activation would be done using MRP.
My laptop is actually the A42F series but I update BIOS using K42F series from in here to get SLIC 2.1 I think it's not because of the Query Tool v.38.0 bug
ah so i was correct in saying it could be a SLIC bios mod The QT is quite informative , just sometimes it gets a bit cloudy determining what is presented.
maybe for the next version Query Tool You can add information whether the SLIC on the BIOS is MOD or not
Ran on my main computer. Works fine and all but question; All good with line below? Im using an SSD in MBR HDD Mode/Partition - [NVMe/eMMC/Other] / [MBR] Code: MRP - OEM Query Tool v38.0 Enhanced -- 2017-12-16 -- 5:01pm ------------------------------------------- - Basic OEM Information For This Computer - ------------------------------------------- OS Name - Windows 10 Pro x64 OS Edition {Registry} - Professional OS Build Number - 15063 OS Update Build Revision - 726 OS Language Name/Code - sv-SE / Dec:1053 {Hex:41D} OS Locale - sv-SE OS Language Value - SVE OS Installation Date - 2017-06-18 14:24:19 CPU Name - Intel{R} Core{TM} i5-4570 CPU @ 3.20GHz CPU Description - Intel64 Family 6 Model 60 Stepping 3 CPU Architecture - 32/64 Bit Instruction Set CPU Cores/Threads - [4] / [4] HDD Mode/Partition - [NVMe/eMMC/Other] / [MBR] Bios Version - [2305, 09/22/2015] Total Physical Memory - [16289 Mb] Available Memory - [11521 Mb] GPU Primary Adaptor Name - [NVIDIA GeForce GTX 1060 6GB] -------------------- - Scanned DMI/BIOS - -------------------- #01 CSProduct Name - All Series #09 SLIC Information - No SLIC Table Detected #02 CSModel Name - All Series #10 Product Key - Not Shown On Saved Report #03 CSBaseboard Prod - B85-PLUS #11 MSDM Key - No MSDM Table Detected #04 CSProduct Vendor - ASUS #11 MSDM Edition - Undefined #05 CSManufacturer - ASUS #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 - ALASKA #14 License Status - Licensed {Retail/Digital License} ----------- - Summary - ----------- OEM Theme/Branding - Asus [id: #04] OEM Activation Vista/7 - Un-Listed Valid OEM Consumer OS - Un-Listed .Net Versions Detected - v1.1.4322 v2.0.50727 v3.5 v4.0.30319 v4.7.02046 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. **
I mentioned it was a simple check, not all SSD's give back the information in the same way. The check looks for certain criteria such as if connected to IDE or AHCI via a simple WMIC call, if returns neither it says the NVMe/eMMC/Other line instead as a fall back. I will write a better routine at some point. Its only general info in the top part. My main pc has a SSD and in MBR mode too.
Not necessary, it was just a thought I had Lets not update QT just yet, been bit overwhelming with new (yet great) updates
LOL nah no updates to the QT/MRP will be done before the new year starts, unless there is a critical bug. If it a cosmetic one it can wait until 2018
It not always as easy to determine a BIOS SLIC mod, as some are done Dynamically (like the OEM's do), others are Static SSV/1/2/3 etc.