Advertisement
Guest User

Untitled

a guest
Aug 8th, 2015
469
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 6.99 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. sc config RemoteRegistry start= disabled
  12. REM sc config TrkWks start= disabled
  13. sc config WMPNetworkSvc start= disabled
  14. REM sc config WSearch start= disabled
  15. REM sc config SysMain start= disabled
  16.  
  17. REM *** SCHEDULED TASKS tweaks ***
  18. 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\Autochk\Proxy" /Disable
  23. schtasks /Change /TN "Microsoft\Windows\CloudExperienceHost\CreateObjectTask" /Disable
  24. schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Consolidator" /Disable
  25. schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" /Disable
  26. schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" /Disable
  27. REM schtasks /Change /TN "Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" /Disable
  28. REM schtasks /Change /TN "Microsoft\Windows\DiskFootprint\Diagnostics" /Disable *** Not sure if should be disabled, maybe related to S.M.A.R.T.
  29. REM schtasks /Change /TN "Microsoft\Windows\FileHistory\File History (maintenance mode)" /Disable
  30. REM schtasks /Change /TN "Microsoft\Windows\Maintenance\WinSAT" /Disable
  31. REM schtasks /Change /TN "Microsoft\Windows\NetTrace\GatherNetworkInfo" /Disable
  32. REM schtasks /Change /TN "Microsoft\Windows\PI\Sqm-Tasks" /Disable
  33. 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).
  34. REM schtasks /Change /TN "Microsoft\Windows\Time Synchronization\ForceSynchronizeTime" /Disable
  35. REM schtasks /Change /TN "Microsoft\Windows\Time Synchronization\SynchronizeTime" /Disable
  36. schtasks /Change /TN "Microsoft\Windows\Windows Error Reporting\QueueReporting" /Disable
  37. schtasks /Change /TN "Microsoft\Windows\WindowsUpdate\Automatic App Update" /Disable
  38.  
  39.  
  40. @rem *** Remove Telemetry & Data Collection ***
  41. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Device Metadata" /v PreventDeviceMetadataFromNetwork /t REG_DWORD /d 1 /f
  42. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f
  43. reg add "HKLM\SOFTWARE\Policies\Microsoft\MRT" /v DontOfferThroughWUAU /t REG_DWORD /d 1 /f
  44. reg add "HKLM\SOFTWARE\Policies\Microsoft\SQMClient\Windows" /v "CEIPEnable" /t REG_DWORD /d 0 /f
  45. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "AITEnable" /t REG_DWORD /d 0 /f
  46. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v "DisableUAR" /t REG_DWORD /d 1 /f
  47. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v "AllowTelemetry" /t REG_DWORD /d 0 /f
  48. reg add "HKLM\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\AutoLogger-Diagtrack-Listener" /v "Start" /t REG_DWORD /d 0 /f
  49. reg add "HKLM\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\SQMLogger" /v "Start" /t REG_DWORD /d 0 /f
  50.  
  51.  
  52. @REM *** Disable Cortana & Telemetry ***
  53. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v "AllowCortana" /t REG_DWORD /d 0
  54.  
  55. REM *** Hide the search box from taskbar. You can still search by pressing the Win key and start typing what you're looking for ***
  56. REM 0 = hide completely, 1 = show only icon, 2 = show long search box
  57. REM reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "SearchboxTaskbarMode" /t REG_DWORD /d 0 /f
  58.  
  59. REM *** Disable MRU lists (jump lists) of XAML apps in Start Menu ***
  60. reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Start_TrackDocs" /t REG_DWORD /d 0 /f
  61.  
  62. REM *** Set Windows Explorer to start on This PC instead of Quick Access ***
  63. REM 1 = This PC, 2 = Quick access
  64. REM reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "LaunchTo" /t REG_DWORD /d 1 /f
  65.  
  66. @rem Remove Apps
  67. PowerShell -Command "Get-AppxPackage *3DBuilder* | Remove-AppxPackage"
  68. PowerShell -Command "Get-AppxPackage *Cortana* | Remove-AppxPackage"
  69. PowerShell -Command "Get-AppxPackage *Getstarted* | Remove-AppxPackage"
  70. PowerShell -Command "Get-AppxPackage *WindowsAlarms* | Remove-AppxPackage"
  71. PowerShell -Command "Get-AppxPackage *WindowsCamera* | Remove-AppxPackage"
  72. PowerShell -Command "Get-AppxPackage *bing* | Remove-AppxPackage"
  73. PowerShell -Command "Get-AppxPackage *MicrosoftOfficeHub* | Remove-AppxPackage"
  74. PowerShell -Command "Get-AppxPackage *OneNote* | Remove-AppxPackage"
  75. PowerShell -Command "Get-AppxPackage *people* | Remove-AppxPackage"
  76. PowerShell -Command "Get-AppxPackage *WindowsPhone* | Remove-AppxPackage"
  77. PowerShell -Command "Get-AppxPackage *photos* | Remove-AppxPackage"
  78. PowerShell -Command "Get-AppxPackage *SkypeApp* | Remove-AppxPackage"
  79. PowerShell -Command "Get-AppxPackage *solit* | Remove-AppxPackage"
  80. PowerShell -Command "Get-AppxPackage *WindowsSoundRecorder* | Remove-AppxPackage"
  81. PowerShell -Command "Get-AppxPackage *xbox* | Remove-AppxPackage"
  82. PowerShell -Command "Get-AppxPackage *windowscommunicationsapps* | Remove-AppxPackage"
  83. PowerShell -Command "Get-AppxPackage *zune* | Remove-AppxPackage"
  84. REM PowerShell -Command "Get-AppxPackage *WindowsCalculator* | Remove-AppxPackage"
  85. REM PowerShell -Command "Get-AppxPackage *WindowsMaps* | Remove-AppxPackage"
  86.  
  87.  
  88.  
  89. @rem NOW JUST SOME TWEAKS
  90. REM *** Show hidden files in Explorer ***
  91. reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Hidden" /t REG_DWORD /d 1 /f
  92.  
  93. REM *** Show super hidden system files in Explorer ***
  94. reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowSuperHidden" /t REG_DWORD /d 1 /f
  95.  
  96. REM *** Show file extensions in Explorer ***
  97. reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t  REG_DWORD /d 0 /f
  98.  
  99.  
  100.  
  101. REM *** Uninstall OneDrive ***
  102. start /wait "" "%SYSTEMROOT%\SYSWOW64\ONEDRIVESETUP.EXE" /UNINSTALL
  103. rd C:\OneDriveTemp /Q /S >NUL 2>&1
  104. rd "%USERPROFILE%\OneDrive" /Q /S >NUL 2>&1
  105. rd "%LOCALAPPDATA%\Microsoft\OneDrive" /Q /S >NUL 2>&1
  106. rd "%PROGRAMDATA%\Microsoft OneDrive" /Q /S >NUL 2>&1
  107. reg add "HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder" /f /v Attributes /t REG_DWORD /d 0 >NUL 2>&1
  108. reg add "HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\ShellFolder" /f /v Attributes /t REG_DWORD /d 0 >NUL 2>&1
  109. echo OneDrive has been removed. Windows Explorer needs to be restarted.
  110. pause
  111. start /wait TASKKILL /F /IM explorer.exe
  112. start explorer.exe
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement