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...
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
Massive tweak pack applicable for Windows 10 & 11 -and- Windows 10 dark theme fixed posted here https://forums.mydigitallife.net/threads/windows-10-dark-theme-fix-massive-tweak-pack.90225/
::============================================================================= :: ====================== 【新增:额外大量优化】============================== :: 不减少原功能,只追加更强、更干净、更流畅的优化 ::============================================================================= ::-------------------- 新增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 )
::============================================================================= :: ====================== 【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 )
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
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