Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- Title w10onARM Setup batch
- echo "Disabling Error Reporting" & echo.
- reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting" /v Disabled /t REG_DWORD /d 1 /f
- echo Disabling Consumer Features (apps downloading automatically) & echo.
- reg add HKLM\Software\Policies\Microsoft\Windows\CloudContent /v DisableWindowsConsumerFeatures /t REG_DWORD /d 1 /f
- echo Disabling how to use windows (popups) & echo.
- reg add "HKLM\Software\Policies\Microsoft\Windows\CloudContent" /v DisableSoftLanding /t REG_DWORD /d 1 /f
- echo Blocking junk apps & echo.
- reg load HKLM\DEFAULT c:\users\default\ntuser.dat
- reg add "HKLM\DEFAULT\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v PreInstalledAppsEnabled /t REG_DWORD /d 0 /f
- reg add "HKLM\DEFAULT\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v OemPreInstalledAppsEnabled /t REG_DWORD /d 0 /f
- reg unload HKLM\DEFAULT
- echo Removing useless windows components
- dism /online /norestart /disable-feature /featurename:Printing-PrintToPDFServices-Features
- dism /online /norestart /disable-feature /featurename:Printing-XPSServices-Features
- dism /online /norestart /disable-feature /featurename:WorkFolders-Client
- dism /online /norestart /disable-feature /featurename:WindowsMediaPlayer
- dism /online /norestart /disable-feature /featurename:Printing-Foundation-Features
- dism /online /norestart /disable-feature /featurename:Printing-Foundation-InternetPrinting-Client
- dism /online /norestart /disable-feature /featurename:MSRDC-Infrastructure
- REM Does this do anything helpful?
- powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61
- echo Would you like to disable automatic app updates? & echo.
- setlocal
- SET AREYOUSURE=N
- SET /P AREYOUSURE=Are you sure (Y/[N])?
- IF /I "%AREYOUSURE%" NEQ "Y" GOTO NO
- echo Disabling automatic app updates & echo.
- reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsStore" /v AutoDownload /t REG_WORD /d 2 /f
- :NO
- endlocal
- echo Disabling Hibernation to free up extra disk space & echo.
- powercfg -h off
- taskkill /f /im OneDrive.exe
- %SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall
- echo Disabling Superfetch & echo.
- sc config "SysMain" start= disabled
- sc stop "SysMain"
- echo Disabling Windows 10 Experiments & echo.
- reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PolicyManager\current\device\System" /v AllowExperimentation /t REG_WORD /d 0 /f
- echo Disabling Delivery Optimizations (P2P Updates) & echo.
- sc config "DoSvc" start= disabled
- sc stop "DoSvc"
- echo Disabling Geolocation services & echo.
- sc config "lfsvc" start= disabled
- sc stop "lfsvc"
- echo Disabling Biometric service & echo.
- sc config "WbioSrvc" start= disabled
- sc stop "WbioSrvc"
- echo Disabling the Windows Mobile Hotspot service& echo.
- sc config "icssvc" start= disabled
- sc stop "icssvc"
- echo Disabling Downloaded Maps Manager & echo.
- sc config "MapsBroker" start= disabled
- sc stop "MapsBroker"
- echo Disabling Windows Media Player Network Sharing Service & echo.
- sc config "WMPNetworkSvc" start= disabled
- sc stop "WMPNetworkSvc"
- echo Disabling Diagnostic Policy Service & echo.
- sc config "DPS" start= disabled
- sc stop "DPS"
- echo Disabling Connected User Experiences and Telemetry & echo.
- sc config "DiagTrack" start= disabled
- sc stop "DiagTrack"
- echo Disabling Remote Registry & echo.
- sc config "RemoteRegistry" start= disabled
- sc stop "RemoteRegistry"
- echo Disabling Windows Error Reporting Service & echo.
- sc config "WerSvc" start= disabled
- sc stop "WerSvc"
- echo Disabling Shared PC Account Manager & echo.
- sc config "shpamsvc" start= disabled
- sc stop "shpamsvc"
- echo Disabling Windows Event Collector & echo.
- sc config "Wecsvc" start= disabled
- sc stop "Wecsvc"
- echo Disabling Auto Time Zone Updatery & echo.
- sc config "tzautoupdate" start= disabled
- sc stop "tzautoupdate"
- echo Disabling Hyper-V Volume Shadow Copy Requestor & echo.
- sc config "vmicvss" start= disabled
- sc stop "vmicvss"
- echo Hyper-V PowerShell Direct Service & echo.
- sc config "vmictimesync" start= disabled
- sc stop "vmictimesync"
- echo Disabling Hyper-V Time Synchronization Service & echo.
- sc config "vmicvmsession" start= disabled
- sc stop "vmicvmsession"
- echo Disabling Hyper-V Remote Desktop Virtualization Service & echo.
- sc config "vmicrdv" start= disabled
- sc stop "vmicrdv"
- echo Disabling Hyper-V Data Exchange Service & echo.
- sc config "vmickvpexchange" start= disabled
- sc stop "vmickvpexchange"
- echo Disabling Hyper-V Heartbeat Service & echo.
- sc config "vmicheartbeat" start= disabled
- sc stop "vmicheartbeat"
- echo Disabling Net.Tcp Port Sharing Service & echo.
- sc config "NetTcpPortSharing" start= disabled
- sc stop "NetTcpPortSharing"
- echo Disabling OpenSSH Authentication Agent & echo.
- sc config "ssh-agent" start= disabled
- sc stop "ssh-agent"
- echo Disabling Phone Service & echo.
- sc config "PhoneSvc" start= disabled
- sc stop "PhoneSvc"
- echo Disabling Remote Procedure Call (RPC) Locator & echo.
- sc config "RpcLocator" start= disabled
- sc stop "RpcLocator"
- echo Disabling Routing and Remote Access & echo.
- sc config "RemoteAccess" start= disabled
- sc stop "RemoteAccess"
- echo Disabling Sensor Service & echo.
- sc config "SensorService" start= disabled
- sc stop "SensorService"
- echo Disabling Themes Service & echo.
- sc config "Themes" start= disabled
- sc stop "Themes"
- echo Disabling Window Push Notifications System Service & echo.
- sc config "WpnService" start= disabled
- sc stop "WpnService"
- REM These are all Windows out-of-the-box bloatware, not 3rd party
- echo.
- echo Removing Non 3rd party bloatware/useless apps
- echo.
- echo Removing BingFinance
- powershell -command " get-appxpackage -allusers 'Microsoft.BingFinance' | remove-appxpackage "
- echo.
- echo Removing BingFoodAndDrink
- powershell -command " get-appxpackage -allusers 'Microsoft.BingFoodAndDrink' | remove-appxpackage "
- echo.
- echo Removing BingHealthAndFitness
- powershell -command " get-appxpackage -allusers 'Microsoft.BingHealthAndFitness' | remove-appxpackage "
- echo.
- echo Removing BingMaps
- powershell -command " get-appxpackage -allusers 'Microsoft.BingMaps' | remove-appxpackage "
- echo.
- echo Removing BingNews
- powershell -command " get-appxpackage -allusers 'Microsoft.BingNews' | remove-appxpackage "
- echo.
- echo Removing BingSports
- powershell -command " get-appxpackage -allusers 'Microsoft.BingSports' | remove-appxpackage "
- echo.
- echo Removing BingTranslator
- powershell -command " get-appxpackage -allusers 'Microsoft.BingTranslator' | remove-appxpackage "
- echo.
- echo Removing BingTravel
- powershell -command " get-appxpackage -allusers 'Microsoft.BingTravel' | remove-appxpackage "
- echo.
- echo Removing ConnectivityStore
- powershell -command " get-appxpackage -allusers 'Microsoft.ConnectivityStore' | remove-appxpackage "
- echo.
- echo Removing DiagnosticDataViewer
- powershell -command " get-appxpackage -allusers 'Microsoft.DiagnosticDataViewer' | remove-appxpackage "
- echo.
- echo Removing GetHelp
- powershell -command " get-appxpackage -allusers 'Microsoft.GetHelp' | remove-appxpackage "
- echo.
- echo Removing Getstarted
- powershell -command " get-appxpackage -allusers 'Microsoft.Getstarted' | remove-appxpackage "
- echo.
- echo Removing HelpAndTips
- powershell -command " get-appxpackage -allusers 'Microsoft.HelpAndTips' | remove-appxpackage "
- echo.
- echo Removing Messaging
- powershell -command " get-appxpackage -allusers 'Microsoft.Messaging' | remove-appxpackage "
- echo.
- echo Removing MicrosoftJackpot
- powershell -command " get-appxpackage -allusers 'Microsoft.MicrosoftJackpot' | remove-appxpackage "
- echo.
- echo Removing MicrosoftJigsaw
- powershell -command " get-appxpackage -allusers 'Microsoft.MicrosoftJigsaw' | remove-appxpackage "
- echo.
- echo Removing MicrosoftMahjong
- powershell -command " get-appxpackage -allusers 'Microsoft.MicrosoftMahjong' | remove-appxpackage "
- echo.
- echo Removing MicrosoftOfficeHub
- powershell -command " get-appxpackage -allusers 'Microsoft.MicrosoftOfficeHub' | remove-appxpackage "
- echo.
- echo Removing MicrosoftPowerBIForWindows
- powershell -command " get-appxpackage -allusers 'Microsoft.MicrosoftPowerBIForWindows' | remove-appxpackage "
- echo.
- echo Removing MicrosoftSudoku
- powershell -command " get-appxpackage -allusers 'Microsoft.MicrosoftSudoku' | remove-appxpackage "
- echo.
- echo Removing MovieMoments
- powershell -command " get-appxpackage -allusers 'Microsoft.MovieMoments' | remove-appxpackage "
- echo.
- echo Removing NetworkSpeedTest
- powershell -command " get-appxpackage -allusers 'Microsoft.NetworkSpeedTest' | remove-appxpackage "
- echo.
- echo Removing OneConnect
- powershell -command " get-appxpackage -allusers 'Microsoft.OneConnect' | remove-appxpackage "
- echo.
- echo Removing People
- powershell -command " get-appxpackage -allusers 'Microsoft.People' | remove-appxpackage "
- echo.
- echo Removing SeaofThieves
- powershell -command " get-appxpackage -allusers 'Microsoft.SeaofThieves' | remove-appxpackage "
- echo.
- echo Removing SkypeApp
- powershell -command " get-appxpackage -allusers 'Microsoft.SkypeApp' | remove-appxpackage "
- echo.
- echo Removing SkypeWiFi
- powershell -command " get-appxpackage -allusers 'Microsoft.SkypeWiFi' | remove-appxpackage "
- echo.
- echo Removing WindowsFeedbackHub
- powershell -command " get-appxpackage -allusers 'Microsoft.WindowsFeedbackHub' | remove-appxpackage "
- echo.
- echo Removing WindowsReadingList
- powershell -command " get-appxpackage -allusers 'Microsoft.WindowsReadingList' | remove-appxpackage "
- echo.
- echo Removing WorldNationalParks
- powershell -command " get-appxpackage -allusers 'Microsoft.WorldNationalParks' | remove-appxpackage "
- echo.
- echo Removing ContactSupport
- powershell -command " get-appxpackage -allusers 'Windows.ContactSupport' | remove-appxpackage "
- echo.
- echo Removing Wordament
- powershell -command " get-appxpackage -allusers 'Microsoft.Studios.Wordament' | remove-appxpackage "
- REM powershell -command " get-appxpackage -allusers 'Microsoft.Advertising.JavaScript' | remove-appxpackage "
- REM powershell -command " get-appxpackage -allusers 'Microsoft.Advertising.Xaml' | remove-appxpackage "
- echo.
- echo Ensuring memory compression is enabled (330MB at idle repoted! Thanks hojnikb)
- powershell -command Enable-MMAgent -MemoryCompression
- echo.
- echo -------------------------------------------------------------------------------------------------
- echo Windows 10 on ARM has now been optimized and sped up, you've also freed up a bunch of space, yay!
- echo -------------------------------------------------------------------------------------------------
- echo Press any key to exit
- pause >nul
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement