Advertisement
marlonungos

Windows S: Remove-Windows10-Bloat

Feb 6th, 2020
780
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @rem *** Disable Some Service ***
  2. sc stop DiagTrack
  3. sc stop diagnosticshub.standardcollector.service
  4. sc stop dmwappushservice
  5. sc stop WMPNetworkSvc
  6. sc stop WSearch
  7.  
  8. sc config DiagTrack start= disabled
  9. sc config diagnosticshub.standardcollector.service start= disabled
  10. sc config dmwappushservice start= disabled
  11. REM sc config RemoteRegistry start= disabled
  12. REM sc config TrkWks start= disabled
  13. sc config WMPNetworkSvc start= disabled
  14. sc config WSearch start= disabled
  15. REM sc config SysMain start= disabled
  16.  
  17. REM *** SCHEDULED TASKS tweaks ***
  18. REM schtasks /Change /TN "Microsoft\Windows\AppID\SmartScreenSpecific" /Disable
  19. schtasks /Change /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /Disable
  20. schtasks /Change /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater" /Disable
  21. schtasks /Change /TN "Microsoft\Windows\Application Experience\StartupAppTask" /Disable
  22. schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Consolidator" /Disable
  23. schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" /Disable
  24. schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" /Disable
  25. schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Uploader" /Disable
  26. schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyUpload" /Disable
  27. schtasks /Change /TN "Microsoft\Office\OfficeTelemetryAgentLogOn" /Disable
  28. schtasks /Change /TN "Microsoft\Office\OfficeTelemetryAgentFallBack" /Disable
  29. schtasks /Change /TN "Microsoft\Office\Office 15 Subscription Heartbeat" /Disable
  30.  
  31. REM schtasks /Change /TN "Microsoft\Windows\Autochk\Proxy" /Disable
  32. REM schtasks /Change /TN "Microsoft\Windows\CloudExperienceHost\CreateObjectTask" /Disable
  33. REM schtasks /Change /TN "Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" /Disable
  34. REM schtasks /Change /TN "Microsoft\Windows\DiskFootprint\Diagnostics" /Disable *** Not sure if should be disabled, maybe related to S.M.A.R.T.
  35. REM schtasks /Change /TN "Microsoft\Windows\FileHistory\File History (maintenance mode)" /Disable
  36. REM schtasks /Change /TN "Microsoft\Windows\Maintenance\WinSAT" /Disable
  37. REM schtasks /Change /TN "Microsoft\Windows\NetTrace\GatherNetworkInfo" /Disable
  38. REM schtasks /Change /TN "Microsoft\Windows\PI\Sqm-Tasks" /Disable
  39. REM The stubborn task Microsoft\Windows\SettingSync\BackgroundUploadTask can be Disabled using a simple bit change. I use a REG file for that (attached to this post).
  40. REM schtasks /Change /TN "Microsoft\Windows\Time Synchronization\ForceSynchronizeTime" /Disable
  41. REM schtasks /Change /TN "Microsoft\Windows\Time Synchronization\SynchronizeTime" /Disable
  42. REM schtasks /Change /TN "Microsoft\Windows\Windows Error Reporting\QueueReporting" /Disable
  43. REM schtasks /Change /TN "Microsoft\Windows\WindowsUpdate\Automatic App Update" /Disable
  44.  
  45.  
  46. @rem *** Remove Telemetry & Data Collection ***
  47. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata" /v PreventDeviceMetadataFromNetwork /t REG_DWORD /d 1 /f
  48. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f
  49. reg add "HKLM\SOFTWARE\Policies\Microsoft\MRT" /v DontOfferThroughWUAU /t REG_DWORD /d 1 /f
  50. reg add "HKLM\SOFTWARE\Policies\Microsoft\SQMClient\Windows" /v "CEIPEnable" /t REG_DWORD /d 0 /f
  51. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "AITEnable" /t REG_DWORD /d 0 /f
  52. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "DisableUAR" /t REG_DWORD /d 1 /f
  53. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f
  54. reg add "HKLM\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\AutoLogger-Diagtrack-Listener" /v "Start" /t REG_DWORD /d 0 /f
  55. reg add "HKLM\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\SQMLogger" /v "Start" /t REG_DWORD /d 0 /f
  56.  
  57. @REM Settings -> Privacy -> General -> Let apps use my advertising ID...
  58. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo" /v Enabled /t REG_DWORD /d 0 /f
  59. REM - SmartScreen Filter for Store Apps: Disable
  60. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost" /v EnableWebContentEvaluation /t REG_DWORD /d 0 /f
  61. REM - Let websites provide locally...
  62. reg add "HKCU\Control Panel\International\User Profile" /v HttpAcceptLanguageOptOut /t REG_DWORD /d 1 /f
  63.  
  64. @REM WiFi Sense: HotSpot Sharing: Disable
  65. reg add "HKLM\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting" /v value /t REG_DWORD /d 0 /f
  66. @REM WiFi Sense: Shared HotSpot Auto-Connect: Disable
  67. reg add "HKLM\Software\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots" /v value /t REG_DWORD /d 0 /f
  68.  
  69. @REM Change Windows Updates to "Notify to schedule restart"
  70. reg add "HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v UxOption /t REG_DWORD /d 1 /f
  71. @REM Disable P2P Update downlods outside of local network
  72. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" /v DODownloadMode /t REG_DWORD /d 0 /f
  73.  
  74.  
  75. REM *** Hide the search box from taskbar. You can still search by pressing the Win key and start typing what you're looking for ***
  76. REM 0 = hide completely, 1 = show only icon, 2 = show long search box
  77. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "SearchboxTaskbarMode" /t REG_DWORD /d 0 /f
  78.  
  79. REM *** Disable MRU lists (jump lists) of XAML apps in Start Menu ***
  80. reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_TrackDocs" /t REG_DWORD /d 0 /f
  81.  
  82. REM *** Set Windows Explorer to start on This PC instead of Quick Access ***
  83. REM 1 = This PC, 2 = Quick access
  84. REM reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "LaunchTo" /t REG_DWORD /d 1 /f
  85.  
  86. @rem Remove Apps
  87. PowerShell -Command "Get-AppxPackage *3DBuilder* | Remove-AppxPackage"
  88. PowerShell -Command "Get-AppxPackage *Getstarted* | Remove-AppxPackage"
  89. PowerShell -Command "Get-AppxPackage *WindowsAlarms* | Remove-AppxPackage"
  90. PowerShell -Command "Get-AppxPackage *WindowsCamera* | Remove-AppxPackage"
  91. PowerShell -Command "Get-AppxPackage *bing* | Remove-AppxPackage"
  92. PowerShell -Command "Get-AppxPackage *MicrosoftOfficeHub* | Remove-AppxPackage"
  93. PowerShell -Command "Get-AppxPackage *OneNote* | Remove-AppxPackage"
  94. PowerShell -Command "Get-AppxPackage *people* | Remove-AppxPackage"
  95. PowerShell -Command "Get-AppxPackage *WindowsPhone* | Remove-AppxPackage"
  96. PowerShell -Command "Get-AppxPackage *photos* | Remove-AppxPackage"
  97. PowerShell -Command "Get-AppxPackage *SkypeApp* | Remove-AppxPackage"
  98. PowerShell -Command "Get-AppxPackage *solit* | Remove-AppxPackage"
  99. PowerShell -Command "Get-AppxPackage *WindowsSoundRecorder* | Remove-AppxPackage"
  100. PowerShell -Command "Get-AppxPackage *windowscommunicationsapps* | Remove-AppxPackage"
  101. PowerShell -Command "Get-AppxPackage *zune* | Remove-AppxPackage"
  102. REM PowerShell -Command "Get-AppxPackage *WindowsCalculator* | Remove-AppxPackage"
  103. REM PowerShell -Command "Get-AppxPackage *WindowsMaps* | Remove-AppxPackage"
  104. PowerShell -Command "Get-AppxPackage *Sway* | Remove-AppxPackage"
  105. PowerShell -Command "Get-AppxPackage *CommsPhone* | Remove-AppxPackage"
  106. PowerShell -Command "Get-AppxPackage *ConnectivityStore* | Remove-AppxPackage"
  107. PowerShell -Command "Get-AppxPackage *Microsoft.Messaging* | Remove-AppxPackage"
  108. PowerShell -Command "Get-AppxPackage *Facebook* | Remove-AppxPackage"
  109. PowerShell -Command "Get-AppxPackage *Twitter* | Remove-AppxPackage"
  110. PowerShell -Command "Get-AppxPackage *Drawboard PDF* | Remove-AppxPackage"
  111.  
  112.  
  113. @rem NOW JUST SOME TWEAKS
  114. REM *** Show hidden files in Explorer ***
  115. REM reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Hidden" /t REG_DWORD /d 1 /f
  116.  
  117. REM *** Show super hidden system files in Explorer ***
  118. REM reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowSuperHidden" /t REG_DWORD /d 1 /f
  119.  
  120. REM *** Show file extensions in Explorer ***
  121. reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t  REG_DWORD /d 0 /f
  122.  
  123.  
  124.  
  125. REM *** Uninstall OneDrive ***
  126. start /wait "" "%SYSTEMROOT%\SYSWOW64\ONEDRIVESETUP.EXE" /UNINSTALL
  127. rd C:\OneDriveTemp /Q /S >NUL 2>&1
  128. rd "%USERPROFILE%\OneDrive" /Q /S >NUL 2>&1
  129. rd "%LOCALAPPDATA%\Microsoft\OneDrive" /Q /S >NUL 2>&1
  130. rd "%PROGRAMDATA%\Microsoft OneDrive" /Q /S >NUL 2>&1
  131. reg add "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder" /f /v Attributes /t REG_DWORD /d 0 >NUL 2>&1
  132. reg add "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder" /f /v Attributes /t REG_DWORD /d 0 >NUL 2>&1
  133. echo OneDrive has been removed. Windows Explorer needs to be restarted.
  134. pause
  135. start /wait TASKKILL /F /IM explorer.exe
  136. start explorer.exe
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement