cyberloner

CyberMania www.cybermania.ws Win 10 Tweaks

Jul 31st, 2015
888
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @ECHO OFF
  2. COLOR 1F
  3. TITLE Windows 10 TNBT: The Next Big Tweak v1.2 (x64)
  4. ECHO #########################################################
  5. ECHO # #
  6. ECHO # WINDOWS 10 BUILD 10240 X64 TNBT: THE NEXT BIG TWEAK #
  7. ECHO # #
  8. ECHO # CURRENT REVISION: 1.2 #
  9. ECHO # AUTHOR: SEBASTIAN KOEHLING #
  10. ECHO # #
  11. ECHO #########################################################
  12.  
  13. REM ======================= Registry tweaks =======================
  14. ECHO.
  15. :regstart
  16. set /p registry="Apply registry tweaks? y/n: "
  17. if '%registry%' == 'n' goto servstart
  18. if /i "%registry%" neq "n" if /i "%registry%" neq "y" goto regstart
  19. set /p registryplus="Replace Utilman with CMD? y/n: "
  20. if '%registryplus%' == 'n' goto registryminus
  21. if /i "%registryplus%" neq "n" if /i "%registryplus%" neq "y" goto regstart
  22. REM Replace Utilman with SysAdmin CMD on Lockscreen (advanced users)
  23. reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\utilman.exe" /v "Debugger" /t REG_SZ /d "cmd.exe" /f > NUL 2>&1
  24. :registryminus
  25.  
  26. REM Sets Explorer to start on This PC instead of Quick Access
  27. reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /f /v "LaunchTo" /t REG_DWORD /d 0 > NUL 2>&1
  28.  
  29. REM Show computer shortcut on desktop
  30. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" /v "{20D04FE0-3AEA-1069-A2D8-08002B30309D}" /t REG_DWORD /d 0 /f > NUL 2>&1
  31.  
  32. REM Show file extensions
  33. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d 0 /f > NUL 2>&1
  34.  
  35. REM Disable lockscreen
  36. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Personalization" /v "NoLockScreen" /t REG_DWORD /d 1 /f > NUL 2>&1
  37.  
  38. REM Enable classic control panel view
  39. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "ForceClassicControlPanel" /t REG_DWORD /d 1 /f > NUL 2>&1
  40.  
  41. REM Remove Pin to start
  42. reg delete "HKEY_CLASSES_ROOT\*\shell\pintostartscreen" /f > NUL 2>&1
  43. reg delete "HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\PintoStartScreen" /f > NUL 2>&1
  44. reg delete "HKEY_CLASSES_ROOT\exefile\shellex\ContextMenuHandlers\PintoStartScreen" /f > NUL 2>&1
  45. reg delete "HKEY_CLASSES_ROOT\exefile\shell\pintostartscreen" /f > NUL 2>&1
  46. reg delete "HKEY_CLASSES_ROOT\exefile\shellex\ContextMenuHandlers\PintoStartScreen" /f > NUL 2>&1
  47. reg delete "HKEY_CLASSES_ROOT\Folder\shell\pintostartscreen" /f > NUL 2>&1
  48. reg delete "HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\PintoStartScreen" /f > NUL 2>&1
  49. reg delete "HKEY_CLASSES_ROOT\mscfile\shell\pintostartscreen" /f > NUL 2>&1
  50. reg delete "HKEY_CLASSES_ROOT\mscfile\shellex\ContextMenuHandlers\PintoStartScreen" /f > NUL 2>&1
  51.  
  52. REM Classic vertical icon spacing
  53. reg add "HKCU\Control Panel\Desktop\WindowMetrics" /v "IconVerticalSpacing" /t REG_SZ /d "-1150" /f > NUL 2>&1
  54.  
  55. REM Remove telemetry and data collection
  56. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata" /v PreventDeviceMetadataFromNetwork /t REG_DWORD /d 1 /f > NUL 2>&1
  57. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f > NUL 2>&1
  58. reg add "HKLM\SOFTWARE\Policies\Microsoft\MRT" /v DontOfferThroughWUAU /t REG_DWORD /d 1 /f > NUL 2>&1
  59. reg add "HKLM\SOFTWARE\Policies\Microsoft\SQMClient\Windows" /v "CEIPEnable" /t REG_DWORD /d 0 /f > NUL 2>&1
  60. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "AITEnable" /t REG_DWORD /d 0 /f > NUL 2>&1
  61. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "DisableUAR" /t REG_DWORD /d 1 /f > NUL 2>&1
  62. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f > NUL 2>&1
  63.  
  64. REM Internet Explorer 11 tweaks
  65. reg add "HKCU\SOFTWARE\Microsoft\Internet Explorer\Main" /v "DoNotTrack" /t REG_DWORD /d 1 /f > NUL 2>&1
  66. reg add "HKCU\SOFTWARE\Microsoft\Internet Explorer\Main" /v "Search Page" /t REG_SZ /d "http://www.google.de" /f > NUL 2>&1
  67. reg add "HKCU\SOFTWARE\Microsoft\Internet Explorer\Main" /v "Start Page Redirect Cache" /t REG_SZ /d "http://www.google.de" /f > NUL 2>&1
  68. reg add "HKCU\SOFTWARE\Microsoft\Internet Explorer\Main" /v "DisableFirstRunCustomize" /t REG_DWORD /d 1 /f > NUL 2>&1
  69. reg add "HKCU\SOFTWARE\Microsoft\Internet Explorer\Main" /v "RunOnceHasShown" /t REG_DWORD /d 1 /f > NUL 2>&1
  70. reg add "HKCU\SOFTWARE\Microsoft\Internet Explorer\Main" /v "RunOnceComplete" /t REG_DWORD /d 1 /f > NUL 2>&1
  71. reg add "HKLM\SOFTWARE\Microsoft\Internet Explorer\Main" /v "DisableFirstRunCustomize" /t REG_DWORD /d 1 /f > NUL 2>&1
  72. reg add "HKLM\SOFTWARE\Microsoft\Internet Explorer\Main" /v "RunOnceHasShown" /t REG_DWORD /d 1 /f > NUL 2>&1
  73. reg add "HKLM\SOFTWARE\Microsoft\Internet Explorer\Main" /v "RunOnceComplete" /t REG_DWORD /d 1 /f > NUL 2>&1
  74. reg add "HKCU\Software\Policies\Microsoft\Internet Explorer\Main" /v "DisableFirstRunCustomize" /t REG_DWORD /d 1 /f > NUL 2>&1
  75. reg add "HKCU\Software\Policies\Microsoft\Internet Explorer\Main" /v "RunOnceHasShown" /t REG_DWORD /d 1 /f > NUL 2>&1
  76. reg add "HKCU\Software\Policies\Microsoft\Internet Explorer\Main" /v "RunOnceComplete" /t REG_DWORD /d 1 /f > NUL 2>&1
  77.  
  78. REM Disable Cortana / Bing Search and Searchbar
  79. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "AllowCortana" /t REG_DWORD /d 0 /f > NUL 2>&1
  80. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "CortanaEnabled" /t REG_DWORD /d 0 /f > NUL 2>&1
  81. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "SearchboxTaskbarMode" /t REG_DWORD /d 4 /f > NUL 2>&1
  82. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "BingSearchEnabled" /t REG_DWORD /d 0 /f > NUL 2>&1
  83.  
  84. REM Change Logon screen background with accent color
  85. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v "DisableLogonBackgroundImage" /t REG_DWORD /d 1 /f > NUL 2>&1
  86.  
  87. ECHO Done...
  88.  
  89. REM ======================= Removing services =======================
  90. ECHO.
  91. :servstart
  92. set /p services="Apply services tweaks? y/n: "
  93. if '%services%' == 'n' goto schedstart
  94. if /i "%services%" neq "n" if /i "%services%" neq "y" goto servstart
  95.  
  96. sc config DiagTrack start= disabled > NUL 2>&1
  97. sc config diagnosticshub.standardcollector.service start= disabled > NUL 2>&1
  98. sc config dmwappushservice start= disabled > NUL 2>&1
  99. sc config TrkWks start= disabled > NUL 2>&1
  100. sc config WMPNetworkSvc start= disabled > NUL 2>&1
  101. sc config WSearch start= disabled > NUL 2>&1
  102. sc config SysMain start= disabled > NUL 2>&1
  103.  
  104. ECHO Done...
  105.  
  106. REM ======================= Removing scheduled tasks =======================
  107. ECHO.
  108. :schedstart
  109. set /p schedules="Apply task schedule tweaks? y/n: "
  110. if '%schedules%' == 'n' goto winappstart
  111. if /i "%schedules%" neq "n" if /i "%schedules%" neq "y" goto schedstart
  112.  
  113. schtasks /Change /TN "Microsoft\Windows\AppID\SmartScreenSpecific" /Disable > NUL 2>&1
  114. schtasks /Change /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /Disable > NUL 2>&1
  115. schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Consolidator" /Disable > NUL 2>&1
  116. schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" /Disable > NUL 2>&1
  117. schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" /Disable > NUL 2>&1
  118. schtasks /Change /TN "Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" /Disable > NUL 2>&1
  119. schtasks /Change /TN "Microsoft\Windows\NetTrace\GatherNetworkInfo" /Disable > NUL 2>&1
  120. schtasks /Change /TN "Microsoft\Windows\Windows Error Reporting\QueueReporting" /Disable > NUL 2>&1
  121.  
  122. ECHO Done...
  123.  
  124. REM ======================= Removing Windows default apps =======================
  125. ECHO.
  126. :winappstart
  127. set /p winapps="Remove windows default apps? y/n: "
  128. if '%winapps%' == 'n' goto odrivestart
  129. if /i "%winapps%" neq "n" if /i "%winapps%" neq "y" goto winappstart
  130.  
  131. powershell "Get-AppxPackage *3d* | Remove-AppxPackage" > NUL 2>&1
  132. powershell "Get-AppxPackage *bing* | Remove-AppxPackage" > NUL 2>&1
  133. powershell "Get-AppxPackage *solit* | Remove-AppxPackage" > NUL 2>&1
  134. powershell "Get-AppxPackage *people* | Remove-AppxPackage" > NUL 2>&1
  135. powershell "Get-AppxPackage *zune* | Remove-AppxPackage" > NUL 2>&1
  136. powershell "Get-AppxPackage *photos* | Remove-AppxPackage" > NUL 2>&1
  137. powershell "Get-AppxPackage *phone* | Remove-AppxPackage" > NUL 2>&1
  138. powershell "Get-AppxPackage *communi* | Remove-AppxPackage" > NUL 2>&1
  139.  
  140. ECHO Done...
  141.  
  142. REM ======================= Removing OneDrive =======================
  143. ECHO.
  144. :odrivestart
  145. set /p onedrive="Uninstall OneDrive? y/n: "
  146. if '%onedrive%' == 'n' goto hoststart
  147. if /i "%onedrive%" neq "n" if /i "%onedrive%" neq "y" goto odrivestart
  148.  
  149. set x86="%SYSTEMROOT%\System32\OneDriveSetup.exe"
  150. set x64="%SYSTEMROOT%\SysWOW64\OneDriveSetup.exe"
  151. taskkill /f /im OneDrive.exe > NUL 2>&1
  152. ping 127.0.0.1 -n 5 > NUL 2>&1
  153. if exist %x64% (
  154. %x64% /uninstall
  155. ) else (
  156. %x86% /uninstall
  157. )
  158. ping 127.0.0.1 -n 5 > NUL 2>&1
  159. rd "%USERPROFILE%\OneDrive" /Q /S > NUL 2>&1
  160. rd "C:\OneDriveTemp" /Q /S > NUL 2>&1
  161. rd "%LOCALAPPDATA%\Microsoft\OneDrive" /Q /S > NUL 2>&1
  162. rd "%PROGRAMDATA%\Microsoft OneDrive" /Q /S > NUL 2>&1
  163. REG DELETE "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f > NUL 2>&1
  164. REG DELETE "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f > NUL 2>&1
  165.  
  166. ECHO Done...
  167.  
  168. REM ======================= Blocking Telemetry Servers =======================
  169. ECHO.
  170. :hoststart
  171. set /p hostsblock="Block Windows telemetry servers? y/n: "
  172. if '%hostsblock%' == 'n' goto finish
  173. if /i "%hostsblock%" neq "n" if /i "%hostsblock%" neq "y" goto hoststart
  174.  
  175. copy "%WINDIR%\system32\drivers\etc\hosts" "%WINDIR%\system32\drivers\etc\hosts.bak" > NUL 2>&1
  176. FIND /C /I "vortex.data.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  177. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 vortex.data.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  178. FIND /C /I "vortex-win.data.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  179. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 vortex-win.data.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  180. FIND /C /I "telecommand.telemetry.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  181. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 telecommand.telemetry.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  182. FIND /C /I "telecommand.telemetry.microsoft.com.nsatc.net" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  183. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 telecommand.telemetry.microsoft.com.nsatc.net>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  184. FIND /C /I "oca.telemetry.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  185. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 oca.telemetry.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  186. FIND /C /I "oca.telemetry.microsoft.com.nsatc.net" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  187. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 oca.telemetry.microsoft.com.nsatc.net>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  188. FIND /C /I "sqm.telemetry.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  189. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 sqm.telemetry.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  190. FIND /C /I "sqm.telemetry.microsoft.com.nsatc.net" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  191. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 sqm.telemetry.microsoft.com.nsatc.net>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  192. FIND /C /I "watson.telemetry.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  193. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 watson.telemetry.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  194. FIND /C /I "watson.telemetry.microsoft.com.nsatc.net" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  195. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 watson.telemetry.microsoft.com.nsatc.net>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  196. FIND /C /I "redir.metaservices.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  197. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 redir.metaservices.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  198. FIND /C /I "choice.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  199. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 choice.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  200. FIND /C /I "choice.microsoft.com.nsatc.net" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  201. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 choice.microsoft.com.nsatc.net>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  202. FIND /C /I "df.telemetry.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  203. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 df.telemetry.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  204. FIND /C /I "reports.wes.df.telemetry.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  205. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 reports.wes.df.telemetry.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  206. FIND /C /I "services.wes.df.telemetry.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  207. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 services.wes.df.telemetry.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  208. FIND /C /I "sqm.df.telemetry.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  209. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 sqm.df.telemetry.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  210. FIND /C /I "telemetry.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  211. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 telemetry.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  212. FIND /C /I "watson.ppe.telemetry.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  213. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 watson.ppe.telemetry.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  214. FIND /C /I "telemetry.appex.bing.net" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  215. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 telemetry.appex.bing.net>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  216. FIND /C /I "telemetry.urs.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  217. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 telemetry.urs.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  218. FIND /C /I "telemetry.appex.bing.net:443" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  219. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 telemetry.appex.bing.net:443>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  220. FIND /C /I "settings-sandbox.data.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  221. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 settings-sandbox.data.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  222. FIND /C /I "vortex-sandbox.data.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  223. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 vortex-sandbox.data.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  224.  
  225. ECHO Done...
  226.  
  227. :finish
  228. ECHO.
  229. ECHO Installation complete.
  230. ECHO Press any key to exit.
  231. PAUSE > NUL
RAW Paste Data