mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2025-11-17 02:56:17 +00:00
Added new option to disable bing in windows search
This commit is contained in:
@@ -1,17 +1,23 @@
|
||||
$remove_apps = Read-Host "Do you want to remove the pre-installed windows 10 apps? (y/n)"
|
||||
Write-Output "-------------------------------------------------------------------------------------------"
|
||||
Write-Output "Win10Debloat Script"
|
||||
Write-Output "-------------------------------------------------------------------------------------------"
|
||||
|
||||
$disable_onedrive = Read-Host "Do you want to hide the onedrive folder in windows explorer? (y/n)"
|
||||
$remove_apps = Read-Host "Remove the pre-installed windows 10 apps? (y/n)"
|
||||
|
||||
$disable_3d_objects = Read-Host "Do you want to hide the 3D objects folder in windows explorer? (y/n)"
|
||||
$disable_onedrive = Read-Host "Hide the onedrive folder in windows explorer? (y/n)"
|
||||
|
||||
$disable_music = Read-Host "Do you want to hide the music folder in windows explorer? (y/n)"
|
||||
$disable_3d_objects = Read-Host "Hide the 3D objects folder in windows explorer? (y/n)"
|
||||
|
||||
$disable_context = Read-Host "Do you want to disable the contextmenu entries for: Share, Give access to and Include in library? (y/n)"
|
||||
$disable_music = Read-Host "Hide the music folder in windows explorer? (y/n)"
|
||||
|
||||
$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)"
|
||||
|
||||
Write-Output ""
|
||||
|
||||
if ($remove_apps -eq 'y') {
|
||||
Write-Output "Uninstalling pre-installed windows 10 applications..."
|
||||
Write-Output "> Removing pre-installed windows 10 apps..."
|
||||
|
||||
$apps = @(
|
||||
# These apps will be uninstalled by default:
|
||||
@@ -77,26 +83,32 @@ if ($remove_apps -eq 'y') {
|
||||
}
|
||||
|
||||
if ($disable_onedrive -eq 'y') {
|
||||
Write-Output "Disabling the onedrive folder in windows explorer..."
|
||||
Write-Output "> Hiding the onedrive folder in windows explorer..."
|
||||
|
||||
regedit /s $PSScriptRoot\Regfiles\Hide_Onedrive_Folder.reg
|
||||
}
|
||||
|
||||
|
||||
if ($disable_3d_objects -eq 'y') {
|
||||
Write-Output "Disabling 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
|
||||
}
|
||||
|
||||
if ($disable_music -eq 'y') {
|
||||
Write-Output "Disabling the music folder in windows explorer..."
|
||||
Write-Output "> Hiding the music folder in windows explorer..."
|
||||
|
||||
regedit /s $PSScriptRoot\Regfiles\Hide_Music_folder.reg
|
||||
}
|
||||
|
||||
if ($disable_bing_searches -eq 'y') {
|
||||
Write-Output "> Disabling bing in windows search..."
|
||||
|
||||
regedit /s $PSScriptRoot\Regfiles\Disable_Bing_Searches.reg
|
||||
}
|
||||
|
||||
if ($disable_context -eq 'y') {
|
||||
Write-Output "Removing 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_Include_in_library_from_context_menu.reg
|
||||
|
||||
Reference in New Issue
Block a user