Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- @#############################
- @#### @Dan's Cleanup Tool @#####
- @#############################
- color 1c
- 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.
- REM Clean out App Data Temp files and Window Temp Files
- cd %userprofile%\AppData\Local\Temp
- echo y | del *
- cd C:\Windows\Temp
- echo y | del *
- cd c:\windows\system32
- REM Cleanup old Windows Updates
- Dism.exe /online /Cleanup-Image /StartComponentCleanup
- REM Disable popup notifactions in Windows 10
- echo Disabling Windows 10 Notifcations
- REG ADD HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.SecurityAndMaintenance\ (DWORD) /t REG_DWORD /d 0 /f
- REG ADD HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\PushNotifications /v ToastEnabled /t REG_DWORD /d 0 /f
- Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings /v ToastEnabled /t REG_DWORD /d 0 /f
- REM Disable Superfluous services
- net stop "superfetch"
- sc stop "SysMain" & sc config "SysMain" start=disabled
- net stop "Windows Search"
- sc config WSearch start= disabled
- sc stop DiagTrack
- sc stop diagnosticshub.standardcollector.service
- sc stop dmwappushservice
- sc stop WMPNetworkSvc
- sc stop WSearch
- sc config DiagTrack start= disabled
- sc config diagnosticshub.standardcollector.service start= disabled
- sc config dmwappushservice start= disabled
- REM sc config RemoteRegistry start= disabled
- REM sc config TrkWks start= disabled
- sc config WMPNetworkSvc start= disabled
- sc config WSearch start= disabled
- REM sc config SysMain start= disabled
- REM Disable Hibernation
- if '%1'=='ELEV' shift /1
- setlocal & pushd .
- cd /d %~dp0
- powercfg /H off
- REM Disable Cortana
- taskkill /f /IM "SearchUI.exe"
- "%~dp0SetACL.exe" -on C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\SearchUI.exe -ot file -actn setprot -op "dacl:p_nc;sacl:p_nc"
- "%~dp0SetACL.exe" -on C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\SearchUI.exe -ot file -actn setowner -ownr "n:%USERNAME%"
- "%~dp0SetACL.exe" -on C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\SearchUI.exe -ot file -actn ace -ace "n:%USERNAME%;p:full"
- "%~dp0SetACL.exe" -on C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\SearchUI.exe -ot file -actn ace -ace "n:System;p:read"
- ren "C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\SearchUI.exe" "SearchUI.bak"
- REM Disable Various Windows 10 Telemtry and Marketing/Data pushing services
- schtasks /Change /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /Disable
- schtasks /Change /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater" /Disable
- schtasks /Change /TN "Microsoft\Windows\Application Experience\StartupAppTask" /Disable
- schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Consolidator" /Disable
- schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" /Disable
- schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" /Disable
- schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Uploader" /Disable
- schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyUpload" /Disable
- schtasks /Change /TN "Microsoft\Office\OfficeTelemetryAgentLogOn" /Disable
- schtasks /Change /TN "Microsoft\Office\OfficeTelemetryAgentFallBack" /Disable
- schtasks /Change /TN "Microsoft\Office\Office 15 Subscription Heartbeat" /Disable
- schtasks /Change /TN "Microsoft\Windows\Autochk\Proxy" /Disable
- schtasks /Change /TN "Microsoft\Windows\FileHistory\File History (maintenance mode)" /Disable
- schtasks /Change /TN "Microsoft\Windows\Maintenance\WinSAT" /Disable
- schtasks /Change /TN "Microsoft\Windows\NetTrace\GatherNetworkInfo" /Disable
- schtasks /Change /TN "Microsoft\Windows\PI\Sqm-Tasks" /Disable
- schtasks /Change /TN "Microsoft\Windows\Time Synchronization\ForceSynchronizeTime" /Disable
- schtasks /Change /TN "Microsoft\Windows\Time Synchronization\SynchronizeTime" /Disable
- schtasks /Change /TN "Microsoft\Windows\Windows Error Reporting\QueueReporting" /Disable
- schtasks /Change /TN "Microsoft\Windows\WindowsUpdate\Automatic App Update" /Disable
- reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata" /v PreventDeviceMetadataFromNetwork /t REG_DWORD /d 1 /f
- reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f
- reg add "HKLM\SOFTWARE\Policies\Microsoft\MRT" /v DontOfferThroughWUAU /t REG_DWORD /d 1 /f
- reg add "HKLM\SOFTWARE\Policies\Microsoft\SQMClient\Windows" /v "CEIPEnable" /t REG_DWORD /d 0 /f
- reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "AITEnable" /t REG_DWORD /d 0 /f
- reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "DisableUAR" /t REG_DWORD /d 1 /f
- reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f
- reg add "HKLM\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\AutoLogger-Diagtrack-Listener" /v "Start" /t REG_DWORD /d 0 /f
- reg add "HKLM\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\SQMLogger" /v "Start" /t REG_DWORD /d 0 /f
- @REM Settings -> Privacy -> General -> Let apps use my advertising ID...
- reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo" /v Enabled /t REG_DWORD /d 0 /f
- REM - SmartScreen Filter for Store Apps: Disable
- reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost" /v EnableWebContentEvaluation /t REG_DWORD /d 0 /f
- REM - Let websites provide locally...
- reg add "HKCU\Control Panel\International\User Profile" /v HttpAcceptLanguageOptOut /t REG_DWORD /d 1 /f
- REM Disable Hotspot Sharing
- @REM WiFi Sense: HotSpot Sharing: Disable
- reg add "HKLM\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting" /v value /t REG_DWORD /d 0 /f
- @REM WiFi Sense: Shared HotSpot Auto-Connect: Disable
- reg add "HKLM\Software\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots" /v value /t REG_DWORD /d 0 /f
- @REM Change Windows Updates to "Notify to schedule restart"
- reg add "HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v UxOption /t REG_DWORD /d 1 /f
- @REM Disable P2P Update downlods outside of local network
- reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" /v DODownloadMode /t REG_DWORD /d 0 /f
- @REM *** Disable Cortana & Telemetry ***
- reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "AllowCortana" /t REG_DWORD /d 0
- REM *** Set Windows Explorer to start on This PC instead of Quick Access ***
- REM 1 = This PC, 2 = Quick access
- REM reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "LaunchTo" /t REG_DWORD /d 1 /f
- REM *** Disable Suggestions in the Start Menu ***
- reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SystemPaneSuggestionsEnabled" /t REG_DWORD /d 0 /f
- @rem Remove Apps
- PowerShell -Command "Get-AppxPackage *3DBuilder* | Remove-AppxPackage"
- PowerShell -Command "Get-AppxPackage *Cortana* | Remove-AppxPackage"
- PowerShell -Command "Get-AppxPackage *Getstarted* | Remove-AppxPackage"
- PowerShell -Command "Get-AppxPackage *WindowsAlarms* | Remove-AppxPackage"
- PowerShell -Command "Get-AppxPackage *people* | Remove-AppxPackage"
- PowerShell -Command "Get-AppxPackage *WindowsPhone* | Remove-AppxPackage"
- PowerShell -Command "Get-AppxPackage *solit* | Remove-AppxPackage"
- PowerShell -Command "Get-AppxPackage *WindowsSoundRecorder* | Remove-AppxPackage"
- PowerShell -Command "Get-AppxPackage *xbox* | Remove-AppxPackage"
- PowerShell -Command "Get-AppxPackage *windowscommunicationsapps* | Remove-AppxPackage"
- PowerShell -Command "Get-AppxPackage *zune* | Remove-AppxPackage"
- PowerShell -Command "Get-AppxPackage *WindowsMaps* | Remove-AppxPackage"
- PowerShell -Command "Get-AppxPackage *Sway* | Remove-AppxPackage"
- PowerShell -Command "Get-AppxPackage *CommsPhone* | Remove-AppxPackage"
- PowerShell -Command "Get-AppxPackage *ConnectivityStore* | Remove-AppxPackage"
- PowerShell -Command "Get-AppxPackage *Microsoft.Messaging* | Remove-AppxPackage"
- PowerShell -Command "Get-AppxPackage *ContentDeliveryManager* | Remove-AppxPackage"
- PowerShell -Command "Get-AppxPackage *Microsoft.WindowsStore* | Remove-AppxPackage"
- REM Working on removing HP/DELL/INTEL/CYBERLINK BLOATWARE
- Exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement