Advertisement
Guest User

Untitled

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