Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2015
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.37 KB | None | 0 0
  1. @ECHO OFF
  2. COLOR 1F
  3. TITLE Windows 10 TNBT: The Next Big Tweak v1.3 (x64)
  4. ECHO #########################################################
  5. ECHO # #
  6. ECHO # WINDOWS 10 BUILD 10240 X64 TNBT: THE NEXT BIG TWEAK #
  7. ECHO # #
  8. ECHO # CURRENT REVISION: 1.3 #
  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 Indicate compressed NTFS files
  42. reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowCompColor" /t RED_DWORD /d 1 /f > NUL 2>&1
  43.  
  44. REM Remove Pin to start
  45. reg delete "HKEY_CLASSES_ROOT\*\shell\pintostartscreen" /f > NUL 2>&1
  46. reg delete "HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\PintoStartScreen" /f > NUL 2>&1
  47. reg delete "HKEY_CLASSES_ROOT\exefile\shellex\ContextMenuHandlers\PintoStartScreen" /f > NUL 2>&1
  48. reg delete "HKEY_CLASSES_ROOT\exefile\shell\pintostartscreen" /f > NUL 2>&1
  49. reg delete "HKEY_CLASSES_ROOT\exefile\shellex\ContextMenuHandlers\PintoStartScreen" /f > NUL 2>&1
  50. reg delete "HKEY_CLASSES_ROOT\Folder\shell\pintostartscreen" /f > NUL 2>&1
  51. reg delete "HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\PintoStartScreen" /f > NUL 2>&1
  52. reg delete "HKEY_CLASSES_ROOT\mscfile\shell\pintostartscreen" /f > NUL 2>&1
  53. reg delete "HKEY_CLASSES_ROOT\mscfile\shellex\ContextMenuHandlers\PintoStartScreen" /f > NUL 2>&1
  54.  
  55. REM Classic vertical icon spacing
  56. reg add "HKCU\Control Panel\Desktop\WindowMetrics" /v "IconVerticalSpacing" /t REG_SZ /d "-1150" /f > NUL 2>&1
  57.  
  58. REM Remove versioning tab from properties
  59. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v NoPreviousVersionsPage /t REG_DWORD /d 1 /f > NUL 2>&1
  60.  
  61. REM Disable jump lists
  62. reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_TrackDocs" /t REG_DWORD /d 0 /f > NUL 2>&1
  63.  
  64. REM Remove telemetry and data collection
  65. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata" /v PreventDeviceMetadataFromNetwork /t REG_DWORD /d 1 /f > NUL 2>&1
  66. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f > NUL 2>&1
  67. reg add "HKLM\SOFTWARE\Policies\Microsoft\MRT" /v DontOfferThroughWUAU /t REG_DWORD /d 1 /f > NUL 2>&1
  68. reg add "HKLM\SOFTWARE\Policies\Microsoft\SQMClient\Windows" /v "CEIPEnable" /t REG_DWORD /d 0 /f > NUL 2>&1
  69. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "AITEnable" /t REG_DWORD /d 0 /f > NUL 2>&1
  70. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "DisableUAR" /t REG_DWORD /d 1 /f > NUL 2>&1
  71. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f > NUL 2>&1
  72. reg add "HKLM\COMPONENTS\DerivedData\Components\amd64_microsoft-windows-c..lemetry.lib.cortana_31bf3856ad364e35_10.0.10240.16384_none_40ba2ec3d03bceb0" /v "f!dss-winrt-telemetry.js" /t REG_DWORD /d 0 /f > NUL 2>&1
  73. reg add "HKLM\COMPONENTS\DerivedData\Components\amd64_microsoft-windows-c..lemetry.lib.cortana_31bf3856ad364e35_10.0.10240.16384_none_40ba2ec3d03bceb0" /v "f!proactive-telemetry.js" /t REG_DWORD /d 0 /f > NUL 2>&1
  74. reg add "HKLM\COMPONENTS\DerivedData\Components\amd64_microsoft-windows-c..lemetry.lib.cortana_31bf3856ad364e35_10.0.10240.16384_none_40ba2ec3d03bceb0" /v "f!proactive-telemetry-event_8ac43a41e5030538" /t REG_DWORD /d 0 /f > NUL 2>&1
  75. reg add "HKLM\COMPONENTS\DerivedData\Components\amd64_microsoft-windows-c..lemetry.lib.cortana_31bf3856ad364e35_10.0.10240.16384_none_40ba2ec3d03bceb0" /v "f!proactive-telemetry-inter_58073761d33f144b" /t REG_DWORD /d 0 /f > NUL 2>&1
  76.  
  77. REM Internet Explorer 11 tweaks
  78. reg add "HKCU\SOFTWARE\Microsoft\Internet Explorer\Main" /v "DoNotTrack" /t REG_DWORD /d 1 /f > NUL 2>&1
  79. reg add "HKCU\SOFTWARE\Microsoft\Internet Explorer\Main" /v "Search Page" /t REG_SZ /d "http://www.google.de" /f > NUL 2>&1
  80. 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
  81. reg add "HKCU\SOFTWARE\Microsoft\Internet Explorer\Main" /v "DisableFirstRunCustomize" /t REG_DWORD /d 1 /f > NUL 2>&1
  82. reg add "HKCU\SOFTWARE\Microsoft\Internet Explorer\Main" /v "RunOnceHasShown" /t REG_DWORD /d 1 /f > NUL 2>&1
  83. reg add "HKCU\SOFTWARE\Microsoft\Internet Explorer\Main" /v "RunOnceComplete" /t REG_DWORD /d 1 /f > NUL 2>&1
  84. reg add "HKLM\SOFTWARE\Microsoft\Internet Explorer\Main" /v "DisableFirstRunCustomize" /t REG_DWORD /d 1 /f > NUL 2>&1
  85. reg add "HKLM\SOFTWARE\Microsoft\Internet Explorer\Main" /v "RunOnceHasShown" /t REG_DWORD /d 1 /f > NUL 2>&1
  86. reg add "HKLM\SOFTWARE\Microsoft\Internet Explorer\Main" /v "RunOnceComplete" /t REG_DWORD /d 1 /f > NUL 2>&1
  87. reg add "HKCU\Software\Policies\Microsoft\Internet Explorer\Main" /v "DisableFirstRunCustomize" /t REG_DWORD /d 1 /f > NUL 2>&1
  88. reg add "HKCU\Software\Policies\Microsoft\Internet Explorer\Main" /v "RunOnceHasShown" /t REG_DWORD /d 1 /f > NUL 2>&1
  89. reg add "HKCU\Software\Policies\Microsoft\Internet Explorer\Main" /v "RunOnceComplete" /t REG_DWORD /d 1 /f > NUL 2>&1
  90.  
  91. REM Disable Cortana / Bing Search and Searchbar
  92. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "AllowCortana" /t REG_DWORD /d 0 /f > NUL 2>&1
  93. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "CortanaEnabled" /t REG_DWORD /d 0 /f > NUL 2>&1
  94. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "SearchboxTaskbarMode" /t REG_DWORD /d 4 /f > NUL 2>&1
  95. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "BingSearchEnabled" /t REG_DWORD /d 0 /f > NUL 2>&1
  96.  
  97. REM Change Logon screen background with accent color
  98. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v "DisableLogonBackgroundImage" /t REG_DWORD /d 1 /f > NUL 2>&1
  99.  
  100. ECHO Done...
  101.  
  102. REM ======================= Removing services =======================
  103. ECHO.
  104. :servstart
  105. set /p services="Apply services tweaks? y/n: "
  106. if '%services%' == 'n' goto schedstart
  107. if /i "%services%" neq "n" if /i "%services%" neq "y" goto servstart
  108.  
  109. sc config DiagTrack start= disabled > NUL 2>&1
  110. sc config diagnosticshub.standardcollector.service start= disabled > NUL 2>&1
  111. sc config dmwappushservice start= disabled > NUL 2>&1
  112. sc config TrkWks start= disabled > NUL 2>&1
  113. sc config WMPNetworkSvc start= disabled > NUL 2>&1
  114. sc config WSearch start= disabled > NUL 2>&1
  115. sc config SysMain start= disabled > NUL 2>&1
  116. sc config Bits start= disabled > NUL 2>&1
  117. sc config WinDefend start= disabled > NUL 2>&1
  118.  
  119. ECHO Done...
  120.  
  121. REM ======================= Removing scheduled tasks =======================
  122. ECHO.
  123. :schedstart
  124. set /p schedules="Apply task schedule tweaks? y/n: "
  125. if '%schedules%' == 'n' goto winappstart
  126. if /i "%schedules%" neq "n" if /i "%schedules%" neq "y" goto schedstart
  127.  
  128. schtasks /Change /TN "Microsoft\Windows\AppID\SmartScreenSpecific" /Disable > NUL 2>&1
  129. schtasks /Change /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /Disable > NUL 2>&1
  130. schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Consolidator" /Disable > NUL 2>&1
  131. schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" /Disable > NUL 2>&1
  132. schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" /Disable > NUL 2>&1
  133. schtasks /Change /TN "Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" /Disable > NUL 2>&1
  134. schtasks /Change /TN "Microsoft\Windows\NetTrace\GatherNetworkInfo" /Disable > NUL 2>&1
  135. schtasks /Change /TN "Microsoft\Windows\Windows Error Reporting\QueueReporting" /Disable > NUL 2>&1
  136.  
  137. ECHO Done...
  138.  
  139. REM ======================= Removing Windows default apps =======================
  140. ECHO.
  141. :winappstart
  142. set /p winapps="Remove windows default apps? y/n: "
  143. if '%winapps%' == 'n' goto odrivestart
  144. if /i "%winapps%" neq "n" if /i "%winapps%" neq "y" goto winappstart
  145.  
  146. powershell "Get-AppxPackage *3d* | Remove-AppxPackage" > NUL 2>&1
  147. powershell "Get-AppxPackage *bing* | Remove-AppxPackage" > NUL 2>&1
  148. powershell "Get-AppxPackage *solit* | Remove-AppxPackage" > NUL 2>&1
  149. powershell "Get-AppxPackage *people* | Remove-AppxPackage" > NUL 2>&1
  150. powershell "Get-AppxPackage *zune* | Remove-AppxPackage" > NUL 2>&1
  151. powershell "Get-AppxPackage *photos* | Remove-AppxPackage" > NUL 2>&1
  152. powershell "Get-AppxPackage *phone* | Remove-AppxPackage" > NUL 2>&1
  153. powershell "Get-AppxPackage *communi* | Remove-AppxPackage" > NUL 2>&1
  154.  
  155. ECHO Done...
  156.  
  157. REM ======================= Removing OneDrive =======================
  158. ECHO.
  159. :odrivestart
  160. set /p onedrive="Uninstall OneDrive? y/n: "
  161. if '%onedrive%' == 'n' goto hoststart
  162. if /i "%onedrive%" neq "n" if /i "%onedrive%" neq "y" goto odrivestart
  163.  
  164. set x86="%SYSTEMROOT%\System32\OneDriveSetup.exe"
  165. set x64="%SYSTEMROOT%\SysWOW64\OneDriveSetup.exe"
  166. taskkill /f /im OneDrive.exe > NUL 2>&1
  167. ping 127.0.0.1 -n 5 > NUL 2>&1
  168. if exist %x64% (
  169. %x64% /uninstall
  170. ) else (
  171. %x86% /uninstall
  172. )
  173. ping 127.0.0.1 -n 5 > NUL 2>&1
  174. rd "%USERPROFILE%\OneDrive" /Q /S > NUL 2>&1
  175. rd "C:\OneDriveTemp" /Q /S > NUL 2>&1
  176. rd "%LOCALAPPDATA%\Microsoft\OneDrive" /Q /S > NUL 2>&1
  177. rd "%PROGRAMDATA%\Microsoft OneDrive" /Q /S > NUL 2>&1
  178. REG DELETE "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f > NUL 2>&1
  179. REG DELETE "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f > NUL 2>&1
  180.  
  181. ECHO Done...
  182.  
  183. REM ======================= Blocking Telemetry Servers =======================
  184. ECHO.
  185. :hoststart
  186. set /p hostsblock="Block Windows telemetry servers? y/n: "
  187. if '%hostsblock%' == 'n' goto finish
  188. if /i "%hostsblock%" neq "n" if /i "%hostsblock%" neq "y" goto hoststart
  189.  
  190. copy "%WINDIR%\system32\drivers\etc\hosts" "%WINDIR%\system32\drivers\etc\hosts.bak" > NUL 2>&1
  191. FIND /C /I "vortex.data.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  192. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 vortex.data.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  193. FIND /C /I "vortex-win.data.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  194. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 vortex-win.data.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  195. FIND /C /I "telecommand.telemetry.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  196. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 telecommand.telemetry.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  197. FIND /C /I "telecommand.telemetry.microsoft.com.nsatc.net" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  198. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 telecommand.telemetry.microsoft.com.nsatc.net>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  199. FIND /C /I "oca.telemetry.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  200. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 oca.telemetry.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  201. FIND /C /I "oca.telemetry.microsoft.com.nsatc.net" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  202. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 oca.telemetry.microsoft.com.nsatc.net>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  203. FIND /C /I "sqm.telemetry.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  204. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 sqm.telemetry.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  205. FIND /C /I "sqm.telemetry.microsoft.com.nsatc.net" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  206. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 sqm.telemetry.microsoft.com.nsatc.net>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  207. FIND /C /I "watson.telemetry.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  208. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 watson.telemetry.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  209. FIND /C /I "watson.telemetry.microsoft.com.nsatc.net" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  210. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 watson.telemetry.microsoft.com.nsatc.net>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  211. FIND /C /I "redir.metaservices.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  212. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 redir.metaservices.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  213. FIND /C /I "choice.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  214. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 choice.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  215. FIND /C /I "choice.microsoft.com.nsatc.net" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  216. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 choice.microsoft.com.nsatc.net>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  217. FIND /C /I "df.telemetry.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  218. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 df.telemetry.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  219. FIND /C /I "reports.wes.df.telemetry.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  220. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 reports.wes.df.telemetry.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  221. FIND /C /I "services.wes.df.telemetry.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  222. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 services.wes.df.telemetry.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  223. FIND /C /I "sqm.df.telemetry.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  224. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 sqm.df.telemetry.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  225. FIND /C /I "telemetry.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  226. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 telemetry.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  227. FIND /C /I "watson.ppe.telemetry.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  228. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 watson.ppe.telemetry.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  229. FIND /C /I "telemetry.appex.bing.net" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  230. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 telemetry.appex.bing.net>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  231. FIND /C /I "telemetry.urs.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  232. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 telemetry.urs.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  233. FIND /C /I "telemetry.appex.bing.net:443" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  234. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 telemetry.appex.bing.net:443>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  235. FIND /C /I "settings-sandbox.data.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  236. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 settings-sandbox.data.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  237. FIND /C /I "vortex-sandbox.data.microsoft.com" %WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  238. IF %ERRORLEVEL% NEQ 0 ECHO ^0.0.0.0 vortex-sandbox.data.microsoft.com>>%WINDIR%\system32\drivers\etc\hosts > NUL 2>&1
  239.  
  240. ECHO Done...
  241.  
  242. :finish
  243. ECHO.
  244. ECHO Installation complete.
  245. ECHO Press any key to exit.
  246. PAUSE > NUL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement