Advertisement
SORAW441

PutBackW10Bloat2021.bat

May 30th, 2021
1,890
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 5.93 KB | None | 0 0
  1. @rem *** Enable Services Back ***
  2. sc config DiagTrack start= auto
  3. sc config diagnosticshub.standardcollector.service start= auto
  4. sc config dmwappushservice start= auto
  5. sc config RemoteRegistry start= auto
  6. sc config TrkWks start= auto
  7. sc config WMPNetworkSvc start= auto
  8. sc config WSearch start= auto
  9. sc config SysMain start= auto
  10.  
  11. sc start DiagTrack
  12. sc start diagnosticshub.standardcollector.service
  13. sc start dmwappushservice
  14. sc start WMPNetworkSvc
  15. sc start WSearch
  16.  
  17. REM *** SCHEDULED TASKS tweaks ***
  18. schtasks /Change /TN "Microsoft\Windows\AppID\SmartScreenSpecific" /Enable
  19. schtasks /Change /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /Enable
  20. schtasks /Change /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater" /Enable
  21. schtasks /Change /TN "Microsoft\Windows\Application Experience\StartupAppTask" /Enable
  22. schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Consolidator" /Enable
  23. schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" /Enable
  24. schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" /Enable
  25. schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Uploader" /Enable
  26. schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyUpload" /Enable
  27. schtasks /Change /TN "Microsoft\Office\OfficeTelemetryAgentLogOn" /Enable
  28. schtasks /Change /TN "Microsoft\Office\OfficeTelemetryAgentFallBack" /Enable
  29. schtasks /Change /TN "Microsoft\Office\Office 15 Subscription Heartbeat" /Enable
  30.  
  31. schtasks /Change /TN "Microsoft\Windows\Autochk\Proxy" /Enable
  32. schtasks /Change /TN "Microsoft\Windows\CloudExperienceHost\CreateObjectTask" /Enable
  33. schtasks /Change /TN "Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" /Enable
  34. schtasks /Change /TN "Microsoft\Windows\DiskFootprint\Diagnostics" /Enable *** Not sure if should be disabled, maybe related to S.M.A.R.T.
  35. schtasks /Change /TN "Microsoft\Windows\FileHistory\File History (maintenance mode)" /Enable
  36. schtasks /Change /TN "Microsoft\Windows\Maintenance\WinSAT" /Enable
  37. schtasks /Change /TN "Microsoft\Windows\NetTrace\GatherNetworkInfo" /Enable
  38. schtasks /Change /TN "Microsoft\Windows\PI\Sqm-Tasks" /Enable
  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. schtasks /Change /TN "Microsoft\Windows\Time Synchronization\ForceSynchronizeTime" /Enable
  41. schtasks /Change /TN "Microsoft\Windows\Time Synchronization\SynchronizeTime" /Enable
  42. schtasks /Change /TN "Microsoft\Windows\Windows Error Reporting\QueueReporting" /Enable
  43. schtasks /Change /TN "Microsoft\Windows\WindowsUpdate\Automatic App Update" /Enable
  44.  
  45. REM *** Put Cortana back ***
  46. move "%windir%\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy.bak" "%windir%\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy"
  47. "%windir%\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy\SearchUI.exe"
  48.  
  49. @rem *** Remove Telemetry & Data Collection ***
  50. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata" /v PreventDeviceMetadataFromNetwork /t REG_DWORD /d 0 /f
  51. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 1 /f
  52. reg add "HKLM\SOFTWARE\Policies\Microsoft\MRT" /v DontOfferThroughWUAU /t REG_DWORD /d 0 /f
  53. reg add "HKLM\SOFTWARE\Policies\Microsoft\SQMClient\Windows" /v "CEIPEnable" /t REG_DWORD /d 1 /f
  54. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "AITEnable" /t REG_DWORD /d 1 /f
  55. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "DisableUAR" /t REG_DWORD /d 0 /f
  56. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 1 /f
  57. reg add "HKLM\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\AutoLogger-Diagtrack-Listener" /v "Start" /t REG_DWORD /d 1 /f
  58. reg add "HKLM\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\SQMLogger" /v "Start" /t REG_DWORD /d 1 /f
  59.  
  60.  
  61. @REM *** Enable Cortana & Telemetry ***
  62. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "AllowCortana" /t REG_DWORD /d 1
  63.  
  64. REM *** Hide the search box from taskbar. You can still search by pressing the Win key and start typing what you're looking for ***
  65. REM 0 = hide completely, 1 = show only icon, 2 = show long search box
  66. rem reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "SearchboxTaskbarMode" /t REG_DWORD /d 0 /f
  67.  
  68. REM *** Enable MRU lists (jump lists) of XAML apps in Start Menu ***
  69. reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_TrackDocs" /t REG_DWORD /d 1 /f
  70.  
  71. REM *** Set Quick Access to start on This PC instead of Windows Explorer ***
  72. REM 1 = This PC, 2 = Quick access
  73. REM reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "LaunchTo" /t REG_DWORD /d 2 /f
  74.  
  75. REM *** Enable Suggestions in the Start Menu ***
  76. reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SystemPaneSuggestionsEnabled" /t REG_DWORD /d 1 /f
  77.  
  78.  
  79. @rem Put Built-in Apps Back
  80. PowerShell -Command "Get-AppxPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}"
  81.  
  82.  
  83. @rem NOW JUST SOME TWEAKS
  84. REM *** Do not show hidden files in Explorer ***
  85. reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Hidden" /t REG_DWORD /d 0 /f
  86.  
  87. REM *** Hide super hidden system files in Explorer ***
  88. reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowSuperHidden" /t REG_DWORD /d 0 /f
  89.  
  90. REM *** Hide file extensions in Explorer ***
  91. reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t  REG_DWORD /d 1 /f
  92.  
  93.  
  94.  
  95. REM *** Install OneDrive ***
  96. start /wait "" "%SYSTEMROOT%\SYSWOW64\ONEDRIVESETUP.EXE"
  97.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement