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.

350 lines
11 KiB

  1. @echo off
  2. title Optimizer - Win 6.1
  3. :srun
  4. cls
  5. echo.
  6. echo Version: 2019-09-12
  7. echo ________________________________________________________________________________
  8. echo Press any key to start optimizing process.
  9. pause > nul
  10. echo ________________________________________________________________________________
  11. echo For VMware Virtual Machine
  12. if exist "C:\Program Files\VMware\VMware Tools" goto svmwarebegin
  13. if exist "C:\Program Files (x86)\VMware\VMware Tools" goto svmwarebegin
  14. goto svmwareexit
  15. :svmwarebegin
  16. echo Service: Power
  17. rem sc config power start= disabled
  18. echo.
  19. :svmwareexit
  20. echo For Windows NT 6 Server
  21. if exist "%SystemRoot%\system32\ServerManager.msc" goto snt6serverbegin
  22. goto sen6serverexit
  23. :snt6serverbegin
  24. echo Personalized: Easily Operation
  25. set vk="hklm\software\policies\microsoft\windows nt\reliability"
  26. reg add %vk% /v "shutdownreasonon" /t reg_dword /d 1 /f
  27. set vk="hklm\software\microsoft\windows\currentversion\policies\system"
  28. reg add %vk% /v "disablecad" /t reg_dword /d 1 /f
  29. echo Service: Desktop Window Manager Session Manager
  30. sc config uxsms start= disabled
  31. echo Service: Multimedia Class Scheduler
  32. sc config mmcss start= disabled
  33. echo Service: Windows Audio
  34. sc config audiosrv start= disabled
  35. echo Service: Windows Remote Management
  36. sc config wimrm start= disabled
  37. echo.
  38. :sen6serverexit
  39. echo For Windows NT 6 Client
  40. :snt6client
  41. echo Service: Application Experience
  42. sc config AeLookupSvc start= disabled
  43. echo Service: Background Intelligent Transfer Service
  44. sc config BITS start= disabled
  45. echo Service: Base Filtering Engine
  46. sc config BFE start= disabled
  47. echo Service: Client for NFS
  48. sc config nfsclnt start= disabled
  49. echo Service: COM+ Event System
  50. sc config EventSystem start= disabled
  51. echo Service: COM+ System Application
  52. sc config COMSysApp start= disabled
  53. echo Service: Computer Browser
  54. sc config browser start= auto
  55. echo Service: Diagnostic Policy Service
  56. sc config DPS start= disabled
  57. echo Service: Diagnostic Service Host
  58. sc config WdiServiceHost start= disabled
  59. echo Service: Diagnostic System Host
  60. sc config WdiSystemHost start= disabled
  61. echo Service: Distributed Link Tracking Client
  62. sc config TrkWks start= disabled
  63. echo Service: Distributed Transaction Coordinator
  64. sc config MSDTC start= disabled
  65. echo Service: Function Discovery Provider Host
  66. sc config fsphost start= disabled
  67. echo Service: Function Discovery Resource Publication
  68. sc config FDResPub start= auto
  69. echo Service: IKE and AuthIP IPsec Keying Modules
  70. sc config ikeext start= disabled
  71. echo Service: Indexing Service
  72. sc config cisvc start= disabled
  73. echo Service: IP Helper
  74. sc config iphlpsvc start= disabled
  75. echo Service: IPsec Policy Agent
  76. sc config policyagent start= disabled
  77. echo Service: Keyboard Filter
  78. sc config keyboardfilter start= disabled
  79. echo Service: LPD Service
  80. sc config lpdsvc start= disabled
  81. echo Service: Offline Files
  82. sc config CscService start= disabled
  83. echo Service: Portable Device Enumerator Service
  84. sc config WPDBusEnum start= disabled
  85. echo Service: Program Compatibility Assistant Service
  86. sc config PcaSvc start= disabled
  87. echo Service: Print Spooler
  88. sc config Spooler start= disabled
  89. echo Service: RIP Listener
  90. sc config iprip start= disabled
  91. echo Service: Security Accounts Manager
  92. sc config SamSs start= auto
  93. echo Service: Security Center
  94. sc config wscsvc start= disabled
  95. echo Service: Server
  96. sc config LanmanServer start= auto
  97. echo Service: Shell Hardware Detection
  98. sc config ShellHWDetection start= disabled
  99. echo Service: Simple TCP/IP Services
  100. sc config simptcp start= disabled
  101. echo Service: SNMP Service
  102. sc config snmp start= disabled
  103. echo Service: SSDP Discovery
  104. sc config SSDPSRV start= disabled
  105. echo Service: Superfatch
  106. sc config sysmain start= disabled
  107. echo Service: System Event Notification Service
  108. sc config SENS start= disabled
  109. echo Service: TCP/IP NetBIOS Helper
  110. sc config lmhosts start= auto
  111. echo Service: Volume Shadow Copy
  112. sc config VSS start= disabled
  113. echo Service:Windows Connect Now - Config Registrar
  114. sc config wcncsvc start= disabled
  115. echo Service: Windows Defender
  116. sc config WinDefend start= disabled
  117. echo Service: Windows Firewall
  118. sc config MpsSvc start= disabled
  119. echo Service: Windows Font Cache Service
  120. sc config FontCache start= disabled
  121. echo Service: Windows Search
  122. sc config WSearch start= disabled
  123. echo Service: Windows Media Player Network Sharing Service
  124. sc config WMPNetworkSvc start= disabled
  125. echo Service: Windows Update
  126. sc config wuauserv start= disabled
  127. echo Service: WinHTTP Web Proxy Auto-Discovery Service
  128. sc config WinHttpAutoProxySvc start= disabled
  129. echo Service: WMI Performance Adapter
  130. sc config wmiApSrv start= disabled
  131. echo Service: Workstation
  132. sc config LanmanWorkstation start= auto
  133. echo Service: .NET Framework
  134. sc config clr_optimization_v2.0.50727_32 start= disabled
  135. sc config clr_optimization_v2.0.50727_64 start= disabled
  136. sc config clr_optimization_v4.0.30319_32 start= disabled
  137. sc config clr_optimization_v4.0.30319_64 start= disabled
  138. echo Service: TP AutoConnect Service
  139. sc config tpautoconnsvc start= disabled
  140. echo Service: VMware Alias Manager and Ticket Service
  141. sc config vgauthservice start= disabled
  142. echo Service: VMware CAF AMQP Communication Service
  143. sc config vmwarecafcommamqplistener start= disabled
  144. echo Service: VMware CAF Management Agent Service
  145. sc config vmwarecafmanagementagenthost start= disabled
  146. echo Service: VMware Snapshot Provider
  147. sc config vmvss start= disabled
  148. echo Service: VMware Physical Disk Helper Service
  149. sc config "vmware physical disk helper service" start= disabled
  150. echo ________________________________________________________________________________
  151. echo Service: Windows Time
  152. set vk="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config"
  153. reg add %vk% /v "AnnounceFlags" /t reg_dword /d 5 /f >nul
  154. set vk="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer"
  155. reg add %vk% /v "Enabled" /t reg_dword /d 1 /f >nul
  156. set vk="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpClient"
  157. reg add %vk% /v "SpecialPollInterval" /t reg_dword /d 60 /f >nul
  158. set vk="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters"
  159. reg add %vk% /v "NtpServer" /t reg_sz /d "pool.ntp.org" /f >nul
  160. sc config w32time start= auto >nul
  161. sc stop w32time >nul
  162. sc start w32time >nul
  163. echo ________________________________________________________________________________
  164. echo Performance: Burn
  165. set vp="&userprofile&\AppData\Local\Microsoft\Windows\Burn\burn"
  166. if exist %vp% rmdir /s /q vp
  167. echo. > %vp%
  168. echo ________________________________________________________________________________
  169. echo Performance: Page File
  170. set vk="hklm\system\currentcontrolset\control\session manager\memory management"
  171. reg add %vk% /v "pagingfiles" /t reg_multi_sz /d "" /f
  172. reg add %vk% /v "disablepagingexecutive" /t reg_dword /d 1 /f
  173. reg add %vk% /v "clearpagefileatshutdown" /t reg_dword /d 1 /f
  174. set vp=c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z
  175. for %%i in (%vp%) do attrib -s -h %%i:\pagefile.sys
  176. for %%i in (%vp%) do del /f /q %%i:\pagefile.sys
  177. echo ________________________________________________________________________________
  178. echo Performance: Prefetch
  179. set vk="hklm\system\currentcontrolset\control\session manager\memory management\prefetchparameters"
  180. reg add %vk% /v "enableprefetcher" /t reg_dword /d 1 /f
  181. reg add %vk% /v "enablesuprefetcher" /t reg_dword /d 0 /f
  182. del /f /q %windir%\prefetch\*.*
  183. echo ________________________________________________________________________________
  184. echo Performance: Application Response
  185. set vk="hklm\system\currentcontrolset\control\windows"
  186. reg add %vk% /v "nopopupsonboot" /t reg_dword /d 1 /f
  187. set vk="hklm\system\currentcontrolset\control"
  188. reg add %vk% /v "waittokillservicetimeout" /t reg_sz /d "1000" /f
  189. set vk="hkcu\control panel\desktop"
  190. reg add %vk% /v "autoendtasks" /t reg_sz /d "1" /f
  191. reg add %vk% /v "hungapptimeout" /t reg_sz /d "500" /f
  192. reg add %vk% /v "waittokillapptimeout" /t reg_sz /d "1000" /f
  193. set vk="hku\.default\control panel\desktop"
  194. reg add %vk% /v "autoendtasks" /t reg_sz /d "1" /f
  195. reg add %vk% /v "hungapptimeout" /t reg_sz /d "500" /f
  196. reg add %vk% /v "waittokillapptimeout" /t reg_sz /d "1000" /f
  197. echo ________________________________________________________________________________
  198. echo Security: Auto Run
  199. set vk="hklm\system\currentcontrolset\services\cdrom"
  200. reg add %vk% /v "autorun" /t reg_dword /d 0 /f
  201. echo ________________________________________________________________________________
  202. echo Personalized: Desktop
  203. set vk="hkcu\software\microsoft\windows\currentversion\explorer"
  204. reg add %vk% /v "link" /t reg_dword /d 0 /f
  205. set vk="hku\.default\software\microsoft\windows\currentversion\explorer"
  206. reg add %vk% /v "link" /t reg_dword /d 0 /f
  207. echo ________________________________________________________________________________
  208. echo Personalized: Internet Explorer
  209. set vk="hkcu\software\microsoft\internet explorer\main"
  210. reg add %vk% /v "start page" /t reg_sz /d "about:blank" /f
  211. set vk="hkcu\software\policies\microsoft\internet explorer\main"
  212. reg add %vk% /v "disablefirstruncustomize" /t reg_dword /d 2 /f
  213. set vk="hkcu\software\policies\microsoft\windows\currentversion\internet settings\cache"
  214. reg add %vk% /v "persistent" /t reg_dword /d 0 /f
  215. set vk="hkcu\software\policies\microsoft\internet explorer\linksbar"
  216. reg add %vk% /v "enabled" /t reg_dword /d 0 /f
  217. set vk="hkcu\software\policies\microsoft\internet explorer\commandbar"
  218. reg add %vk% /v "commandbarenabled" /t reg_dword /d 0 /f
  219. set vk="hkcu\software\policies\microsoft\internet explorer\activities"
  220. reg add %vk% /v "noactivities" /t reg_dword /d 1 /f
  221. set vk="hku\.default\software\microsoft\internet explorer\main"
  222. reg add %vk% /v "start page" /t reg_sz /d "about:blank" /f
  223. set vk="hku\.default\software\policies\microsoft\internet explorer\main"
  224. reg add %vk% /v "disablefirstruncustomize" /t reg_dword /d 2 /f
  225. set vk="hku\.default\software\policies\microsoft\windows\currentversion\internet settings\cache"
  226. reg add %vk% /v "persistent" /t reg_dword /d 0 /f
  227. set vk="hku\.default\software\policies\microsoft\internet explorer\linksbar"
  228. reg add %vk% /v "enabled" /t reg_dword /d 0 /f
  229. set vk="hku\.default\software\policies\microsoft\internet explorer\commandbar"
  230. reg add %vk% /v "commandbarenabled" /t reg_dword /d 0 /f
  231. set vk="hku\.default\software\policies\microsoft\internet explorer\activities"
  232. reg add %vk% /v "noactivities" /t reg_dword /d 1 /f
  233. echo ________________________________________________________________________________
  234. echo Clean: Dynamic Link Library
  235. set vk="hklm\software\microsoft\windows\currentversion\explorer"
  236. reg add %vk% /v "alwaysunloaddll" /t reg_dword /d 1 /f
  237. echo ________________________________________________________________________________
  238. echo Clean: Autoruns
  239. set vk="hklm\software\microsoft\windows\currentversion\run"
  240. reg delete %vk% /v "hotkeyscmds" /f
  241. reg delete %vk% /v "igfxtray" /f
  242. reg delete %vk% /v "persistence" /f
  243. reg delete %vk% /v "rthdcpl" /f
  244. echo ________________________________________________________________________________
  245. echo Clean: VMware Process
  246. rem set vk="hklm\software\microsoft\windows\currentversion\run"
  247. rem reg delete %vk% /v "vmware user process" /f
  248. echo ________________________________________________________________________________
  249. echo The optimizing operation had been completed.
  250. pause >nul
  251. rem echo The optimizing operation had been completed. Press any key to reboot.
  252. rem pause >nul
  253. rem start /min shutdown -r -t 0
  254. :send