Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.22 KB | None | 0 0
  1. @echo off
  2. Title w10onARM Setup batch
  3.  
  4. echo "Disabling Error Reporting" & echo.
  5. reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting" /v Disabled /t REG_DWORD /d 1 /f
  6.  
  7.  
  8. echo Disabling Consumer Features (apps downloading automatically) & echo.
  9. reg add HKLM\Software\Policies\Microsoft\Windows\CloudContent /v DisableWindowsConsumerFeatures /t REG_DWORD /d 1 /f
  10.  
  11.  
  12. echo Disabling how to use windows (popups) & echo.
  13. reg add "HKLM\Software\Policies\Microsoft\Windows\CloudContent" /v DisableSoftLanding /t REG_DWORD /d 1 /f
  14.  
  15. echo Blocking junk apps & echo.
  16. reg load HKLM\DEFAULT c:\users\default\ntuser.dat
  17. reg add "HKLM\DEFAULT\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v PreInstalledAppsEnabled /t REG_DWORD /d 0 /f
  18. reg add "HKLM\DEFAULT\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v OemPreInstalledAppsEnabled /t REG_DWORD /d 0 /f
  19. reg unload HKLM\DEFAULT
  20.  
  21. echo Removing useless windows components
  22. dism /online /norestart /disable-feature /featurename:Printing-PrintToPDFServices-Features
  23. dism /online /norestart /disable-feature /featurename:Printing-XPSServices-Features
  24. dism /online /norestart /disable-feature /featurename:WorkFolders-Client
  25. dism /online /norestart /disable-feature /featurename:WindowsMediaPlayer
  26. dism /online /norestart /disable-feature /featurename:Printing-Foundation-Features
  27. dism /online /norestart /disable-feature /featurename:Printing-Foundation-InternetPrinting-Client
  28. dism /online /norestart /disable-feature /featurename:MSRDC-Infrastructure
  29.  
  30. REM Does this do anything helpful?
  31. powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61
  32.  
  33.  
  34. echo Would you like to disable automatic app updates? & echo.
  35.  
  36. setlocal
  37. SET AREYOUSURE=N
  38. SET /P AREYOUSURE=Are you sure (Y/[N])?
  39. IF /I "%AREYOUSURE%" NEQ "Y" GOTO NO
  40. echo Disabling automatic app updates & echo.
  41. reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsStore" /v AutoDownload /t REG_WORD /d 2 /f
  42.  
  43. :NO
  44. endlocal
  45.  
  46. echo Disabling Hibernation to free up extra disk space & echo.
  47. powercfg -h off
  48.  
  49. taskkill /f /im OneDrive.exe
  50. %SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall
  51.  
  52. echo Disabling Superfetch & echo.
  53. sc config "SysMain" start= disabled
  54. sc stop "SysMain"
  55.  
  56. echo Disabling Windows 10 Experiments & echo.
  57. reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PolicyManager\current\device\System" /v AllowExperimentation /t REG_WORD /d 0 /f
  58.  
  59. echo Disabling Delivery Optimizations (P2P Updates) & echo.
  60. sc config "DoSvc" start= disabled
  61. sc stop "DoSvc"
  62.  
  63. echo Disabling Geolocation services & echo.
  64. sc config "lfsvc" start= disabled
  65. sc stop "lfsvc"
  66.  
  67. echo Disabling Biometric service & echo.
  68. sc config "WbioSrvc" start= disabled
  69. sc stop "WbioSrvc"
  70.  
  71. echo Disabling the Windows Mobile Hotspot service& echo.
  72. sc config "icssvc" start= disabled
  73. sc stop "icssvc"
  74.  
  75. echo Disabling Downloaded Maps Manager & echo.
  76. sc config "MapsBroker" start= disabled
  77. sc stop "MapsBroker"
  78.  
  79. echo Disabling Windows Media Player Network Sharing Service & echo.
  80. sc config "WMPNetworkSvc" start= disabled
  81. sc stop "WMPNetworkSvc"
  82.  
  83. echo Disabling Diagnostic Policy Service & echo.
  84. sc config "DPS" start= disabled
  85. sc stop "DPS"
  86.  
  87. echo Disabling Connected User Experiences and Telemetry & echo.
  88. sc config "DiagTrack" start= disabled
  89. sc stop "DiagTrack"
  90.  
  91. echo Disabling Remote Registry & echo.
  92. sc config "RemoteRegistry" start= disabled
  93. sc stop "RemoteRegistry"
  94.  
  95. echo Disabling Windows Error Reporting Service & echo.
  96. sc config "WerSvc" start= disabled
  97. sc stop "WerSvc"
  98.  
  99. echo Disabling Shared PC Account Manager & echo.
  100. sc config "shpamsvc" start= disabled
  101. sc stop "shpamsvc"
  102.  
  103. echo Disabling Windows Event Collector & echo.
  104. sc config "Wecsvc" start= disabled
  105. sc stop "Wecsvc"
  106.  
  107. echo Disabling Auto Time Zone Updatery & echo.
  108. sc config "tzautoupdate" start= disabled
  109. sc stop "tzautoupdate"
  110.  
  111. echo Disabling Hyper-V Volume Shadow Copy Requestor & echo.
  112. sc config "vmicvss" start= disabled
  113. sc stop "vmicvss"
  114.  
  115. echo Hyper-V PowerShell Direct Service & echo.
  116. sc config "vmictimesync" start= disabled
  117. sc stop "vmictimesync"
  118.  
  119. echo Disabling Hyper-V Time Synchronization Service & echo.
  120. sc config "vmicvmsession" start= disabled
  121. sc stop "vmicvmsession"
  122.  
  123. echo Disabling Hyper-V Remote Desktop Virtualization Service & echo.
  124. sc config "vmicrdv" start= disabled
  125. sc stop "vmicrdv"
  126.  
  127. echo Disabling Hyper-V Data Exchange Service & echo.
  128. sc config "vmickvpexchange" start= disabled
  129. sc stop "vmickvpexchange"
  130.  
  131. echo Disabling Hyper-V Heartbeat Service & echo.
  132. sc config "vmicheartbeat" start= disabled
  133. sc stop "vmicheartbeat"
  134.  
  135. echo Disabling Net.Tcp Port Sharing Service & echo.
  136. sc config "NetTcpPortSharing" start= disabled
  137. sc stop "NetTcpPortSharing"
  138.  
  139. echo Disabling OpenSSH Authentication Agent & echo.
  140. sc config "ssh-agent" start= disabled
  141. sc stop "ssh-agent"
  142.  
  143. echo Disabling Phone Service & echo.
  144. sc config "PhoneSvc" start= disabled
  145. sc stop "PhoneSvc"
  146.  
  147. echo Disabling Remote Procedure Call (RPC) Locator & echo.
  148. sc config "RpcLocator" start= disabled
  149. sc stop "RpcLocator"
  150.  
  151. echo Disabling Routing and Remote Access & echo.
  152. sc config "RemoteAccess" start= disabled
  153. sc stop "RemoteAccess"
  154.  
  155. echo Disabling Sensor Service & echo.
  156. sc config "SensorService" start= disabled
  157. sc stop "SensorService"
  158.  
  159. echo Disabling Themes Service & echo.
  160. sc config "Themes" start= disabled
  161. sc stop "Themes"
  162.  
  163. echo Disabling Window Push Notifications System Service & echo.
  164. sc config "WpnService" start= disabled
  165. sc stop "WpnService"
  166.  
  167. REM These are all Windows out-of-the-box bloatware, not 3rd party
  168. echo.
  169. echo Removing Non 3rd party bloatware/useless apps
  170. echo.
  171. echo Removing BingFinance
  172. powershell -command " get-appxpackage -allusers 'Microsoft.BingFinance' | remove-appxpackage "
  173. echo.
  174. echo Removing BingFoodAndDrink
  175. powershell -command " get-appxpackage -allusers 'Microsoft.BingFoodAndDrink' | remove-appxpackage "
  176. echo.
  177. echo Removing BingHealthAndFitness
  178. powershell -command " get-appxpackage -allusers 'Microsoft.BingHealthAndFitness' | remove-appxpackage "
  179. echo.
  180. echo Removing BingMaps
  181. powershell -command " get-appxpackage -allusers 'Microsoft.BingMaps' | remove-appxpackage "
  182. echo.
  183. echo Removing BingNews
  184. powershell -command " get-appxpackage -allusers 'Microsoft.BingNews' | remove-appxpackage "
  185. echo.
  186. echo Removing BingSports
  187. powershell -command " get-appxpackage -allusers 'Microsoft.BingSports' | remove-appxpackage "
  188. echo.
  189. echo Removing BingTranslator
  190. powershell -command " get-appxpackage -allusers 'Microsoft.BingTranslator' | remove-appxpackage "
  191. echo.
  192. echo Removing BingTravel
  193. powershell -command " get-appxpackage -allusers 'Microsoft.BingTravel' | remove-appxpackage "
  194. echo.
  195. echo Removing ConnectivityStore
  196. powershell -command " get-appxpackage -allusers 'Microsoft.ConnectivityStore' | remove-appxpackage "
  197. echo.
  198. echo Removing DiagnosticDataViewer
  199. powershell -command " get-appxpackage -allusers 'Microsoft.DiagnosticDataViewer' | remove-appxpackage "
  200. echo.
  201. echo Removing GetHelp
  202. powershell -command " get-appxpackage -allusers 'Microsoft.GetHelp' | remove-appxpackage "
  203. echo.
  204. echo Removing Getstarted
  205. powershell -command " get-appxpackage -allusers 'Microsoft.Getstarted' | remove-appxpackage "
  206. echo.
  207. echo Removing HelpAndTips
  208. powershell -command " get-appxpackage -allusers 'Microsoft.HelpAndTips' | remove-appxpackage "
  209. echo.
  210. echo Removing Messaging
  211. powershell -command " get-appxpackage -allusers 'Microsoft.Messaging' | remove-appxpackage "
  212. echo.
  213. echo Removing MicrosoftJackpot
  214. powershell -command " get-appxpackage -allusers 'Microsoft.MicrosoftJackpot' | remove-appxpackage "
  215. echo.
  216. echo Removing MicrosoftJigsaw
  217. powershell -command " get-appxpackage -allusers 'Microsoft.MicrosoftJigsaw' | remove-appxpackage "
  218. echo.
  219. echo Removing MicrosoftMahjong
  220. powershell -command " get-appxpackage -allusers 'Microsoft.MicrosoftMahjong' | remove-appxpackage "
  221. echo.
  222. echo Removing MicrosoftOfficeHub
  223. powershell -command " get-appxpackage -allusers 'Microsoft.MicrosoftOfficeHub' | remove-appxpackage "
  224. echo.
  225. echo Removing MicrosoftPowerBIForWindows
  226. powershell -command " get-appxpackage -allusers 'Microsoft.MicrosoftPowerBIForWindows' | remove-appxpackage "
  227. echo.
  228. echo Removing MicrosoftSudoku
  229. powershell -command " get-appxpackage -allusers 'Microsoft.MicrosoftSudoku' | remove-appxpackage "
  230. echo.
  231. echo Removing MovieMoments
  232. powershell -command " get-appxpackage -allusers 'Microsoft.MovieMoments' | remove-appxpackage "
  233. echo.
  234. echo Removing NetworkSpeedTest
  235. powershell -command " get-appxpackage -allusers 'Microsoft.NetworkSpeedTest' | remove-appxpackage "
  236. echo.
  237. echo Removing OneConnect
  238. powershell -command " get-appxpackage -allusers 'Microsoft.OneConnect' | remove-appxpackage "
  239. echo.
  240. echo Removing People
  241. powershell -command " get-appxpackage -allusers 'Microsoft.People' | remove-appxpackage "
  242. echo.
  243. echo Removing SeaofThieves
  244. powershell -command " get-appxpackage -allusers 'Microsoft.SeaofThieves' | remove-appxpackage "
  245. echo.
  246. echo Removing SkypeApp
  247. powershell -command " get-appxpackage -allusers 'Microsoft.SkypeApp' | remove-appxpackage "
  248. echo.
  249. echo Removing SkypeWiFi
  250. powershell -command " get-appxpackage -allusers 'Microsoft.SkypeWiFi' | remove-appxpackage "
  251. echo.
  252. echo Removing WindowsFeedbackHub
  253. powershell -command " get-appxpackage -allusers 'Microsoft.WindowsFeedbackHub' | remove-appxpackage "
  254. echo.
  255. echo Removing WindowsReadingList
  256. powershell -command " get-appxpackage -allusers 'Microsoft.WindowsReadingList' | remove-appxpackage "
  257. echo.
  258. echo Removing WorldNationalParks
  259. powershell -command " get-appxpackage -allusers 'Microsoft.WorldNationalParks' | remove-appxpackage "
  260. echo.
  261. echo Removing ContactSupport
  262. powershell -command " get-appxpackage -allusers 'Windows.ContactSupport' | remove-appxpackage "
  263. echo.
  264. echo Removing Wordament
  265. powershell -command " get-appxpackage -allusers 'Microsoft.Studios.Wordament' | remove-appxpackage "
  266. REM powershell -command " get-appxpackage -allusers 'Microsoft.Advertising.JavaScript' | remove-appxpackage "
  267. REM powershell -command " get-appxpackage -allusers 'Microsoft.Advertising.Xaml' | remove-appxpackage "
  268.  
  269. echo.
  270. echo Ensuring memory compression is enabled (330MB at idle repoted! Thanks hojnikb)
  271. powershell -command Enable-MMAgent -MemoryCompression
  272. echo.
  273. echo -------------------------------------------------------------------------------------------------
  274. echo Windows 10 on ARM has now been optimized and sped up, you've also freed up a bunch of space, yay!
  275. echo -------------------------------------------------------------------------------------------------
  276. echo Press any key to exit
  277. pause >nul
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement