You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

276 lines
10 KiB

  1. @echo off
  2. title Optimizer - Win 10
  3. cls
  4. echo.
  5. echo Version: 2021-05-18
  6. echo ________________________________________________________________________________________________________________________
  7. rem check UAC
  8. set uac="%temp%\uac.vbs"
  9. >nul 2>&1 "%windir%\system32\cacls.exe" "%windir%\system32\config\system"
  10. if '%errorlevel%' NEQ '0' (
  11. goto uac
  12. ) else (
  13. if exist %uac% del %uac%
  14. goto run
  15. )
  16. :uac
  17. echo Set UAC = CreateObject^("Shell.Application"^) > %uac%
  18. echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> %uac%
  19. %uac%
  20. exit /b
  21. :run
  22. rem echo.
  23. rem echo Press any key to start optimizing process.
  24. rem pause > nul
  25. rem echo.
  26. echo Service: Application Layer Gateway Service
  27. sc config alg start= auto >nul
  28. rem echo Service: AVCTP
  29. rem sc config bthavctpsvc start= disabled >nul
  30. echo Service: Computer Browser
  31. sc config browser start= auto >nul
  32. echo Service: Certificate Propagation
  33. sc config certpropsvc start= disabled >nul
  34. echo Service: Connected User Experiences and Telemetry
  35. sc config diagtrack start= disabled >nul
  36. echo Service: Debugging Helper
  37. sc config debugregsvc start= disabled >nul
  38. echo Service: Diagnostic Execution Service
  39. sc config diagsvc start= disabled >nul
  40. echo Service: Diagnostic Policy Service
  41. sc config dps start= disabled >nul
  42. echo Service: Diagnostic Service Host
  43. sc config wdiservicehost start= disabled >nul
  44. echo Service: Diagnostic System Host
  45. sc config wdisystemhost start= disabled >nul
  46. echo Service: Distributed Transaction Coordinator
  47. sc config msdtc start= disabled >nul
  48. echo Service: Encrypting File System
  49. sc config efs start= disabled >nul
  50. echo Service: Geolocation Service
  51. sc config lfsvc start= disabled >nul
  52. echo Service: HomeGroup Listener
  53. sc config homegrouplistener start= disabled >nul
  54. echo Service: HomeGroup Provider
  55. sc config homegroupprovider start= disabled >nul
  56. echo Service: Internet Connection Sharing (ICS)
  57. sc config sharedaccess start= disabled >nul
  58. echo Service: Offline Files
  59. sc config cscservice start= disabled >nul
  60. echo Service: Portable Device Enumerator Service
  61. sc config wpdbusenum start= disabled >nul
  62. echo Service: Problem Reports and Solutions Control Panel Support
  63. sc config wercplsupport start= disabled >nul
  64. echo Service: Program Compatibility Assistant Service
  65. sc config pcasvc start= disabled >nul
  66. echo Service: Quality Windows Audio Video Experience
  67. sc config qwave start= disabled >nul
  68. echo Service: SSDP Discovery
  69. sc config ssdpsrv start= disabled >nul
  70. echo Service: Superfetch
  71. sc config sysmain start= disabled >nul
  72. echo Service: Themes
  73. sc config themes start= disabled >nul
  74. echo Service: Windows Error Reporting Service
  75. sc config wersvc start= disabled >nul
  76. echo Service: Windows Search
  77. sc config wsearch start= disabled >nul
  78. echo Service: WMI Performance Adapter
  79. sc config wmiApSrv start= disabled >nul
  80. echo Service: Windows Time
  81. set vk="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config"
  82. reg add %vk% /v "AnnounceFlags" /t reg_dword /d 5 /f >nul
  83. set vk="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer"
  84. reg add %vk% /v "Enabled" /t reg_dword /d 1 /f >nul
  85. set vk="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient"
  86. reg add %vk% /v "SpecialPollInterval" /t reg_dword /d 60 /f >nul
  87. set vk="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters"
  88. reg add %vk% /v "NtpServer" /t reg_sz /d "pool.ntp.org" /f >nul
  89. sc config w32time start= auto >nul
  90. sc stop w32time >nul
  91. sc start w32time >nul
  92. echo Service: WebDAV
  93. set vk="HKLM\SYSTEM\CurrentControlSet\Services\WebClient\Parameters"
  94. reg add %vk% /v "BasicAuthLevel" /t REG_DWORD /d 2 /f >nul
  95. reg add %vk% /v "FileSizeLimitInBytes" /t REG_DWORD /d 4294967295 /f >nul
  96. sc config WebClient start= demand >nul
  97. sc stop WebClient >nul
  98. sc start WebClient >nul
  99. echo Service: L2TP
  100. set vk="hklm\system\currentcontrolset\services\rasman\parameters"
  101. reg add %vk% /v "ProhibitIPSec" /t reg_dword /d 0 /f >nul
  102. set vk="hklm\system\currentcontrolset\services\policyagent"
  103. reg add %vk% /v "AssumeUDPEncapsulationContextOnSendRule" /t reg_dword /d 2 /f >nul
  104. echo Application: Adobe Service
  105. sc config agsservice start= disabled >nul
  106. sc config adobeupdateservice start= disabled >nul
  107. echo Application: Adobe iTunes
  108. sc config ipxlatcfgsvc start= disabled >nul
  109. echo Application: Intel
  110. sc config cplspcon start= disabled >nul
  111. sc config cphs start= disabled >nul
  112. sc config esifsvc start= disabled >nul
  113. sc config igfxcuiservice1.0.0.0 start= disabled >nul
  114. sc config igfxcuiservice2.0.0.0 start= disabled >nul
  115. sc config jhi_service start= disabled >nul
  116. sc config "Intel(R) Capability Licensing Service TCP IP Interface" start= disabled >nul
  117. sc config "Intel(R) TPM Provisioning Service" start= disabled >nul
  118. echo Application: NVIDIA Display Container
  119. sc config nvcontainerlocalsystem start= disabled >nul
  120. sc config nvcontainernetworkservice start= disabled >nul
  121. sc config nvdisplay.containerlocalsystem start= disabled >nul
  122. sc config nvtelemetrycontainer start= disabled >nul
  123. echo Application: AMD Graphics
  124. sc config "AMD External Events Utility" start= disabled >nul
  125. regsvr32 /u /s atiacmxx.dll >nul
  126. rem set vk="hkcr\directory\background\shellex\ace"
  127. rem reg delete %vk% /f >nul
  128. echo Application: VMware Tools
  129. sc config tpautoconnsvc start= disabled >nul
  130. sc config vmvss start= disabled >nul
  131. sc config vgauthservice start= disabled >nul
  132. sc config "vmware physical disk helper service" start= disabled >nul
  133. echo Performance: Page File
  134. set vk="hklm\system\currentcontrolset\control\session manager\memory management"
  135. reg add %vk% /v "pagingfiles" /t reg_multi_sz /d "" /f >nul
  136. reg add %vk% /v "disablepagingexecutive" /t reg_dword /d 1 /f >nul
  137. rem reg add %vk% /v "clearpagefileatshutdown" /t reg_dword /d 1 /f >nul
  138. echo Performance: Prefetch
  139. set vk="hklm\system\currentcontrolset\control\session manager\memory management\prefetchparameters"
  140. reg add %vk% /v "enableprefetcher" /t reg_dword /d 1 /f >nul
  141. reg add %vk% /v "enablesuprefetcher" /t reg_dword /d 3 /f >nul
  142. echo Performance: Application Response
  143. set vk="hklm\system\currentcontrolset\control\windows"
  144. reg add %vk% /v "nopopupsonboot" /t reg_dword /d 1 /f >nul
  145. set vk="hklm\system\currentcontrolset\control"
  146. reg add %vk% /v "waittokillservicetimeout" /t reg_sz /d "1000" /f >nul
  147. set vk="hkcu\control panel\desktop"
  148. reg add %vk% /v "autoendtasks" /t reg_sz /d "1" /f >nul
  149. reg add %vk% /v "hungapptimeout" /t reg_sz /d "500" /f >nul
  150. reg add %vk% /v "waittokillapptimeout" /t reg_sz /d "1000" /f >nul
  151. set vk="hku\.default\control panel\desktop"
  152. reg add %vk% /v "autoendtasks" /t reg_sz /d "1" /f >nul
  153. reg add %vk% /v "hungapptimeout" /t reg_sz /d "500" /f >nul
  154. reg add %vk% /v "waittokillapptimeout" /t reg_sz /d "1000" /f >nul
  155. echo Security: Auto Run
  156. set vk="hklm\system\currentcontrolset\services\cdrom"
  157. reg add %vk% /v "autorun" /t reg_dword /d 0 /f >nul
  158. echo Security: Enable AutoLogin
  159. set vk="hklm\Software\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device"
  160. reg add %vk% /v "DevicePasswordLessBuildVersion" /t reg_dword /d 0 /f >nul
  161. echo Security: WebDAV
  162. set vk="hklm\SYSTEM\CurrentControlSet\Services\WebClient\Parameters"
  163. reg add %vk% /v "BasicAuthLevel" /t reg_dword /d 2 /f >nul
  164. echo Personalized: Easily Operation
  165. set vk="hklm\software\policies\microsoft\windows nt\reliability"
  166. reg add %vk% /v "shutdownreasonon" /t reg_dword /d 1 /f >nul
  167. set vk="hklm\software\microsoft\windows\currentversion\policies\system"
  168. reg add %vk% /v "disablecad" /t reg_dword /d 1 /f >nul
  169. echo Personalized: Power
  170. powercfg -h off >nul
  171. rem powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61
  172. set vk="HKLM\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\7516b95f-f776-4464-8c53-06167f40cc99\8EC4B3A5-6868-48c2-BE75-4F3044BE88A7"
  173. reg add %vk% /v "Attributes" /t reg_dword /d 2 /f >nul
  174. echo Personalized: Desktop
  175. set vk="hkcu\control panel\desktop"
  176. reg add %vk% /v "jpegimportquality" /t reg_dword /d 100 /f >nul
  177. set vk="hkcu\software\microsoft\windows\currentversion\explorer"
  178. reg add %vk% /v "link" /t reg_dword /d 0 /f >nul
  179. set vk="hku\.default\control panel\desktop"
  180. reg add %vk% /v "jpegimportquality" /t reg_dword /d 100 /f >nul
  181. set vk="hku\.default\software\microsoft\windows\currentversion\explorer"
  182. reg add %vk% /v "link" /t reg_dword /d 0 /f >nul
  183. echo Personalized: Short Cut
  184. set vk="hkcu\software\microsoft\windows\currentversion\explorer"
  185. reg add %vk% /v "link" /t reg_dword /d 0 /f >nul
  186. set vk="hku\.default\software\microsoft\windows\currentversion\explorer"
  187. reg add %vk% /v "link" /t reg_dword /d 0 /f >nul
  188. echo Personalized: Remove 3D Objects
  189. set vk="hklm\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}"
  190. reg delete %vk% /f >nul
  191. rem echo Personalized: Log In Keyboard
  192. rem set vk="hku\.default\control pannel\keyboard"
  193. rem reg add %vk% /v "initialkeyboardindicators" /t reg_sz /d "80000002" /f >nul
  194. echo Clean: Dynamic Link Library
  195. set vk="hklm\software\microsoft\windows\currentversion\explorer"
  196. reg add %vk% /v "alwaysunloaddll" /t reg_dword /d 1 /f >nul
  197. echo Clean: Autoruns
  198. set vk="hklm\software\microsoft\windows\currentversion\run"
  199. reg delete %vk% /v "hotkeyscmds" /f >nul
  200. reg delete %vk% /v "igfxtray" /f >nul
  201. reg delete %vk% /v "persistence" /f >nul
  202. reg delete %vk% /v "rthdcpl" /f >nul
  203. reg delete %vk% /v "adobeaamupdater-1.0" /f >nul
  204. reg delete %vk% /v "windowsdefender" /f >nul
  205. set vk="hklm\software\wow6432node\microsoft\windows\currentversion\run"
  206. reg delete %vk% /v "vmware-tray.exe" /f >nul
  207. reg delete %vk% /v "adskappmanager" /f >nul
  208. reg delete %vk% /v "adobe arm" /f >nul
  209. echo Clean: Windows Update Reserved 7GB
  210. set vk="hklm\software\microsoft\windows\currentversion\reservemanager"
  211. reg add %vk% /v "shippedwithreserves" /t reg_dword /d 0 /f >nul
  212. echo ________________________________________________________________________________________________________________________
  213. echo.
  214. echo The optimizing operation had been completed.
  215. pause >nul
  216. rem echo The optimizing operation had been completed. Press any key to reboot.
  217. rem pause >nul
  218. rem start /min shutdown -r -t 0
  219. :end