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,994
    631
    60
    Thanks but I only use it once, right after installing Windows
     
  2. ciscokid

    ciscokid MDL Senior Member

    Jun 3, 2007
    343
    84
    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 Novice

    Mar 19, 2025
    49
    14
    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,841
    582
    60
    yea ..sorry , i miss read
     
  5. ciscokid

    ciscokid MDL Senior Member

    Jun 3, 2007
    343
    84
    10
  6. migascalp

    migascalp MDL Senior Member

    Sep 18, 2009
    492
    849
    10
    #1886 migascalp, Apr 5, 2025
    Last edited: Apr 6, 2025
    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,994
    631
    60
    #1887 tistou77, Apr 5, 2025
    Last edited: Apr 5, 2025
    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
    533
    163
    30
    No...
     
  9. tistou77

    tistou77 MDL Expert

    Mar 22, 2008
    1,994
    631
    60
    #1890 tistou77, Apr 6, 2025
    Last edited: Apr 6, 2025
    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
    492
    849
    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,994
    631
    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 Expert

    May 11, 2011
    1,005
    3,191
    60
    #1894 SunLion, Apr 6, 2025
    Last edited: Apr 7, 2025
    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,994
    631
    60
    Thanks for your help
     
  14. tistou77

    tistou77 MDL Expert

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

    Thanks for your help
     
  15. sizen

    sizen MDL Member

    Jun 4, 2009
    152
    70
    10
    Is there a way to hide the "Top Cards" that appears in 27823.1000?
     
  16. tistou77

    tistou77 MDL Expert

    Mar 22, 2008
    1,994
    631
    60
    Is there a way to change the display order of SSDs in Task Manager ?

    SSD.PNG

    On a PC, I have the D at the top and the C at the bottom

    Thanks

    Other than changing the port on the motherboard
     
  17. Dark Vador

    Dark Vador X Æ A-12

    Feb 2, 2011
    4,368
    6,373
    150
    Interesting share, just a snipe from MRP project
    part of code remove AI \ Copy Pilot
    should be run from batch file only
    i didn't check it, just share it here

    Code:
    reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Deprovisioned\MicrosoftWindows.Client.AIX_cw5n1h2txyewy" /f >NUL 2>&1
    reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Deprovisioned\MicrosoftWindows.Client.AIX_cw5n1h2txyewy" /ve /t REG_SZ /d "" /f >NUL 2>&1
    reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Deprovisioned\MicrosoftWindows.Client.AIX_cw5n1h2txyewy" /f >NUL 2>&1
    reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Deprovisioned\MicrosoftWindows.Client.AIX_cw5n1h2txyewy" /ve /t REG_SZ /d "" /f >NUL 2>&1
    powershell-Command "Get-AppxProvisionedPackage -Online | Where-Object {$_.packagename -like '*Client.AIX*'} | Remove-AppxProvisionedPackage -Online" >NUL 2>&1
    powershell-noprofile -executionpolicy bypass -command "Get-WmiObject -Query 'select * from Win32_Product where Name like \"%%%%Client.AIX%%%%\"' | ForEach-Object { ($_).Uninstall()}" >NUL 2>&1
    powershell-noprofile -executionpolicy bypass -command "Get-AppxPackage -Name *Client.AIX* -AllUsers | Foreach {Remove-AppxPackage $_.PackageFullName -AllUsers}" >NUL 2>&1
    powershell-noprofile -executionpolicy bypass -command "Get-ProvisionedAppxPackage -Online | Where-Object { $_.PackageName -match 'Client.AIX' } | ForEach-Object { Remove-ProvisionedAppxPackage -Online -AllUsers -PackageName $_.PackageName }" >NUL 2>&1
    powershell-noprofile -executionpolicy bypass -command "Get-ProvisionedAppxPackage -Online | Where-Object { $_.PackageName -match 'Client.CoPilot' } | ForEach-Object { Remove-ProvisionedAppxPackage -Online -AllUsers -PackageName $_.PackageName }" >NUL 2>&1
    powershell-noprofile -executionpolicy bypass -command "Get-ProvisionedAppxPackage -Online | Where-Object { $_.PackageName -match 'Ai.Copilot.Provider' } | ForEach-Object { Remove-ProvisionedAppxPackage -Online -AllUsers -PackageName $_.PackageName }" >NUL 2>&1
    powershell-noprofile -executionpolicy bypass -command "Get-ProvisionedAppxPackage -Online | Where-Object { $_.PackageName -match 'Copilot' } | ForEach-Object { Remove-ProvisionedAppxPackage -Online -AllUsers -PackageName $_.PackageName }" >NUL 2>&1
    powershell-noprofile -executionpolicy bypass -command "Remove-Item -Path "$env:LOCALAPPDATA\CoreAIPlatform*" -Force -Recurse -ErrorAction SilentlyContinue" >NUL 2>&1
    reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /v "DisableAIDataAnalysis" /t REG_DWORD /d "1" /f >nul 2>&1
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /v "DisableAIDataAnalysis" /t REG_DWORD /d "1" /f >nul 2>&1
    reg add "HKCU\Software\Policies\Microsoft\Windows\WindowsCopilot" /v "TurnOffWindowsCopilot" /t REG_DWORD /d "1" /f >nul 2>&1
    reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsCopilot" /v "TurnOffWindowsCopilot" /t REG_DWORD /d "1" /f >nul 2>&1
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v "AllowTemporaryEnterpriseFeatureControl" /t REG_DWORD /d "0" /f >nul 2>&1
    reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\Appx" /v "MdmHosts" /f >nul 2>&1
    powershell-Command "Remove-ItemProperty -Path "HKLM:\Software\Policies\Microsoft\Windows\Appx" -Name "MdmHosts" -Force" >NUL 2>&1
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Appx" /f >nul 2>&1
    powershell-Command "Set-ItemProperty -Path "HKLM:\Software\Policies\Microsoft\Windows\Appx" -Name "RestrictAppDataToSystemVolume" -Type DWORD -Value "1" -Force" >NUL 2>&1
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\MDM" /v "DisableRegistration" /t REG_DWORD /d "1" /f >nul 2>&1
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\MDM" /v "AutoEnrollMDM" /t REG_DWORD /d "0" /f >nul 2>&1
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /f >nul 2>&1
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "HideCopilotButton" /t REG_DWORD /d "1" /f >nul 2>&1
    reg add "HKLM\SOFTWARE\Microsoft\PolicyManager\default\Start\HideCopilotButton" /v "value" /t REG_DWORD /d "1" /f >nul 2>&1
    reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowCopilotButton" /t REG_DWORD /d "0" /f >nul 2>&1
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "DisableSearchBoxSuggestions" /t REG_DWORD /d "1" /f >nul 2>&1
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsCopilot" /v "TurnOffWindowsCopilot" /t REG_DWORD /d "1" /f >nul 2>&1
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "HubsSidebarEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowCopilotButton" /t REG_DWORD /d "0" /f >nul 2>&1
    reg add "HKCU\Software\Microsoft\input\Settings" /v "InsightsEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "CopilotCDPPageContext" /t REG_DWORD /d "0" /f >nul 2>&1
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "CopilotPageContext" /t REG_DWORD /d "0" /f >nul 2>&1
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "DiscoverPageContextEnabled" /t REG_DWORD /d "0" /f >nul 2>&1
    powershell-ExecutionPolicy Unrestricted -Command "$data = '0';reg add 'HKLM\Software\Microsoft\Windows\Shell\Copilot\BingChat' /v 'IsUserEligible' /t 'REG_DWORD' /d "^""$data"^"" /f" >nul 2>&1
    powershell-ExecutionPolicy Unrestricted -Command "$data = '0';reg add 'HKCU\Software\Microsoft\Windows\Shell\Copilot\BingChat' /v 'IsUserEligible' /t 'REG_DWORD' /d "^""$data"^"" /f" >nul 2>&1
    powershell-ExecutionPolicy Unrestricted -Command "$data = '0';reg add 'HKLM\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings' /v 'AutoOpenCopilotLargeScreens' /t 'REG_DWORD' /d "^""$data"^"" /f" >nul 2>&1
    powershell-ExecutionPolicy Unrestricted -Command "$data = '0';reg add 'HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings' /v 'AutoOpenCopilotLargeScreens' /t 'REG_DWORD' /d "^""$data"^"" /f" >nul 2>&1
    pause
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. Dark Vador

    Dark Vador X Æ A-12

    Feb 2, 2011
    4,368
    6,373
    150
    this is my origional code for AI Privacy

    Code:
    >nul 2>&1 dism.exe /online /disable-feature /FeatureName:recall /noRestart
    >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\Shell\Copilot" /f /v IsCopilotAvailable /t reg_dword /d 00000000
    >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\Shell\Copilot\BingChat" /f /v IsUserEligible /t reg_dword /d 00000000
    >nul 2>&1 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /f /v DisableAIDataAnalysis /t reg_dword /d 00000001
    >nul 2>&1 reg add "HKCU\Software\Policies\Microsoft\Windows\WindowsCopilot" /f /v TurnOffWindowsCopilot /t reg_dword /d 00000001
    >nul 2>&1 reg add "HKCU\Software\Microsoft\Windows\Shell\Copilot" /f /v CopilotDisabledReason /t REG_SZ /d "FeatureIsDisabled"
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...