mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2025-11-17 11:06:18 +00:00
Copilot is now disabled when running default settings (#10)
Moved some options around in custom setup
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
-------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------
|
||||||
Win11Debloat Script - Setup
|
Win11Debloat - Setup
|
||||||
-------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------
|
||||||
Win11Debloat will make the following changes:
|
Win11Debloat will make the following changes:
|
||||||
- Remove bloatware apps.
|
- Remove bloatware apps.
|
||||||
@@ -8,7 +8,8 @@ Win11Debloat will make the following changes:
|
|||||||
- Disable tips & tricks on the lockscreen. (This may change your lockscreen wallpaper)
|
- Disable tips & tricks on the lockscreen. (This may change your lockscreen wallpaper)
|
||||||
- Disable tips, tricks and suggestions in the start menu and settings, and ads in windows explorer.
|
- Disable tips, tricks and suggestions in the start menu and settings, and ads in windows explorer.
|
||||||
- Show file extensions for known file types.
|
- Show file extensions for known file types.
|
||||||
- Disable the widget service & hide the widget (news and interests) icon from the taskbar.
|
- Disable Windows Copilot. (Windows 11 only)
|
||||||
|
- Disable the widget service & hide the icon from the taskbar.
|
||||||
- Hide the Chat (meet now) icon from the taskbar.
|
- Hide the Chat (meet now) icon from the taskbar.
|
||||||
- Hide the 3D objects folder in windows explorer. (Windows 10 only)
|
- Hide the 3D objects folder in windows explorer. (Windows 10 only)
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,8 @@ through all the settings yourself, or removing apps one by one!
|
|||||||
- Disable bing search & cortana in windows search.
|
- Disable bing search & cortana in windows search.
|
||||||
- Disable tips, tricks, suggestions and ads in start, settings, notifications, windows explorer, and on the lockscreen.
|
- Disable tips, tricks, suggestions and ads in start, settings, notifications, windows explorer, and on the lockscreen.
|
||||||
- Show file extensions for known file types.
|
- Show file extensions for known file types.
|
||||||
- Disable the widget service & hide the widget (news and interests) icon from the taskbar.
|
- Disable Windows Copilot. (Windows 11 only)
|
||||||
|
- Disable the widget service & hide the icon from the taskbar.
|
||||||
- Hide the Chat (meet now) icon from the taskbar.
|
- Hide the Chat (meet now) icon from the taskbar.
|
||||||
- Hide the 3D objects folder under 'This pc' in windows explorer. (Windows 10 only)
|
- Hide the 3D objects folder under 'This pc' in windows explorer. (Windows 10 only)
|
||||||
|
|
||||||
@@ -33,8 +34,8 @@ through all the settings yourself, or removing apps one by one!
|
|||||||
- Align taskbar icons to the left. (Windows 11 only)
|
- Align taskbar icons to the left. (Windows 11 only)
|
||||||
- Hide or change the search icon/box on the taskbar. (Windows 11 only)
|
- Hide or change the search icon/box on the taskbar. (Windows 11 only)
|
||||||
- Hide the taskview button from the taskbar. (Windows 11 only)
|
- Hide the taskview button from the taskbar. (Windows 11 only)
|
||||||
- Disable Windows copilot. (Windows 11 only)
|
- Disable Windows Copilot. (Windows 11 only)
|
||||||
- Disable the widget service & hide the widget (news and interests) icon from the taskbar.
|
- Disable the widget service & hide the icon from the taskbar.
|
||||||
- Hide the chat (meet now) icon from the taskbar.
|
- Hide the chat (meet now) icon from the taskbar.
|
||||||
- Hide the 3D objects, music or onedrive folder in the windows explorer sidepanel. (Windows 10 only)
|
- Hide the 3D objects, music or onedrive folder in the windows explorer sidepanel. (Windows 10 only)
|
||||||
- Hide the 'Include in library', 'Give access to' and 'Share' options in the context menu. (Windows 10 only)
|
- Hide the 'Include in library', 'Give access to' and 'Share' options in the context menu. (Windows 10 only)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
-------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------
|
||||||
Win11Debloat Script - Setup
|
Win11Debloat - Setup
|
||||||
-------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------
|
||||||
(1) Run Win11Debloat with the default settings
|
(1) Run Win11Debloat with the default settings
|
||||||
(2) Custom mode: Manually select what changes you want Win11Debloat to make
|
(2) Custom mode: Manually select what changes you want Win11Debloat to make
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ You can pick and choose exactly which modifications you want the script to make,
|
|||||||
- Disable bing search & cortana in windows search.
|
- Disable bing search & cortana in windows search.
|
||||||
- Disable tips, tricks, suggestions and ads in start, settings, notifications, windows explorer, and on the lockscreen.
|
- Disable tips, tricks, suggestions and ads in start, settings, notifications, windows explorer, and on the lockscreen.
|
||||||
- Show file extensions for known file types.
|
- Show file extensions for known file types.
|
||||||
- Disable the widget service & hide the widget (news and interests) icon from the taskbar.
|
- Disable Windows Copilot. (Windows 11 only)
|
||||||
|
- Disable the widget service & hide the icon from the taskbar.
|
||||||
- Hide the Chat (meet now) icon from the taskbar.
|
- Hide the Chat (meet now) icon from the taskbar.
|
||||||
- Hide the 3D objects folder under 'This pc' in windows explorer. (Windows 10 only)
|
- Hide the 3D objects folder under 'This pc' in windows explorer. (Windows 10 only)
|
||||||
|
|
||||||
@@ -35,8 +36,8 @@ In this mode you'll be able to make any of the following changes:
|
|||||||
- Align taskbar icons to the left. (Windows 11 only)
|
- Align taskbar icons to the left. (Windows 11 only)
|
||||||
- Hide or change the search icon/box on the taskbar. (Windows 11 only)
|
- Hide or change the search icon/box on the taskbar. (Windows 11 only)
|
||||||
- Hide the taskview button from the taskbar. (Windows 11 only)
|
- Hide the taskview button from the taskbar. (Windows 11 only)
|
||||||
- Disable Windows copilot. (Windows 11 only)
|
- Disable Windows Copilot. (Windows 11 only)
|
||||||
- Disable the widget service & hide the widget (news and interests) icon from the taskbar.
|
- Disable the widget service & hide icon from the taskbar.
|
||||||
- Hide the chat (meet now) icon from the taskbar.
|
- Hide the chat (meet now) icon from the taskbar.
|
||||||
- Hide the 3D objects, music or onedrive folder in the windows explorer sidepanel. (Windows 10 only)
|
- Hide the 3D objects, music or onedrive folder in the windows explorer sidepanel. (Windows 10 only)
|
||||||
- Hide the 'Include in library', 'Give access to' and 'Share' options in the context menu. (Windows 10 only)
|
- Hide the 'Include in library', 'Give access to' and 'Share' options in the context menu. (Windows 10 only)
|
||||||
|
|||||||
@@ -223,7 +223,7 @@ if ((-not $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or (
|
|||||||
Write-Output "-------------------------------------------------------------------------------------------"
|
Write-Output "-------------------------------------------------------------------------------------------"
|
||||||
|
|
||||||
# Add default parameters if they don't already exist
|
# Add default parameters if they don't already exist
|
||||||
$DefaultParameterNames = 'RemoveApps','DisableTelemetry','DisableBing','DisableLockscreenTips','DisableSuggestions','ShowKnownFileExt','DisableWidgets','HideChat'
|
$DefaultParameterNames = 'RemoveApps','DisableTelemetry','DisableBing','DisableLockscreenTips','DisableSuggestions','ShowKnownFileExt','DisableWidgets','HideChat','DisableCopilot'
|
||||||
|
|
||||||
foreach ($ParameterName in $DefaultParameterNames) {
|
foreach ($ParameterName in $DefaultParameterNames) {
|
||||||
if(-not $PSBoundParameters.ContainsKey($ParameterName)){
|
if(-not $PSBoundParameters.ContainsKey($ParameterName)){
|
||||||
@@ -275,8 +275,14 @@ if ((-not $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or (
|
|||||||
|
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
|
|
||||||
# Only show this option for windows 11 users
|
# Only show these options for windows 11 users
|
||||||
if (get-ciminstance -query "select caption from win32_operatingsystem where caption like '%Windows 11%'"){
|
if (get-ciminstance -query "select caption from win32_operatingsystem where caption like '%Windows 11%'"){
|
||||||
|
if ($( Read-Host -Prompt "Disable Windows Copilot? This applies to all users (y/n)" ) -eq 'y') {
|
||||||
|
$PSBoundParameters.Add('DisableCopilot', $DisableCopilot)
|
||||||
|
}
|
||||||
|
|
||||||
|
Write-Output ""
|
||||||
|
|
||||||
if ($( Read-Host -Prompt "Remove all pinned apps from the start menu? This applies to all existing and new users and can't be reverted (y/n)" ) -eq 'y') {
|
if ($( Read-Host -Prompt "Remove all pinned apps from the start menu? This applies to all existing and new users and can't be reverted (y/n)" ) -eq 'y') {
|
||||||
$PSBoundParameters.Add('ClearStart', $ClearStart)
|
$PSBoundParameters.Add('ClearStart', $ClearStart)
|
||||||
}
|
}
|
||||||
@@ -327,17 +333,11 @@ if ((-not $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or (
|
|||||||
if ($( Read-Host -Prompt " Hide the taskview button from the taskbar? (y/n)" ) -eq 'y') {
|
if ($( Read-Host -Prompt " Hide the taskview button from the taskbar? (y/n)" ) -eq 'y') {
|
||||||
$PSBoundParameters.Add('HideTaskview', $HideTaskview)
|
$PSBoundParameters.Add('HideTaskview', $HideTaskview)
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Output ""
|
|
||||||
|
|
||||||
if ($( Read-Host -Prompt " Disable Windows copilot and hide it from the taskbar? (y/n)" ) -eq 'y') {
|
|
||||||
$PSBoundParameters.Add('DisableCopilot', $DisableCopilot)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
|
|
||||||
if ($( Read-Host -Prompt " Disable the widgets service and hide the widget (news and interests) icon from the taskbar? (y/n)" ) -eq 'y') {
|
if ($( Read-Host -Prompt " Disable the widgets service and hide the icon from the taskbar? (y/n)" ) -eq 'y') {
|
||||||
$PSBoundParameters.Add('DisableWidgets', $DisableWidgets)
|
$PSBoundParameters.Add('DisableWidgets', $DisableWidgets)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -368,29 +368,29 @@ if ((-not $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or (
|
|||||||
if ($( Read-Host -Prompt " Hide duplicate removable drive entries from the windows explorer sidepane so they only show under 'This PC'? (y/n)" ) -eq 'y') {
|
if ($( Read-Host -Prompt " Hide duplicate removable drive entries from the windows explorer sidepane so they only show under 'This PC'? (y/n)" ) -eq 'y') {
|
||||||
$PSBoundParameters.Add('HideDupliDrive', $HideDupliDrive)
|
$PSBoundParameters.Add('HideDupliDrive', $HideDupliDrive)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
# Only show option for disabling these specific folders for windows 10 users
|
# Only show option for disabling these specific folders for windows 10 users
|
||||||
if (get-ciminstance -query "select caption from win32_operatingsystem where caption like '%Windows 10%'"){
|
if (get-ciminstance -query "select caption from win32_operatingsystem where caption like '%Windows 10%'"){
|
||||||
Write-Output ""
|
|
||||||
|
|
||||||
if ($( Read-Host -Prompt "Do you want to hide any folders from the windows explorer sidepane? (y/n)" ) -eq 'y') {
|
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
|
|
||||||
if ($( Read-Host -Prompt " Hide the onedrive folder from the windows explorer sidepane? (y/n)" ) -eq 'y') {
|
if ($( Read-Host -Prompt "Do you want to hide any folders from the windows explorer sidepane? (y/n)" ) -eq 'y') {
|
||||||
$PSBoundParameters.Add('HideOnedrive', $HideOnedrive)
|
Write-Output ""
|
||||||
}
|
|
||||||
|
|
||||||
Write-Output ""
|
if ($( Read-Host -Prompt " Hide the onedrive folder from the windows explorer sidepane? (y/n)" ) -eq 'y') {
|
||||||
|
$PSBoundParameters.Add('HideOnedrive', $HideOnedrive)
|
||||||
if ($( Read-Host -Prompt " Hide the 3D objects folder from the windows explorer sidepane? (y/n)" ) -eq 'y') {
|
}
|
||||||
$PSBoundParameters.Add('Hide3dObjects', $Hide3dObjects)
|
|
||||||
}
|
|
||||||
|
|
||||||
Write-Output ""
|
|
||||||
|
|
||||||
if ($( Read-Host -Prompt " Hide the music folder from the windows explorer sidepane? (y/n)" ) -eq 'y') {
|
Write-Output ""
|
||||||
$PSBoundParameters.Add('HideMusic', $HideMusic)
|
|
||||||
|
if ($( Read-Host -Prompt " Hide the 3D objects folder from the windows explorer sidepane? (y/n)" ) -eq 'y') {
|
||||||
|
$PSBoundParameters.Add('Hide3dObjects', $Hide3dObjects)
|
||||||
|
}
|
||||||
|
|
||||||
|
Write-Output ""
|
||||||
|
|
||||||
|
if ($( Read-Host -Prompt " Hide the music folder from the windows explorer sidepane? (y/n)" ) -eq 'y') {
|
||||||
|
$PSBoundParameters.Add('HideMusic', $HideMusic)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user