Windows 11 Tweaks, Fixes and Modifications [Overview]

Discussion in 'Windows 11' started by Enthousiast, Jul 1, 2021.

  1. tistou77

    tistou77 MDL Expert

    Mar 22, 2008
    1,979
    624
    60
    Thanks but I only use it once, right after installing Windows
     
  2. ciscokid

    ciscokid MDL Senior Member

    Jun 3, 2007
    339
    80
    10
    Any tweak exist to ungroup taskbar icons so they all show up without having to click the up arrow icon?
     
  3. phynz

    phynz MDL Junior Member

    Mar 19, 2025
    50
    11
    0
    open regedit, go to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced, create a 32 dword, name it TaskbarGlomLevel, and set its value to 2 :rifle::rifle::roll1::sad:
     
  4. boe323

    boe323 MDL Expert

    Jul 19, 2011
    1,813
    556
    60
    yea ..sorry , i miss read
     
  5. ciscokid

    ciscokid MDL Senior Member

    Jun 3, 2007
    339
    80
    10
  6. migascalp

    migascalp MDL Senior Member

    Sep 18, 2009
    488
    843
    10
    #1886 migascalp, Saturday at 12:23
    Last edited: Yesterday at 00:36
    You can try this:
    Code:
    reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx" /v TITLE /d "Installing my scripts" /f >nul 2>&1
    reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\0001" /ve /d "1st script" /f >nul 2>&1
    reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\0001" /v "0001" /d \""Path\script1.cmd\"" /f >nul 2>&1
    reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\0002" /ve /d "2nd script" /f >nul 2>&1
    reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\0002" /v "0001" /d \""Path\script2.cmd\"" /f >nul 2>&1
    
    Edit:
    typo
    Patch ->Path
     
  7. tistou77

    tistou77 MDL Expert

    Mar 22, 2008
    1,979
    624
    60
    #1887 tistou77, Saturday at 18:48
    Last edited: Saturday at 20:14
    Thanks for the help
    I need to add all these registry keys to the image ?

    EDIT : I looked, but I didn't understand how to specify my .cmd file with these commands (I only have one .cmd file).
    Which contains several commands and a .reg file.

    Otherwise with this command, would it be ok ?

    cmd.exe D:\myscript.cmd

    Add to HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce ?
     
  8. Shortyportuguese

    Shortyportuguese MDL Addicted

    Apr 3, 2019
    509
    147
    30
    No...
     
  9. tistou77

    tistou77 MDL Expert

    Mar 22, 2008
    1,979
    624
    60
    #1890 tistou77, Yesterday at 00:41
    Last edited: Yesterday at 00:52
    Modifying install.wim is no problem, I do it every month with the LCU, etc.
    But I can't say the same for scripts when it gets too technical

    I already have a SetupComplete.cmd file in sources\$OEM$ for "Before Logon"
    My script must be used for "After Logon" (once the user is "created")

    And I just want to know if it is possible to do it with just 1 command line and not add each command (and each .reg file converted to command line)

    In short, a command line (or a possible shortcut placed on the desktop) which launches this .cmd file just after installing Windows
     
  10. migascalp

    migascalp MDL Senior Member

    Sep 18, 2009
    488
    843
    10
    So, my first answer was correct.
    Use "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx" key to launch your script.
    It will be executed at firstlogon.
     
  11. tistou77

    tistou77 MDL Expert

    Mar 22, 2008
    1,979
    624
    60
    Ok thanks
    And what should I add ?
    In your first post, there are keys for two scripts, I only have one (what I didn't understand)
     
  12. SunLion

    SunLion MDL Addicted

    May 11, 2011
    952
    2,869
    30
    #1894 SunLion, Yesterday at 14:45
    Last edited: Today at 18:55
    I use the $OEM$ folder inside the Sources folder.

    See the attached package, with illustrative images.

    You can place your files:
    - .CMD and BAT inside the BAT folder
    - .REG inside the REG folder
    - .EXE inside the APP folder

    Add the lines below to your setupcomplete.cmd

    SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
    REG ADD %KEY%\010 /V 1 /D "%SYSTEMDRIVE%\Windows\Setup\RunOnceEx.cmd" /f

    This way the RunonceEx.cmd script will be executed after the first login and will execute all your commands...

    Good luck!

    psw: mdl2025
     

    Attached Files:

  13. tistou77

    tistou77 MDL Expert

    Mar 22, 2008
    1,979
    624
    60
    Thanks for your help
     
  14. tistou77

    tistou77 MDL Expert

    Mar 22, 2008
    1,979
    624
    60
    It's good with this commande : cmd /k path_file

    Thanks for your help