📅  最后修改于: 2023-12-03 15:14:39.627000             🧑  作者: Mango
Debloating Windows 10 means removing unnecessary programs, services, and features that are not needed in a particular environment. This process can free up disk space, improve performance, and increase privacy.
In this article, we will see how to debloat Windows 10 using Shell/Bash script.
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
Restart your computer to complete the installation.
Open Microsoft Store and search for "Ubuntu". Install the Ubuntu app.
Once the installation is complete, open the Ubuntu app.
To update the package list, run the following command in Ubuntu:
sudo apt update
debloat.sh
:#!/bin/bash
# Remove unnecessary built-in apps
sudo apt-get remove -y gnome-mines gnome-mahjongg gnome-sudoku gnome-todo gnome-todo-common \
gnome-calendar rhythmbox aisleriot cheese
# Disable unnecessary services
sudo systemctl disable bluetooth.service
sudo systemctl disable cups
# Remove unnecessary packages
sudo apt-get autoremove -y
# Delete unnecessary files and logs
sudo rm -rf ~/Documents ~/Music ~/Pictures ~/Public ~/Templates ~/Videos ~/examples.desktop
sudo rm -rf /var/log/*
chmod +x debloat.sh
sudo ./debloat.sh
This script will remove unnecessary apps, disable unnecessary services, remove unnecessary packages, and delete unnecessary files and logs. You can customize the script to fit your needs.
Using Shell/Bash script to debloat Windows 10 is an easy and efficient way to improve performance, free up disk space, and increase privacy. With this guide, you can easily debloat your Windows 10 system and enjoy a faster and cleaner experience.