mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2025-11-17 11:06:18 +00:00
Added a setup menu before script execution, allowing you to pick between default and advanced setup, and updated instructions in README.md
This commit is contained in:
35
README.md
35
README.md
@@ -1,21 +1,25 @@
|
|||||||
# Win10Debloat
|
# Win10Debloat
|
||||||
A simple powershell script that allows you to remove most pre-installed windows 10 apps, hide the 3D objects, onedrive and music folder from 'This pc' in windows explorer, disable bing in windows search and declutter the context menu.
|
Win10Debloat is a simple powershell script that allows you to remove most pre-installed windows 10 apps, disable bing in windows search, declutter the windows explorer sidebar by hiding certain folders (such as 3D objects) from the windows explorer sidebar and declutter the context menu by disabling certain options that a regular user would (almost) never use.
|
||||||
|
|
||||||
## How to run
|
You can pick and choose which modifications you want the script to make, but the default settings should be fine for most people. All of the changes can be reverted using the registry files that are included in the 'Regfiles' folder, and most if not all of the apps that are removed by default can easily be reinstalled from the microsoft store.
|
||||||
Step 1. Download the script by clicking the green 'Code' button on the main github page, and extract the .ZIP file to your preferred location.
|
|
||||||
|
|
||||||
Step 2. Run the script by right-clicking the 'Run.ps1' file and selecting 'Run with Powershell' option.
|
### By default, the Win10Debloat script will:
|
||||||
|
- Remove all bloatware apps from [this list](#these-apps-will-be-deleted-by-default).
|
||||||
|
- Hide the 3D objects folder under 'This pc' in windows explorer.
|
||||||
|
- Disable bing in windows search.
|
||||||
|
- Disable the 'Include in library' from context menu.
|
||||||
|
- Disable the 'Give access to' from context menu.
|
||||||
|
- Disable the 'Share' from context menu.
|
||||||
|
|
||||||
Step 3. Next, accept the windows UAC prompt to run the script as administrator, this is required for the script to function.
|
## Usage
|
||||||
|
1. [Download the script](https://github.com/Raphire/Win10Debloat/archive/master.zip), and extract the .ZIP file to your desired location.
|
||||||
|
2. Run the script by right-clicking the 'Run.ps1' file and selecting 'Run with Powershell' option.
|
||||||
|
3. Accept the windows UAC prompt to run the script as administrator, this is required for the script to function.
|
||||||
|
4. Select either default, or advanced setup depending on what changes you want to make. Advanced setup will allow you to choose exactly which changes you want to make, and which changes you want to skip.
|
||||||
|
5. Once the script has executed, restart your pc to ensure all changes are properly applied.
|
||||||
|
|
||||||
Step 4. The script will now ask which changes you would like it to make, and start executing them.
|
## Debloat Windows 10
|
||||||
|
By default, this script will remove most, but not all of the pre-installed windows 10 applications. You customize which applications are removed by this script by editing the apps list found in the 'Win10Debloat.ps1' file.
|
||||||
Step 5. Once the script has executed, restart your pc to ensure all changes are properly applied.
|
|
||||||
|
|
||||||
Step 6. Done!
|
|
||||||
|
|
||||||
## Bloatware Apps
|
|
||||||
By default, this script will remove most, but not all of the pre-installed windows 10 applications. You configure which applications are removed by this script by editing the apps list found in the 'Win10Debloat.ps1' file.
|
|
||||||
|
|
||||||
### These apps will be deleted by default:
|
### These apps will be deleted by default:
|
||||||
- Microsoft.GetHelp
|
- Microsoft.GetHelp
|
||||||
@@ -63,7 +67,8 @@ By default, this script will remove most, but not all of the pre-installed windo
|
|||||||
- Microsoft.XboxGamingOverlay
|
- Microsoft.XboxGamingOverlay
|
||||||
- Microsoft.XboxSpeechToTextOverlay
|
- Microsoft.XboxSpeechToTextOverlay
|
||||||
|
|
||||||
## Other (Optional) Changes
|
## Declutter Windows 10
|
||||||
|
This script can also make various changes to declutter windows 10, such as:
|
||||||
- Hide the onedrive folder in the windows explorer sidebar.
|
- Hide the onedrive folder in the windows explorer sidebar.
|
||||||
- Hide the 3D objects folder under 'This pc' in windows explorer.
|
- Hide the 3D objects folder under 'This pc' in windows explorer.
|
||||||
- Hide the music folder under 'This pc' in windows explorer.
|
- Hide the music folder under 'This pc' in windows explorer.
|
||||||
@@ -72,4 +77,4 @@ By default, this script will remove most, but not all of the pre-installed windo
|
|||||||
- Disable the 'Give access to' from context menu.
|
- Disable the 'Give access to' from context menu.
|
||||||
- Disable the 'Share' from context menu.
|
- Disable the 'Share' from context menu.
|
||||||
|
|
||||||
These changes can be reverted with the registry files that are included in the 'Regfiles' folder.
|
All of these changes can be reverted with the registry files that are included in the 'Regfiles' folder.
|
||||||
|
|||||||
@@ -1,7 +1,24 @@
|
|||||||
Write-Output "-------------------------------------------------------------------------------------------"
|
Write-Output "-------------------------------------------------------------------------------------------"
|
||||||
Write-Output "Win10Debloat Script"
|
Write-Output "Win10Debloat Script - Setup"
|
||||||
Write-Output "-------------------------------------------------------------------------------------------"
|
Write-Output "-------------------------------------------------------------------------------------------"
|
||||||
|
Write-Output "(1) Run Win10Debloat with the default settings"
|
||||||
|
Write-Output "(2) Advanced: Choose which changes you want Win10Debloat to make"
|
||||||
|
Write-Output ""
|
||||||
|
Do { $script_mode = Read-Host "Please select an option (1/2)" }
|
||||||
|
while ($script_mode -ne '1' -and $script_mode -ne '2')
|
||||||
|
|
||||||
|
|
||||||
|
if ($script_mode -eq '1'){
|
||||||
|
Clear
|
||||||
|
Write-Output "-------------------------------------------------------------------------------------------"
|
||||||
|
Write-Output "Win10Debloat Script - Default Configuration"
|
||||||
|
Write-Output "-------------------------------------------------------------------------------------------"
|
||||||
|
}
|
||||||
|
elseif ($script_mode -eq '2') {
|
||||||
|
Clear
|
||||||
|
Write-Output "-------------------------------------------------------------------------------------------"
|
||||||
|
Write-Output "Win10Debloat Script - Advanced Configuration"
|
||||||
|
Write-Output "-------------------------------------------------------------------------------------------"
|
||||||
$remove_apps = Read-Host "Remove the pre-installed windows 10 apps? (y/n)"
|
$remove_apps = Read-Host "Remove the pre-installed windows 10 apps? (y/n)"
|
||||||
|
|
||||||
$disable_onedrive = Read-Host "Hide the onedrive folder in windows explorer? (y/n)"
|
$disable_onedrive = Read-Host "Hide the onedrive folder in windows explorer? (y/n)"
|
||||||
@@ -15,8 +32,9 @@ $disable_bing_searches = Read-Host "Disable bing in windows search? (y/n)"
|
|||||||
$disable_context = Read-Host "Disable the contextmenu entries for: Share, Give access to and Include in library? (y/n)"
|
$disable_context = Read-Host "Disable the contextmenu entries for: Share, Give access to and Include in library? (y/n)"
|
||||||
|
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
|
}
|
||||||
|
|
||||||
if ($remove_apps -eq 'y') {
|
if ($remove_apps -eq 'y' -or $script_mode -eq '1') {
|
||||||
Write-Output "> Removing pre-installed windows 10 apps..."
|
Write-Output "> Removing pre-installed windows 10 apps..."
|
||||||
|
|
||||||
$apps = @(
|
$apps = @(
|
||||||
@@ -89,7 +107,7 @@ if ($disable_onedrive -eq 'y') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if ($disable_3d_objects -eq 'y') {
|
if ($disable_3d_objects -eq 'y' -or $script_mode -eq '1') {
|
||||||
Write-Output "> Hiding the 3D objects folder in windows explorer..."
|
Write-Output "> Hiding the 3D objects folder in windows explorer..."
|
||||||
|
|
||||||
regedit /s $PSScriptRoot\Regfiles\Hide_3D_Objects_Folder.reg
|
regedit /s $PSScriptRoot\Regfiles\Hide_3D_Objects_Folder.reg
|
||||||
@@ -101,13 +119,13 @@ if ($disable_music -eq 'y') {
|
|||||||
regedit /s $PSScriptRoot\Regfiles\Hide_Music_folder.reg
|
regedit /s $PSScriptRoot\Regfiles\Hide_Music_folder.reg
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($disable_bing_searches -eq 'y') {
|
if ($disable_bing_searches -eq 'y' -or $script_mode -eq '1') {
|
||||||
Write-Output "> Disabling bing in windows search..."
|
Write-Output "> Disabling bing in windows search..."
|
||||||
|
|
||||||
regedit /s $PSScriptRoot\Regfiles\Disable_Bing_Searches.reg
|
regedit /s $PSScriptRoot\Regfiles\Disable_Bing_Searches.reg
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($disable_context -eq 'y') {
|
if ($disable_context -eq 'y' -or $script_mode -eq '1') {
|
||||||
Write-Output "> Disabling contextmenu entries for: Share, Include in library & Give access..."
|
Write-Output "> Disabling contextmenu entries for: Share, Include in library & Give access..."
|
||||||
|
|
||||||
regedit /s $PSScriptRoot\Regfiles\Disable_Share_from_context_menu.reg
|
regedit /s $PSScriptRoot\Regfiles\Disable_Share_from_context_menu.reg
|
||||||
|
|||||||
Reference in New Issue
Block a user