Advertisement
Guest User

Windows10Fixes

a guest
Jul 18th, 2018
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.59 KB | None | 0 0
  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\FileHistory\File History (maintenance mode)" /Disable
  35. REM schtasks /Change /TN "Microsoft\Windows\Maintenance\WinSAT" /Disable
  36. REM schtasks /Change /TN "Microsoft\Windows\NetTrace\GatherNetworkInfo" /Disable
  37. REM schtasks /Change /TN "Microsoft\Windows\PI\Sqm-Tasks" /Disable
  38. 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).
  39. REM schtasks /Change /TN "Microsoft\Windows\Time Synchronization\ForceSynchronizeTime" /Disable
  40. REM schtasks /Change /TN "Microsoft\Windows\Time Synchronization\SynchronizeTime" /Disable
  41. REM schtasks /Change /TN "Microsoft\Windows\Windows Error Reporting\QueueReporting" /Disable
  42. REM schtasks /Change /TN "Microsoft\Windows\WindowsUpdate\Automatic App Update" /Disable
  43.  
  44.  
  45. @rem *** Remove Telemetry & Data Collection ***
  46. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata" /v PreventDeviceMetadataFromNetwork /t REG_DWORD /d 1 /f
  47. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f
  48. reg add "HKLM\SOFTWARE\Policies\Microsoft\MRT" /v DontOfferThroughWUAU /t REG_DWORD /d 1 /f
  49. reg add "HKLM\SOFTWARE\Policies\Microsoft\SQMClient\Windows" /v "CEIPEnable" /t REG_DWORD /d 0 /f
  50. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "AITEnable" /t REG_DWORD /d 0 /f
  51. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "DisableUAR" /t REG_DWORD /d 1 /f
  52. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f
  53. reg add "HKLM\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\AutoLogger-Diagtrack-Listener" /v "Start" /t REG_DWORD /d 0 /f
  54. reg add "HKLM\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\SQMLogger" /v "Start" /t REG_DWORD /d 0 /f
  55.  
  56. @REM Settings -> Privacy -> General -> Let apps use my advertising ID...
  57. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo" /v Enabled /t REG_DWORD /d 0 /f
  58. REM - SmartScreen Filter for Store Apps: Disable
  59. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost" /v EnableWebContentEvaluation /t REG_DWORD /d 0 /f
  60. REM - Let websites provide locally...
  61. reg add "HKCU\Control Panel\International\User Profile" /v HttpAcceptLanguageOptOut /t REG_DWORD /d 1 /f
  62.  
  63. @REM WiFi Sense: HotSpot Sharing: Disable
  64. reg add "HKLM\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting" /v value /t REG_DWORD /d 0 /f
  65. @REM WiFi Sense: Shared HotSpot Auto-Connect: Disable
  66. reg add "HKLM\Software\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots" /v value /t REG_DWORD /d 0 /f
  67.  
  68. @REM Change Windows Updates to "Notify to schedule restart"
  69. reg add "HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v UxOption /t REG_DWORD /d 1 /f
  70. @REM Disable P2P Update downlods outside of local network
  71. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" /v DODownloadMode /t REG_DWORD /d 0 /f
  72.  
  73.  
  74. REM *** Hide the search box from taskbar. You can still search by pressing the Win key and start typing what you're looking for ***
  75. REM 0 = hide completely, 1 = show only icon, 2 = show long search box
  76. reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "SearchboxTaskbarMode" /t REG_DWORD /d 0 /f
  77.  
  78. REM *** Disable MRU lists (jump lists) of XAML apps in Start Menu ***
  79. reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_TrackDocs" /t REG_DWORD /d 0 /f
  80.  
  81. REM *** Set Windows Explorer to start on This PC instead of Quick Access ***
  82. REM 1 = This PC, 2 = Quick access
  83. REM reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "LaunchTo" /t REG_DWORD /d 1 /f
  84.  
  85. @rem Remove Apps
  86. PowerShell -Command "Get-AppxPackage Microsoft.3DBuilder | Remove-AppxPackage"
  87. PowerShell -Command "Get-AppxPackage Microsoft.Getstarted | Remove-AppxPackage"
  88. PowerShell -Command "Get-AppxPackage Microsoft.WindowsAlarms | Remove-AppxPackage"
  89. PowerShell -Command "Get-AppxPackage Microsoft.WindowsCamera | Remove-AppxPackage"
  90. PowerShell -Command "Get-AppxPackage Microsoft.bing | Remove-AppxPackage"
  91. PowerShell -Command "Get-AppxPackage Microsoft.OneNote | Remove-AppxPackage"
  92. PowerShell -Command "Get-AppxPackage Microsoft.People | Remove-AppxPackage"
  93. PowerShell -Command "Get-AppxPackage Microsoft.WindowsPhone | Remove-AppxPackage"
  94. PowerShell -Command "Get-AppxPackage Microsoft.SkypeApp | Remove-AppxPackage"
  95. PowerShell -Command "Get-AppxPackage Microsoft.solit | Remove-AppxPackage"
  96. PowerShell -Command "Get-AppxPackage Microsoft.WindowsSoundRecorder* | Remove-AppxPackage"
  97. PowerShell -Command "Get-AppxPackage Microsoft.windowscommunicationsapps* | Remove-AppxPackage"
  98. PowerShell -Command "Get-AppxPackage Microsoft.zune | Remove-AppxPackage"
  99. REM PowerShell -Command "Get-AppxPackage Microsoft.WindowsMaps* | Remove-AppxPackage"
  100. PowerShell -Command "Get-AppxPackage Microsoft.Sway | Remove-AppxPackage"
  101. PowerShell -Command "Get-AppxPackage Microsoft.CommsPhone | Remove-AppxPackage"
  102. PowerShell -Command "Get-AppxPackage Microsoft.ConnectivityStore | Remove-AppxPackage"
  103. PowerShell -Command "Get-AppxPackage Microsoft.Messaging | Remove-AppxPackage"
  104. PowerShell -Command "Get-AppxPackage Microsoft.Facebook | Remove-AppxPackage"
  105. PowerShell -Command "Get-AppxPackage Microsoft.Twitter | Remove-AppxPackage"
  106. PowerShell -Command "Get-AppxPackage Microsoft.Drawboard PDF | Remove-AppxPackage"
  107.  
  108.  
  109. @rem NOW JUST SOME TWEAKS
  110. REM *** Show hidden files in Explorer ***
  111. REM reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Hidden" /t REG_DWORD /d 1 /f
  112.  
  113. REM *** Show super hidden system files in Explorer ***
  114. REM reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowSuperHidden" /t REG_DWORD /d 1 /f
  115.  
  116. REM *** Show file extensions in Explorer ***
  117. reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d 0 /f
  118.  
  119.  
  120.  
  121. REM *** Uninstall OneDrive ***
  122. start /wait "" "%SYSTEMROOT%\SYSWOW64\ONEDRIVESETUP.EXE" /UNINSTALL
  123. rd C:\OneDriveTemp /Q /S >NUL 2>&1
  124. rd "%USERPROFILE%\OneDrive" /Q /S >NUL 2>&1
  125. rd "%LOCALAPPDATA%\Microsoft\OneDrive" /Q /S >NUL 2>&1
  126. rd "%PROGRAMDATA%\Microsoft OneDrive" /Q /S >NUL 2>&1
  127. reg add "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder" /f /v Attributes /t REG_DWORD /d 0 >NUL 2>&1
  128. reg add "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder" /f /v Attributes /t REG_DWORD /d 0 >NUL 2>&1
  129. echo OneDrive has been removed. Windows Explorer needs to be restarted.
  130. pause
  131. start /wait TASKKILL /F /IM explorer.exe
  132. start explorer.exe
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement