Advertisement
Guest User

Untitled

a guest
May 25th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.41 KB | None | 0 0
  1. @echo off
  2.  
  3. @#############################
  4. @#### @Dan's Cleanup Tool @#####
  5. @#############################
  6.  
  7. color 1c
  8.  
  9. Echo - This process will attempt to speed up your machine. Please do not use your machine while this window is visible. This process may take some time.
  10.  
  11. REM Clean out App Data Temp files and Window Temp Files
  12.  
  13. cd %userprofile%\AppData\Local\Temp
  14. echo y | del *
  15. cd C:\Windows\Temp
  16. echo y | del *
  17.  
  18. cd c:\windows\system32
  19.  
  20. REM Cleanup old Windows Updates
  21.  
  22. Dism.exe /online /Cleanup-Image /StartComponentCleanup
  23.  
  24. REM Disable popup notifactions in Windows 10
  25.  
  26. echo Disabling Windows 10 Notifcations
  27.  
  28. REG ADD HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.SecurityAndMaintenance\ (DWORD) /t REG_DWORD /d 0 /f
  29.  
  30. REG ADD HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\PushNotifications /v ToastEnabled /t REG_DWORD /d 0 /f
  31.  
  32. Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings /v ToastEnabled /t REG_DWORD /d 0 /f
  33.  
  34. REM Disable Superfluous services
  35.  
  36. net stop "superfetch"
  37.  
  38. sc stop "SysMain" & sc config "SysMain" start=disabled
  39.  
  40. net stop "Windows Search"
  41.  
  42. sc config WSearch start= disabled
  43.  
  44. sc stop DiagTrack
  45. sc stop diagnosticshub.standardcollector.service
  46. sc stop dmwappushservice
  47. sc stop WMPNetworkSvc
  48. sc stop WSearch
  49.  
  50. sc config DiagTrack start= disabled
  51. sc config diagnosticshub.standardcollector.service start= disabled
  52. sc config dmwappushservice start= disabled
  53. REM sc config RemoteRegistry start= disabled
  54. REM sc config TrkWks start= disabled
  55. sc config WMPNetworkSvc start= disabled
  56. sc config WSearch start= disabled
  57. REM sc config SysMain start= disabled
  58.  
  59. REM Disable Hibernation
  60.  
  61. if '%1'=='ELEV' shift /1
  62. setlocal & pushd .
  63. cd /d %~dp0
  64.  
  65. powercfg /H off
  66.  
  67. REM Disable Cortana
  68.  
  69. taskkill /f /IM "SearchUI.exe"
  70. "%~dp0SetACL.exe" -on C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\SearchUI.exe -ot file -actn setprot -op "dacl:p_nc;sacl:p_nc"
  71. "%~dp0SetACL.exe" -on C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\SearchUI.exe -ot file -actn setowner -ownr "n:%USERNAME%"
  72. "%~dp0SetACL.exe" -on C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\SearchUI.exe -ot file -actn ace -ace "n:%USERNAME%;p:full"
  73. "%~dp0SetACL.exe" -on C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\SearchUI.exe -ot file -actn ace -ace "n:System;p:read"
  74. ren "C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\SearchUI.exe" "SearchUI.bak"
  75.  
  76. REM Disable Various Windows 10 Telemtry and Marketing/Data pushing services
  77.  
  78. schtasks /Change /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /Disable
  79. schtasks /Change /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater" /Disable
  80. schtasks /Change /TN "Microsoft\Windows\Application Experience\StartupAppTask" /Disable
  81. schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Consolidator" /Disable
  82. schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" /Disable
  83. schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" /Disable
  84. schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Uploader" /Disable
  85. schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyUpload" /Disable
  86. schtasks /Change /TN "Microsoft\Office\OfficeTelemetryAgentLogOn" /Disable
  87. schtasks /Change /TN "Microsoft\Office\OfficeTelemetryAgentFallBack" /Disable
  88. schtasks /Change /TN "Microsoft\Office\Office 15 Subscription Heartbeat" /Disable
  89.  
  90. schtasks /Change /TN "Microsoft\Windows\Autochk\Proxy" /Disable
  91. schtasks /Change /TN "Microsoft\Windows\FileHistory\File History (maintenance mode)" /Disable
  92. schtasks /Change /TN "Microsoft\Windows\Maintenance\WinSAT" /Disable
  93. schtasks /Change /TN "Microsoft\Windows\NetTrace\GatherNetworkInfo" /Disable
  94. schtasks /Change /TN "Microsoft\Windows\PI\Sqm-Tasks" /Disable
  95.  
  96. schtasks /Change /TN "Microsoft\Windows\Time Synchronization\ForceSynchronizeTime" /Disable
  97. schtasks /Change /TN "Microsoft\Windows\Time Synchronization\SynchronizeTime" /Disable
  98. schtasks /Change /TN "Microsoft\Windows\Windows Error Reporting\QueueReporting" /Disable
  99. schtasks /Change /TN "Microsoft\Windows\WindowsUpdate\Automatic App Update" /Disable
  100.  
  101. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata" /v PreventDeviceMetadataFromNetwork /t REG_DWORD /d 1 /f
  102. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f
  103. reg add "HKLM\SOFTWARE\Policies\Microsoft\MRT" /v DontOfferThroughWUAU /t REG_DWORD /d 1 /f
  104. reg add "HKLM\SOFTWARE\Policies\Microsoft\SQMClient\Windows" /v "CEIPEnable" /t REG_DWORD /d 0 /f
  105. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "AITEnable" /t REG_DWORD /d 0 /f
  106. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "DisableUAR" /t REG_DWORD /d 1 /f
  107. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f
  108. reg add "HKLM\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\AutoLogger-Diagtrack-Listener" /v "Start" /t REG_DWORD /d 0 /f
  109. reg add "HKLM\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\SQMLogger" /v "Start" /t REG_DWORD /d 0 /f
  110. @REM Settings -> Privacy -> General -> Let apps use my advertising ID...
  111. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo" /v Enabled /t REG_DWORD /d 0 /f
  112. REM - SmartScreen Filter for Store Apps: Disable
  113. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost" /v EnableWebContentEvaluation /t REG_DWORD /d 0 /f
  114. REM - Let websites provide locally...
  115. reg add "HKCU\Control Panel\International\User Profile" /v HttpAcceptLanguageOptOut /t REG_DWORD /d 1 /f
  116.  
  117. REM Disable Hotspot Sharing
  118.  
  119. @REM WiFi Sense: HotSpot Sharing: Disable
  120. reg add "HKLM\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting" /v value /t REG_DWORD /d 0 /f
  121. @REM WiFi Sense: Shared HotSpot Auto-Connect: Disable
  122. reg add "HKLM\Software\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots" /v value /t REG_DWORD /d 0 /f
  123.  
  124. @REM Change Windows Updates to "Notify to schedule restart"
  125. reg add "HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v UxOption /t REG_DWORD /d 1 /f
  126. @REM Disable P2P Update downlods outside of local network
  127. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" /v DODownloadMode /t REG_DWORD /d 0 /f
  128.  
  129. @REM *** Disable Cortana & Telemetry ***
  130. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "AllowCortana" /t REG_DWORD /d 0
  131.  
  132. REM *** Set Windows Explorer to start on This PC instead of Quick Access ***
  133. REM 1 = This PC, 2 = Quick access
  134. REM reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "LaunchTo" /t REG_DWORD /d 1 /f
  135.  
  136. REM *** Disable Suggestions in the Start Menu ***
  137. reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SystemPaneSuggestionsEnabled" /t REG_DWORD /d 0 /f
  138.  
  139. @rem Remove Apps
  140. PowerShell -Command "Get-AppxPackage *3DBuilder* | Remove-AppxPackage"
  141. PowerShell -Command "Get-AppxPackage *Cortana* | Remove-AppxPackage"
  142. PowerShell -Command "Get-AppxPackage *Getstarted* | Remove-AppxPackage"
  143. PowerShell -Command "Get-AppxPackage *WindowsAlarms* | Remove-AppxPackage"
  144. PowerShell -Command "Get-AppxPackage *people* | Remove-AppxPackage"
  145. PowerShell -Command "Get-AppxPackage *WindowsPhone* | Remove-AppxPackage"
  146. PowerShell -Command "Get-AppxPackage *solit* | Remove-AppxPackage"
  147. PowerShell -Command "Get-AppxPackage *WindowsSoundRecorder* | Remove-AppxPackage"
  148. PowerShell -Command "Get-AppxPackage *xbox* | Remove-AppxPackage"
  149. PowerShell -Command "Get-AppxPackage *windowscommunicationsapps* | Remove-AppxPackage"
  150. PowerShell -Command "Get-AppxPackage *zune* | Remove-AppxPackage"
  151. PowerShell -Command "Get-AppxPackage *WindowsMaps* | Remove-AppxPackage"
  152. PowerShell -Command "Get-AppxPackage *Sway* | Remove-AppxPackage"
  153. PowerShell -Command "Get-AppxPackage *CommsPhone* | Remove-AppxPackage"
  154. PowerShell -Command "Get-AppxPackage *ConnectivityStore* | Remove-AppxPackage"
  155. PowerShell -Command "Get-AppxPackage *Microsoft.Messaging* | Remove-AppxPackage"
  156. PowerShell -Command "Get-AppxPackage *ContentDeliveryManager* | Remove-AppxPackage"
  157. PowerShell -Command "Get-AppxPackage *Microsoft.WindowsStore* | Remove-AppxPackage"
  158.  
  159. REM Working on removing HP/DELL/INTEL/CYBERLINK BLOATWARE
  160.  
  161. Exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement