Guest User

win10 debloat

a guest
Jul 31st, 2015
804
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.62 KB | None | 0 0
  1. ------------------------------------------------------------------------------------------------
  2.  
  3. @echo off
  4. cls
  5.  
  6. set x86="%SYSTEMROOT%\System32\OneDriveSetup.exe"
  7. set x64="%SYSTEMROOT%\SysWOW64\OneDriveSetup.exe"
  8.  
  9. echo Closing OneDrive process.
  10. echo.
  11. taskkill /f /im OneDrive.exe > NUL 2>&1
  12. ping 127.0.0.1 -n 5 > NUL 2>&1
  13.  
  14. echo Uninstalling OneDrive.
  15. echo.
  16. if exist %x64% (
  17. %x64% /uninstall
  18. ) else (
  19. %x86% /uninstall
  20. )
  21. ping 127.0.0.1 -n 5 > NUL 2>&1
  22.  
  23. echo Removing OneDrive leftovers.
  24. echo.
  25. rd "%USERPROFILE%\OneDrive" /Q /S > NUL 2>&1
  26. rd "C:\OneDriveTemp" /Q /S > NUL 2>&1
  27. rd "%LOCALAPPDATA%\Microsoft\OneDrive" /Q /S > NUL 2>&1
  28. rd "%PROGRAMDATA%\Microsoft OneDrive" /Q /S > NUL 2>&1
  29.  
  30. echo Removeing OneDrive from the Explorer Side Panel.
  31. echo.
  32. REG DELETE "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f > NUL 2>&1
  33. REG DELETE "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" /f > NUL 2>&1
  34.  
  35. pause
  36.  
  37. save as a .bat file to remove onedrive. run as admin.
  38.  
  39. ------------------------------------------------------------------------------------------------
  40.  
  41. 0.0.0.0 vortex.data.microsoft.com
  42. 0.0.0.0 vortex-win.data.microsoft.com
  43. 0.0.0.0 telecommand.telemetry.microsoft.com
  44. 0.0.0.0 telecommand.telemetry.microsoft.com.nsatc.net
  45. 0.0.0.0 oca.telemetry.microsoft.com
  46. 0.0.0.0 oca.telemetry.microsoft.com.nsatc.net
  47. 0.0.0.0 sqm.telemetry.microsoft.com
  48. 0.0.0.0 sqm.telemetry.microsoft.com.nsatc.net
  49. 0.0.0.0 watson.telemetry.microsoft.com
  50. 0.0.0.0 watson.telemetry.microsoft.com.nsatc.net
  51. 0.0.0.0 redir.metaservices.microsoft.com
  52. 0.0.0.0 choice.microsoft.com
  53. 0.0.0.0 choice.microsoft.com.nsatc.net
  54. 0.0.0.0 df.telemetry.microsoft.com
  55. 0.0.0.0 reports.wes.df.telemetry.microsoft.com
  56. 0.0.0.0 services.wes.df.telemetry.microsoft.com
  57. 0.0.0.0 sqm.df.telemetry.microsoft.com
  58. 0.0.0.0 telemetry.microsoft.com
  59. 0.0.0.0 watson.ppe.telemetry.microsoft.com
  60. 0.0.0.0 telemetry.appex.bing.net
  61. 0.0.0.0 telemetry.urs.microsoft.com
  62. 0.0.0.0 telemetry.appex.bing.net:443
  63. 0.0.0.0 settings-sandbox.data.microsoft.com
  64. 0.0.0.0 vortex-sandbox.data.microsoft.com
  65.  
  66. post in your windows host file to block microsoft tracking shit
  67.  
  68. ------------------------------------------------------------------------------------------------
  69.  
  70. Windows Registry Editor Version 5.00
  71.  
  72.  
  73. ; confirm delete
  74. [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer]
  75. "ConfirmFileDelete"=dword:00000001
  76.  
  77. [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search]
  78. "AllowCortana"=dword:00000000
  79.  
  80. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TapiSrv]
  81. "Start"=dword:00000004
  82.  
  83. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WbioSrvc]
  84. "Start"=dword:00000004
  85.  
  86.  
  87. some random reg shit. save as a .reg file. adds a confirm delete when moving something to the trash, stops some pointless services like telephone and biometrics, and stops cortana.
  88.  
  89. ------------------------------------------------------------------------------------------------
  90.  
  91. Windows Registry Editor Version 5.00
  92.  
  93. [HKEY_CLASSES_ROOT\*\shell\runas]
  94. @="Take Ownership"
  95. "NoWorkingDirectory"=""
  96.  
  97. [HKEY_CLASSES_ROOT\*\shell\runas\command]
  98. @="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
  99. "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
  100.  
  101. [HKEY_CLASSES_ROOT\Directory\shell\runas]
  102. @="Take Ownership"
  103. "NoWorkingDirectory"=""
  104.  
  105. [HKEY_CLASSES_ROOT\Directory\shell\runas\command]
  106. @="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
  107. "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
  108.  
  109. adds a take ownership command to your context menu. allows to take control of system files. needed to change, add to, or remove shit from the host file.
  110.  
  111. ------------------------------------------------------------------------------------------------
  112.  
  113. Windows Registry Editor Version 5.00
  114.  
  115.  
  116. ; Music
  117. [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}]
  118. [-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}]
  119.  
  120.  
  121. ; Downloads
  122. [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}]
  123. [-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{088e3905-0323-4b02-9826-5d99428e115f}]
  124.  
  125.  
  126. ; Pictures
  127. [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}]
  128. [-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{24ad3ad4-a569-4530-98e1-ab02f9417aa8}]
  129.  
  130.  
  131. ; Videos
  132. [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}]
  133. [-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}]
  134.  
  135.  
  136. ; Documents
  137. [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}]
  138. [-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{d3162b92-9365-467a-956b-92703aca08af}]
  139.  
  140.  
  141. ; Desktop
  142. [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}]
  143. [-HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}]
  144.  
  145. save as a .reg file. removes all the pointless folder crap (my pictures, my documents, and shit) in this pc.
  146.  
  147. ------------------------------------------------------------------------------------------------
  148.  
  149. Windows Registry Editor Version 5.00
  150.  
  151. [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Personalization]
  152. "NoLockScreen"=dword:00000001
  153.  
  154. removes the shitty tablet lock screen. boots straight to login screen nao. save as .reg file like the rest of the shitty reg files.
  155.  
  156. ------------------------------------------------------------------------------------------------
  157.  
  158. Get-AppxPackage -AllUsers -Name Microsoft.3DBuilder | Remove-AppxPackage
  159. Get-AppxPackage -AllUsers -Name Microsoft.Getstarted | Remove-AppxPackage
  160. Get-AppxPackage -AllUsers -Name Microsoft.MicrosoftOfficeHub | Remove-AppxPackage
  161. Get-AppxPackage -AllUsers -Name Microsoft.MicrosoftSolitaireCollection | Remove-AppxPackage
  162. Get-AppxPackage -AllUsers -Name Microsoft.SkypeApp | Remove-AppxPackage
  163. Get-AppxPackage -AllUsers -Name Microsoft.WindowsMaps | Remove-AppxPackage
  164. Get-AppxPackage -AllUsers -Name Microsoft.BingWeather | Remove-AppxPackage
  165. Get-AppxPackage -AllUsers -Name Microsoft.Office.OneNote | Remove-AppxPackage
  166. Get-AppxPackage -AllUsers -Name Microsoft.XboxApp | Remove-AppxPackage
  167. Get-AppxPackage -AllUsers -Name Microsoft.ZuneMusic | Remove-AppxPackage
  168. Get-AppxPackage -AllUsers -Name Microsoft.ZuneVideo | Remove-AppxPackage
  169. Get-AppxPackage -AllUsers -Name Microsoft.BingSports | Remove-AppxPackage
  170. Get-AppxPackage -AllUsers -Name Microsoft.BingNews | Remove-AppxPackage
  171. Get-AppxPackage -AllUsers -Name Microsoft.WindowsPhone | Remove-AppxPackage
  172. Get-AppxPackage -AllUsers -Name Microsoft.BingFinance | Remove-AppxPackage
  173. Get-AppxPackage -AllUsers -Name Microsoft.WindowsSoundRecorder | Remove-AppxPackage
  174. Get-AppxPackage -AllUsers -Name Microsoft.Windows.Photos | Remove-AppxPackage
  175. Get-AppxPackage -AllUsers -Name Microsoft.WindowsCamera | Remove-AppxPackage
  176. Get-AppxPackage -AllUsers -Name Microsoft.WindowsAlarms | Remove-AppxPackage
  177. Get-AppxPackage -AllUsers -Name Microsoft.People | Remove-AppxPackage
  178. Get-AppxPackage -AllUsers -Name Microsoft.MicrosoftEdge | Remove-AppxPackage
  179.  
  180. reposting the delete metro shit in pretty code format
  181.  
  182. ------------------------------------------------------------------------------------------------
  183.  
  184. sc delete DiagTrack
  185. sc delete dmwappushservice
  186. echo "" > C:\ProgramData\Microsoft\Diagnosis\ETLLogs\AutoLogger\AutoLogger-Diagtrack-Listener.etl
  187.  
  188. in admin command prompt to stop some tracking services.
  189.  
  190. ------------------------------------------------------------------------------------------------
  191.  
  192. Open up the Group Policy Editor by launching gpedit.msc as an administrator. Go through Computer Configuration > Administrative Templates > Windows Components > Data Collection and Preview Builds. Double click Telemetry, hit Disabled, then apply. NOTE: This only truly works in the Enterprise edition, but the final step provides a decent enough workaround for Pro users.
  193.  
  194. ------------------------------------------------------------------------------------------------
  195.  
  196. Open up the Registry Editor by launching regedit as an administrator. Go through HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection, select AllowTelemetry, change its value to 0, then apply.
  197.  
  198. only one that works is the host block on home and pro. the other two seems pointless.
  199.  
  200. ------------------------------------------------------------------------------------------------
  201.  
  202. f automatic driver installation is your problem, simply go to
  203. "Control Panel" > "Devices and Printers" > right click your PC's name / icon > "Device Installation Settings" > "No, let me choose what to do" > "Never install driver software from Windows Update"
  204.  
  205. how to stop windows from updating drivers for you like the botnet it is
  206.  
  207. ------------------------------------------------------------------------------------------------
  208.  
  209. Windows Registry Editor Version 5.00
  210.  
  211. [HKEY_CLASSES_ROOT\CLSID\{679f85cb-0220-4080-b29b-5540cc05aab6}\ShellFolder]
  212. "Attributes"=dword:a0600000
  213.  
  214.  
  215. [HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{679f85cb-0220-4080-b29b-5540cc05aab6}\ShellFolder]
  216. "Attributes"=dword:a0600000
  217.  
  218. remove quickview from file explorer
  219.  
  220. ------------------------------------------------------------------------------------------------
  221.  
  222. Frequent Problems:
  223.  
  224. Try typing "get-appxpackage", that will list all installed packages. If it failed, try copy-pasting one at a time, and be sure to run as admin.
  225.  
  226. ------------------------------------------------------------------------------------------------
  227.  
  228. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters]
  229. "EnableSuperfetch"=dword:00000000
  230. "EnablePrefetcher"=dword:00000000
  231.  
  232. disable prefetch and superfetch
  233.  
  234. ------------------------------------------------------------------------------------------------
  235.  
  236. Quoted from another anon:
  237.  
  238. cortana is really fucking hard to disable
  239.  
  240. personally what i did is take ownership of the folder using the following zip:
  241.  
  242. http://cdn5.howtogeek.com/wp-content/uploads/TakeOwnership.zip
  243.  
  244. right click on cortana process, open file location, right click on the folder and take ownership
  245.  
  246. kill the process and IMMEDIATELY change the folder name (add a 1 at the end of the folder), otherwise it will restart and will not let you disable cortana
  247.  
  248. this kills the default search bar, but I believe if you use classic shell the search still works just fine in the start menu
  249.  
  250. ------------------------------------------------------------------------------------------------
  251.  
  252. Windows Registry Editor Version 5.00
  253.  
  254. [HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\Explorer]
  255. "DisableNotificationCenter"=dword:00000001
  256.  
  257. To disable the action center
  258.  
  259. ------------------------------------------------------------------------------------------------
  260.  
  261. pro tip, don't install windows 10 with your ethernet cable plugged in and / or wifi on.
  262.  
  263. it prevents it from downloading and installing updates + drivers during installation.
  264.  
  265. install first, install drivers, set windows to not download and install drivers in device and printers pane by right clicking on your computer located in the devices and printers pane, and selecting device installation settings.
  266.  
  267. then connect to the internet
  268.  
  269. ------------------------------------------------------------------------------------------------
  270.  
  271. REMINDER THAT EVEN IF YOU REMOVE ALL THE BLOATS, WINDOWS WILL DOWNLOAD THEM ALL RIGHT BACK WHEN YOU UPDATE THE STORE APP.
  272.  
  273. REMINDER TO REMOVE STORE APP AND DISABLE THE STORE UPDATE ON WINDOWS UPDATE.
  274.  
  275. ------------------------------------------------------------------------------------------------
  276.  
  277. disable cortana and her botness in gpedit.msc
  278.  
  279. no need for regedit tweaks
  280.  
  281. ------------------------------------------------------------------------------------------------
  282.  
  283. disable location completely in gpedit.msc
  284.  
  285. can also disable sensors if you have them, and even if you don't
Advertisement
Add Comment
Please, Sign In to add comment