Windows 11 Tweaks, Fixes and Modifications [Overview]

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

  1. cyberloner

    cyberloner MDL Member

    Sep 19, 2009
    238
    51
    10
    anyone know where the windows 11 26h1 hiding 1st start install for onedrive inside install.wim
    normally it use HKLM\user\Software\Microsoft\Windows\CurrentVersion\Run" /v "OneDriveSetup inside the Users\default\ntuser.dat reg
    now microsoft hide it somewhere...
     
  2. Uncyler825

    Uncyler825 MDL Novice

    Aug 25, 2022
    23
    33
    0
    OneDrive Setup is scheduled for the first login.

    Code:
    reg load HKLM\OFFLINE C:\OfflineImage\mount\Windows\System32\Config\Software
    
    * Deleting the Task registry key requires TrustedInstaller (TI) permissions.
    
    Windows Registry Editor Version 5.00
    
    [-HKEY_LOCAL_MACHINE\OFFLINE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\OneDrive\OneDrive Per-Machine First Setup Task]
    
    [-HKEY_LOCAL_MACHINE\OFFLINE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Plain\{DB4CF625-1ECE-4C28-934E-A2CE17018BC8}]
    
    [-HKEY_LOCAL_MACHINE\OFFLINE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tasks\{DB4CF625-1ECE-4C28-934E-A2CE17018BC8}]
    
    reg unload HKLM\OFFLINE
    
     
  3. cyberloner

    cyberloner MDL Member

    Sep 19, 2009
    238
    51
    10
    working great... salute and thank you sir
     
  4. amsk98

    amsk98 MDL Member

    Sep 8, 2013
    104
    6
    10
    Looking more new tweaks update
     
  5. tistou77

    tistou77 MDL Guru

    Mar 22, 2008
    2,208
    738
    90
    For "Attribute" commands, is there a command line to replace the Ignore All button ?

    Capture.PNG

    Thanks
     
  6. ceo54

    ceo54 MDL Addicted

    Aug 13, 2015
    969
    466
    30
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. sevenlin007

    sevenlin007 MDL Novice

    Nov 22, 2017
    17
    15
    0
    ::=============================================================================
    :: ====================== 【新增:额外大量优化】==============================
    :: 不减少原功能,只追加更强、更干净、更流畅的优化
    ::=============================================================================

    ::-------------------- 新增1:彻底关闭所有“推荐内容”“推广”------------------
    for %%H in (HKLM\SOFTHIVE HKLM) do (
    reg add "%%H\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v Start_ImmersiveSearch /t REG_DWORD /d 0 /f >nul
    reg add "%%H\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v PreInstalledAppsEnabled /t REG_DWORD /d 0 /f >nul
    reg add "%%H\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v OemPreInstalledAppsEnabled /t REG_DWORD /d 0 /f >nul
    reg add "%%H\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SystemPaneSuggestionsEnabled /t REG_DWORD /d 0 /f >nul
    )

    ::-------------------- 新增2:关闭资源管理器无用功能 ------------------------
    for %%H in (HKLM\SOFTHIVE HKLM) do (
    reg add "%%H\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoRecentDocsHistory /t REG_DWORD /d 1 /f >nul
    reg add "%%H\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoInstrumentation /t REG_DWORD /d 1 /f >nul
    reg add "%%H\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoResolveTrack /t REG_DWORD /d 1 /f >nul
    )

    ::-------------------- 新增3:关闭自动播放 / 自动运行 ------------------------
    for %%H in (HKLM\SOFTHIVE HKLM) do (
    reg add "%%H\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoDriveTypeAutoRun /t REG_DWORD /d 255 /f >nul
    )

    ::-------------------- 新增4:关闭休眠文件(大幅精简体积)-------------------
    powercfg /hibernate off >nul 2>&1

    ::-------------------- 新增5:关闭系统还原 / 卷影复制 -----------------------
    vssadmin delete shadows /all /quiet >nul 2>&1
    for %%H in (HKLM\SOFTHIVE HKLM) do (
    reg add "%%H\SOFTWARE\Policies\Microsoft\Windows NT\SystemRestore" /v DisableSR /t REG_DWORD /d 1 /f >nul
    )

    ::-------------------- 新增6:关闭快速启动(避免双系统异常)----------------
    for %%H in (HKLM\SYSHIVE HKLM) do (
    reg add "%%H\ControlSet001\Control\Session Manager\Power" /v HiberbootEnabled /t REG_DWORD /d 0 /f >nul
    )

    ::-------------------- 新增7:禁用无用服务(更流畅)-------------------------
    for %%s in (
    Fax RemoteRegistry RetailDemo TermService MapsBroker lfsvc
    WpcMonSvc SmsRouter RmSvc CDPSvc CDPUserSvc OneSyncSvc
    ) do (
    sc config %%s start= disabled >nul 2>&1
    reg add "HKLM\SYSHIVE\ControlSet001\Services\%%s" /v Start /t REG_DWORD /d 4 /f >nul 2>&1
    )

    ::-------------------- 新增8:关闭缩略图缓存(减少IO)----------------------
    for %%H in (HKLM\SOFTHIVE HKLM) do (
    reg add "%%H\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v DisableThumbnails /t REG_DWORD /d 1 /f >nul
    )

    ::-------------------- 新增9:关闭时间线 / 时间线同步 -----------------------
    for %%H in (HKLM\SOFTHIVE HKLM) do (
    reg add "%%H\SOFTWARE\Policies\Microsoft\Windows\System" /v DisableActivityHistory /t REG_DWORD /d 1 /f >nul
    reg add "%%H\SOFTWARE\Policies\Microsoft\Windows\System" /v AllowCrossDeviceClipboard /t REG_DWORD /d 0 /f >nul
    )

    ::-------------------- 新增10:禁用自动驱动更新(更稳定)-------------------
    for %%H in (HKLM\SOFTHIVE HKLM) do (
    reg add "%%H\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall" /v DisableDeviceInstall /t REG_DWORD /d 0 /f >nul
    reg add "%%H\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" /v DontSearchWindowsUpdate /t REG_DWORD /d 1 /f >nul
    )

    ::-------------------- 新增11:清理WinSxS冗余组件(镜像专用)---------------
    if "%WIM_MOUNTED%"=="1" (
    dism /image:mount /cleanup-image /startcomponentcleanup /resetbase /quiet >nul
    )
     
  8. sevenlin007

    sevenlin007 MDL Novice

    Nov 22, 2017
    17
    15
    0
    ::=============================================================================
    :: ====================== 【ADDITIONAL OPTIMIZATIONS】==============================
    :: Keep all original functions, only add stronger, cleaner and smoother performance
    ::=============================================================================

    ::-------------------- Add 1: Disable all "Recommended content" and "Promotions" ------------------
    for %%H in (HKLM\SOFTHIVE HKLM) do (
    reg add "%%H\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v Start_ImmersiveSearch /t REG_DWORD /d 0 /f >nul
    reg add "%%H\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v PreInstalledAppsEnabled /t REG_DWORD /d 0 /f >nul
    reg add "%%H\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v OemPreInstalledAppsEnabled /t REG_DWORD /d 0 /f >nul
    reg add "%%H\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SystemPaneSuggestionsEnabled /t REG_DWORD /d 0 /f >nul
    )

    ::-------------------- Add 2: Disable useless features in File Explorer ------------------------
    for %%H in (HKLM\SOFTHIVE HKLM) do (
    reg add "%%H\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoRecentDocsHistory /t REG_DWORD /d 1 /f >nul
    reg add "%%H\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoInstrumentation /t REG_DWORD /d 1 /f >nul
    reg add "%%H\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoResolveTrack /t REG_DWORD /d 1 /f >nul
    )

    ::-------------------- Add 3: Disable AutoPlay / AutoRun ------------------------
    for %%H in (HKLM\SOFTHIVE HKLM) do (
    reg add "%%H\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v NoDriveTypeAutoRun /t REG_DWORD /d 255 /f >nul
    )

    ::-------------------- Add 4: Disable hibernation file (reduce disk size) -------------------
    powercfg /hibernate off >nul 2>&1

    ::-------------------- Add 5: Disable System Restore / Shadow Copy -----------------------
    vssadmin delete shadows /all /quiet >nul 2>&1
    for %%H in (HKLM\SOFTHIVE HKLM) do (
    reg add "%%H\SOFTWARE\Policies\Microsoft\Windows NT\SystemRestore" /v DisableSR /t REG_DWORD /d 1 /f >nul
    )

    ::-------------------- Add 6: Disable Fast Startup (avoid dual-boot issues) ----------------
    for %%H in (HKLM\SYSHIVE HKLM) do (
    reg add "%%H\ControlSet001\Control\Session Manager\Power" /v HiberbootEnabled /t REG_DWORD /d 0 /f >nul
    )

    ::-------------------- Add 7: Disable unnecessary services (improve performance) -------------------------
    for %%s in (
    Fax RemoteRegistry RetailDemo TermService MapsBroker lfsvc
    WpcMonSvc SmsRouter RmSvc CDPSvc CDPUserSvc OneSyncSvc
    ) do (
    sc config %%s start= disabled >nul 2>&1
    reg add "HKLM\SYSHIVE\ControlSet001\Services\%%s" /v Start /t REG_DWORD /d 4 /f >nul 2>&1
    )

    ::-------------------- Add 8: Disable thumbnail cache (reduce I/O) ----------------------
    for %%H in (HKLM\SOFTHIVE HKLM) do (
    reg add "%%H\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v DisableThumbnails /t REG_DWORD /d 1 /f >nul
    )

    ::-------------------- Add 9: Disable Timeline / Timeline sync -----------------------
    for %%H in (HKLM\SOFTHIVE HKLM) do (
    reg add "%%H\SOFTWARE\Policies\Microsoft\Windows\System" /v DisableActivityHistory /t REG_DWORD /d 1 /f >nul
    reg add "%%H\SOFTWARE\Policies\Microsoft\Windows\System" /v AllowCrossDeviceClipboard /t REG_DWORD /d 0 /f >nul
    )

    ::-------------------- Add 10: Disable automatic driver updates (more stable) -------------------
    for %%H in (HKLM\SOFTHIVE HKLM) do (
    reg add "%%H\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall" /v DisableDeviceInstall /t REG_DWORD /d 0 /f >nul
    reg add "%%H\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" /v DontSearchWindowsUpdate /t REG_DWORD /d 1 /f >nul
    )

    ::-------------------- Add 11: Clean up WinSxS redundant components (for offline image only) ---------------
    if "%WIM_MOUNTED%"=="1" (
    dism /image:mount /cleanup-image /startcomponentcleanup /resetbase /quiet >nul
    )
     
  9. d5aqoëp

    d5aqoëp MDL Addicted

    Jan 19, 2017
    870
    659
    30
    :: Fix Dark Flashes in Explorer
    ViVeTool.exe /enable /id:46719714

    Works in 26200.8246
     
  10. m8willm8

    m8willm8 MDL Novice

    Aug 10, 2016
    6
    1
    0
    can these vivetool stuff be activated without vivetool but registry instead??
     
  11. expert

    expert MDL Member

    Nov 3, 2007
    137
    148
    10
  12. Spintronic

    Spintronic MDL Junior Member

    Apr 24, 2010
    50
    55
    0
    Figured it out:
    • 0 = Grid View
    • 1 = List View
    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Start]
    "AllAppsViewMode"=dword:00000000
    
     
  13. Spintronic

    Spintronic MDL Junior Member

    Apr 24, 2010
    50
    55
    0
  14. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    54,966
    125,937
    450
    #2057 Enthousiast, May 28, 2026
    Last edited: May 28, 2026
    (OP)
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. tistou77

    tistou77 MDL Guru

    Mar 22, 2008
    2,208
    738
    90
    #2058 tistou77, Jun 15, 2026
    Last edited: Jun 16, 2026
    Hello

    Is it possible to change/modify the "DefaultGateway" from the registry (not with a command prompt) ?
    I found for IP, DNS, Mask, but "Gateway" is not applied

    Thanks

    EDIT : It's good with reboot