I will soon be on my way home, i still think your issue could still be that mrp is auto deleting the scripts folder so your firstlogon isnt being run because it is calling the command script via runonce but as the 'scripts' folder has been deleted nothing can run as it all gone by that time. I see your line in setupcomplete.cmd that sets the runonce part to call firstlogon. I will add a line in oobe.cmd for a option to tell mrp NOT to auto delete the 'scripts' folder on completion, this will force set mrp's option so if you not use a ini file for any options then hopefully that will allow your firstlogon script and other items to run, and as in your script cleans up the folder the os is left tidy. I hope the above makes sense. It is awkward to type a long reply on a phone. I will add the new line in oobe.cmd and in mrp 144, so those that not use a config ini file, they can use the 'dont delete scripts folder' override variable to allow their own scripts to run because mrp wont auto wipe the scripts folder thus allowing user scripts to run etc when mrp has finished, also after a reboot which is where the firstlogon is being run.
My test install with the oobe.cmd and MRP 144 RC3a code changes left the Scripts folder alone. The oobe.cmd will have the following lines added: Code: REM Set variable below to Yes to force the do not delete 'Scripts' folder on MRP completion. SET "DontDeleteScriptsFolder=" If you set the variable to Yes then it will tell MRP to not delete the Scripts folder - it works for all supported OS's and it will override the MRPConfig.ini's option for same thing. It basically just allows the Scripts folder to be left alone when MRP finishes regardless if a MRPConfig.ini file is used or not.
@mxman2k Dose the project have an option to change task manager default tab ? while using the project v143 i see task manager default tab changed to details
I had in my old test code - which i will recheck the current code as i had to revert back a few times during v144's development so i may of not removed that code on each revert. Although the test code was to show 'processes' tab, but was not reliable for main stream use due to many factors within each OS. *Edit* Found the offending line(s) of code - removed them now. Totally forgot about that!
Code: rem For Windows 10 - 1903 and later rem 0 Processes , 1 Performance , 2 App history , 4 Users , 5 Details , 6 Services REG add "HKCU\Software\Microsoft\Windows\CurrentVersion\TaskManager" /v "StartUpTab" /t REG_DWORD /d "0" /f >NUL 2>&1 REG add "HKLM\Software\Microsoft\Windows\CurrentVersion\TaskManager" /v "StartUpTab" /t REG_DWORD /d "0" /f >NUL 2>&1 I had set them to 5 by mistake. Run the above two lines in a admin cmd prompt and it should reset them to 'Processes' which i think is the Default tab.
yes man, it works. good job tested with Windows 11 21H2 build 588 Only test in Vmware I am now making a backup, and perform a real installation
Have edited the OP / First post with the information about the oobe.cmd's variable to tell MRP to NOT delete the Scripts folder on completion when using the project without any MRP Tweak options etc. This is for MRP v144.0 and later.
Just been informed by @Enthousiast that the option for disabling the 'network connections during oobe' , and later re-enabling them , causes issues with Server 202x OS's. So have now done a check in MRP v144+ so that if any Server OS is detected being installed then the 'Network disable' option will be auto disabled to prevent such problems. It may be only on the Win 11 Kernel ones but as Server's are more fussy anyway i decided to disable the option for all Server OS's that way no hangs etc will happen due to them not liking the Network disrupted during installation. I did say that MRP 144 would be a bug fixing release, i didn't realize it have as many that sneaked in!
At a rough count 17 bugs of one or another have been sorted... Sorry no new options this time around but as you will agree best to have a project that works as best as possble.
Query Tool v121.0 has been uploaded, 2nd post download link, password and hashes have been updated. Spoiler: QT 121 Summary + Fixed a 'few' internal bugs! + When Windows 11 is detected, the InSpectre program used to check for Meltdown and Spectre is auto disabled as it not fully compatible with the newer OS just yet. + Added the TPM's Vendor name if a TPM is detected, if the name is newer than in the checking list then a numeric value will be shown instead. There maybe a few other bits done but cannot remember, but should make for a better result. MRP144 may be a couple of days before release, i'm almost happy with the changes and fixes.
Code: MRP - Query Tool v121.0 [Compiled: 03/30/2022 {UTC}] -- Date/Time Ran: 03/30/2022 {UTC} -- 9:56pm [DF] ===========================================[ Basic Information For This Computer ]=========================================== ==================================================[ Operating System Info ]================================================== Installation Type : Client {Non Server} Media Installation Method : Clean Version {Full Name} : Microsoft Windows 10 Pro Version {Product Name} : Windows 10 Pro Version {SKU} : Windows Pro {48} Edition {Registry} : Professional Edition {CBS} : Professional Edition {Composition} : Enterprise Edition Build Qfe Value : 1620 {0x654} Architecture : 64 Bit {via AR:1} Base Build Revision Number : 1 {0x1h} Internal Build Number : 19044 Internal Branch Code Name : Vibranium Build Branch Reference : vb_release Cumulative Update Revision : 1620 Release Identifier : 2009 Short Display Version : 21H2 Full Build Information : 19041.1.amd64fre.vb_release.191206-1406 Experience Pack Version : 120.2212.4170.0 Short Reference Version : 10.0.19041.1 ProductID Reference : 3308 Branch Readiness Level : Semi-Annual Channel [Targeted] {CB} {Ref: P4} Feature Update Status : Not paused Quality Update Status : Not paused Portable OS Mode {Win2Go} : No Licenses allocated : 1 HyperVisor Present : False WSH Availability Status : Enabled WSH 'DisplayLogo' Value : Enabled {1} [All Users] Part of a Domain : False Device Role : Standalone Workstation {Ref: 0} VL/KMS Capable/Permitted : Yes General Language Name/Code : en-US / 1033 {0x409} General Language Locale : English - United States General Language Value : BSB Localized Language Name : bs-Latn-BA {UserSID} Multiple OS Language Names : en-US GeoID Nation ISO Location : Bosnia and Herzegovina [25] GeoID Nation CUR Location : Bosnia and Herzegovina [25] Time Zone Data {Registry} : Central European Standard Time Time Zone Data {TzUtil} : Central European Standard Time Using Daylight Saving Mode : Yes Daylight Adjust Clock Mode : Enabled/Checked Original Install Date/Time : srijeda, 9. februar 2022. 16:26:02 {Localized Date Format} Last Boot Up Date/Time : 30. 3. 2022. 07:11:55 {Localized} Total Up Time {hh:mm:ss} : 14:44:30 Dirty/Crash Shutdown Count : 5 Shipped With Reserved 7GiB : No StorageSense Policy : Disabled {0x0} Data Execution Prevention : OptIn/Default {Ref: 2} DEP Available : Yes DEP 32Bit Applications : Yes DEP Drivers : Yes DEP Support Policy : Enabled for OS Kernel, essential binaries and all Windows-based Services. Clipboard History Service : Manual {Value:3} Clipboard History : Enabled {Default} Allow Cross Device History : Enabled {Default} Allow Clipboard History : Enabled {Default} Current Power Policy Used : Home/Office Desk {0} {UserSID} Power Plans Available : Balanced, High Performance, Power Saver Current Active Power Plan : OS Preset or Customized WMIC.exe Command : Present TPM 2.x Bypass Check : No SecureBoot Bypass Check : No Low RAM Bypass Check : No Allow Win 11 WU Upgrade : Yes {Experimental} ====================================================[ BIOS Information ]==================================================== SMBIOS Version : 2.7 Release Date : 12/25/2012 {UTC or as defined by Manufacturer location} Using Primary Chip : Yes ==============================================[ Processor 'CPU0' Information ]============================================== Full Name : Intel{R} Core{TM} i5-3450 CPU @ 3.10GHz {Ref:NVR} Description : Intel64 Family 6 Model 58 Stepping 9 Architecture : 32/64 Bit Current Clock Speed : 3101 Mhz {Approx} Max Clock Speed : 3101 Mhz {Approx} L2 Cache Size : 1024 MiB L3 Cache Size : 6144 MiB Manufacturer ID String : GenuineIntel Family : Core{TM}2 Duo or i5 3rd Generation Series {191} [See notes below] CPUID Signature : 00306A9 Microcode Data : 0000000021000000 Revision : 0x3a09 {hex value} Cores/Threads : 4 / 4 Sockets/CPU's Present : 1 Virtualization Mode : Disabled Notes : Data may vary depending if info is currently available within the database. : Virtual Machines may not have certain CPU data available or internally configured correctly. : Clock Speeds and Cache data are correct at the time of detection. : Family data reference is obtained from SMBIOS, v2.0 to v2.5 is member 1 and later v2.6+ is member 2. ==========================================[ System Drive C: Partition Information ]========================================== BusType : SATA Mode : AHCI {I} Partition Type : GPT Secure Boot Status : Disabled DriveType : SSD {Ref: P} Filesystem : NTFS SSD Trim Status : Enabled for NTFS | Enabled for ReFS Model Name : [Samsung SSD 870 EVO 250GB] -- {Unfiltered} Serial Number : Not Shown On Saved Report Capacity Data : Total: 249 GiB , Avail: 196 GiB {84%} - Approx Values. Health Status : OK - The disk appears to be functioning normally. OS Defrag Service State : Stopped OS Defrag Task Status 1 : Disabled OS Defrag Task Status 2 : Disabled {Localized Wording} Bitlocker Boot Status : Disabled {0x0} Bitlocker Protection : Protection Off Bitlocker Encrypted : Fully decrypted Long File Paths Enabled : No {0x0} NTFS is not set to allow file paths greater than 260 characters. ===================================================[ Memory Information ]=================================================== Type : Non-ECC {3} RAM Design : DDR3 {24} Max Sockets : 4 {May vary depending on the Motherboard's original prototype design or revision} MotherBoard Max Capacity : 32768 MiB {Values of 4GiB or below could mean per slot} Max Amount Per Slot : 8192 MiB Slot0 : ChannelA-DIMM0, 4 GiB, 1600 Mhz, P/N: M378B5173DB0-CK0 Slot1 : ChannelA-DIMM1, 4 GiB, 1600 Mhz, P/N: EL64C1C1624Z1 Slot2 : ChannelB-DIMM0, 4 GiB, 1600 Mhz, P/N: M378B5173DB0-CK0 Slot3 : ChannelB-DIMM1, 4 GiB, 1600 Mhz, P/N: EL64C1C1624Z1 Other Information : Results shown depends on the Chipset's memory array and may not always be accurate. : Values returned may be rounded up to nearest number. =================================================[ MotherBoard Information ]================================================= Type Number : 03 Chassis Type : Desktop PC System Type : 1 Computer UUID : Not Shown On Saved Report Manufacturer : ASUSTeK Product : CM6870 System Model Name : CM6870 Serial Number : Not Shown On Saved Report Security Status : None {Ref: 3} ===============================================[ Basic Graphics Information ]=============================================== Adapter 1 Description : Intel{R} HD Graphics {Ref:w} Adapter 1 Video Memory : 2415919104 Bytes {Shown due to conversion errors} Adapter 1 Driver Date : 2020-01-21 Adapter 1 Driver Version : 10.18.10.5129 Adapter 1 Bits Per Pixel : 32 Adapter 1 Video Mode Desc : 1920 x 1080 x 4294967296 colors Video Ram {VRam} Notes : The data may not always be accurate due to Windows API limitations, or if using shared RAM. General Notes : Hardware that is not compatible with Windows Display Driver Model returns inaccurate values. WinSat Status Information : No assessment available. Run 'WinSat Formal' from within a Admin CMD prompt first. ===============================================[ Network Adapter Information ]=============================================== MAC Address Defined Name Adapter 1 : F0:B4:D2:xx:xx:9C D-Link DWA-181 AC1300 MU-MIMO Nano USB Adapter Adapter 2 : 10:BF:48:xx:xx:8B Realtek PCIe GBE Family Controller =============================================[ DMI/BIOS/OS License Information ]============================================= #01 CS Product Name : #09 SLIC Information : No Valid SLIC Table Present #02 CS Model Name : #10 Product Key Used : Undefined #03 CS Baseboard Product : #11 MSDM Key Present : No MSDM Table Detected #04 CS Product Vendor : #11 MSDM Information : Undefined #05 CS Manufacturer : #11 MSDM Brand Name : Undefined #06 Baseboard Vendor : #12 BIOS/Boot Mode : UEFI/GPT [{W}/{W}] #07 Serial/Service Tag : Undefined #13 Certificate : Not Present #08 BIOS or SLIC ID : #14 License Status : Licensed =========================================================[ Summary ]========================================================= OEM Theme/MBoard Branding : Windows Default OEM Activation Brand : N/A OEM Consumer Defined OS : N/A MRP Version Used : CY22M01D15-R142.BL Grace Time Remaining : N/A Detected .Net Version{s} : v1.1.4322, v2.0.50727, v3.0.30729.4926, v3.5.30729.4926, v4.0.30319, v4.8+ Other DotNet CORE Runtime : v3.100.1020.51903 {via dotnet.exe file properties} Powershell Version{s} : 1.0, 2.0, 3.0, 4.0, 5.0, 5.1 PS Scripted Diagnostics : Unrestricted Wifi Adapter Status : Not detected or the adapter's driver is not installed/operational. Licensing Channel {RCode} : Retail/HWID {0x4004F401} License Status Reason : This computer has a valid Digital/Store License. Other Notes: : BIOS Version or SLIC ID {#08} may not show correctly with UEFI or Secure Boot enabled. ==============================================[ Office Licensing Information ]============================================== Microsoft Office : MS Office 2016/19 [Licensed] Stock Keeping Unit ID : {5f472f1e-eb0a-4170-98e2-fb9e7f6ff535} GUID Used For Checking : {90160000-007E-0000-1000-0000000FF1CE} Reference Type : Office 16, Office19ProPlus2019MSDNR_Retail Office Architecture : 64 Bit License Channel : RETAIL C2R Release ID{s} : ProPlus2019Retail C2R Client Version : 16.0.10383.20027 C2R Client Culture : en-us C2R Pipeline Server Name : ClickToRun_Pipeline16 C2R Audience Data : Production::LTSC C2R Version : 16.0.10383.20027 C2R Activate : True C2R Updates Enabled : True C2R Update Channel Changed : False Product Key Last 5 Numbers : 6VMCT Office KMS Auto Renewal : No ======================================================[ Miscellaneous ]===================================================== Detected Security Name{s} : Kaspersky [Ref:W] WinDefender Service State : Stopped/Not Running {Reg:0x3 Manual} Defender's Tamper Status : Disabled Windows Firewall State : Running {Reg:0x2 Auto} ==========================================[ Query Tool v121.0 - Report Completed ]==========================================
Code: #01 CS Product Name : #09 SLIC Information : No Valid SLIC Table Present #02 CS Model Name : #10 Product Key Used : Undefined #03 CS Baseboard Product : #11 MSDM Key Present : No MSDM Table Detected #04 CS Product Vendor : #11 MSDM Information : Undefined #05 CS Manufacturer : #11 MSDM Brand Name : Undefined #06 Baseboard Vendor : #12 BIOS/Boot Mode : UEFI/GPT [{W}/{W}] #07 Serial/Service Tag : Undefined #13 Certificate : Not Present #08 BIOS or SLIC ID : #14 License Status : Licensed Odd that there is no information in the #01 to #6, and, BIOS/SLIC ID sections... Even the product key is Undefined... Will adjust QT/MRP to look at the physical board maker if this happens as the last resort, which in this case would be ASUSTek as shown: Code: Manufacturer : ASUSTeK Product : CM6870 If you use the Custom Theme option to change to another brand then the new code update will be ignored as the Custom Theme option will tell MRP to not use any DMI/BIOS etc brand found.
Had a quick play with the code using a debug dmi file and got this result: Code: =================================================[ MotherBoard Information ]================================================= ... Manufacturer : ASUSTeK COMPUTER INC. Product : PRIME B560M-K ... Code: =============================================[ DMI/BIOS/OS License Information ]============================================= #01 CS Product Name : #09 SLIC Information : No Valid SLIC Table Present #02 CS Model Name : #10 Product Key Used : Undefined #03 CS Baseboard Product : #11 MSDM Key Present : No MSDM Table Detected #04 CS Product Vendor : #11 MSDM Information : Undefined #05 CS Manufacturer : #11 MSDM Brand Name : Undefined #06 Baseboard Vendor : #12 BIOS/Boot Mode : UEFI/GPT [{W}/{W}] #07 Serial/Service Tag : Not Shown On Saved Report #13 Certificate : Not Present #08 BIOS or SLIC ID : #14 License Status : Licensed =========================================================[ Summary ]========================================================= OEM Theme/MBoard Branding : Asus [BM] OEM Activation Brand : N/A OEM Consumer Defined OS : N/A OEM Server Defined OS : N/A MRP Version Used : N/A Grace Time Remaining : N/A The 'Asus [BM]' reference is to indicate the program used the 'MotherBoard Manufacturer' instead of any other DMI entry. It may not be perfect but it only comes into play as the very last resort when nothing else is defined in the DMI area, or is corrupted etc.