diff --git a/Menus/DefaultSettings.txt b/Menus/DefaultSettings.txt index 6b6dd59..0a2c407 100644 --- a/Menus/DefaultSettings.txt +++ b/Menus/DefaultSettings.txt @@ -1,5 +1,5 @@ ------------------------------------------------------------------------------------------- - Win11Debloat Script - Setup + Win11Debloat - Setup ------------------------------------------------------------------------------------------- Win11Debloat will make the following changes: - 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 and suggestions in the start menu and settings, and ads in windows explorer. - 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 3D objects folder in windows explorer. (Windows 10 only) diff --git a/Menus/Info.txt b/Menus/Info.txt index fc524f4..b95b8e5 100644 --- a/Menus/Info.txt +++ b/Menus/Info.txt @@ -14,7 +14,8 @@ through all the settings yourself, or removing apps one by one! - Disable bing search & cortana in windows search. - Disable tips, tricks, suggestions and ads in start, settings, notifications, windows explorer, and on the lockscreen. - 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 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) - Hide or change the search icon/box on the taskbar. (Windows 11 only) - Hide the taskview button from the taskbar. (Windows 11 only) -- Disable Windows copilot. (Windows 11 only) -- 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 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) diff --git a/Menus/Menu.txt b/Menus/Menu.txt index 1e6ba00..7500785 100644 --- a/Menus/Menu.txt +++ b/Menus/Menu.txt @@ -1,5 +1,5 @@ ------------------------------------------------------------------------------------------- - Win11Debloat Script - Setup + Win11Debloat - Setup ------------------------------------------------------------------------------------------- (1) Run Win11Debloat with the default settings (2) Custom mode: Manually select what changes you want Win11Debloat to make diff --git a/README.md b/README.md index d62d7da..0e8d8d0 100644 --- a/README.md +++ b/README.md @@ -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 tips, tricks, suggestions and ads in start, settings, notifications, windows explorer, and on the lockscreen. - 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 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) - Hide or change the search icon/box on the taskbar. (Windows 11 only) - Hide the taskview button from the taskbar. (Windows 11 only) -- Disable Windows copilot. (Windows 11 only) -- 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 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 'Include in library', 'Give access to' and 'Share' options in the context menu. (Windows 10 only) diff --git a/Win11Debloat.ps1 b/Win11Debloat.ps1 index e0d51bf..d538054 100644 --- a/Win11Debloat.ps1 +++ b/Win11Debloat.ps1 @@ -223,7 +223,7 @@ if ((-not $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or ( Write-Output "-------------------------------------------------------------------------------------------" # 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) { if(-not $PSBoundParameters.ContainsKey($ParameterName)){ @@ -275,8 +275,14 @@ if ((-not $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or ( 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 ($( 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') { $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') { $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 "" - 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) } @@ -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') { $PSBoundParameters.Add('HideDupliDrive', $HideDupliDrive) } - } - # 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%'"){ - Write-Output "" - - if ($( Read-Host -Prompt "Do you want to hide any folders from the windows explorer sidepane? (y/n)" ) -eq 'y') { + # 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%'"){ 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 "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 3D objects folder from the windows explorer sidepane? (y/n)" ) -eq 'y') { - $PSBoundParameters.Add('Hide3dObjects', $Hide3dObjects) - } - - 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 music folder from the windows explorer sidepane? (y/n)" ) -eq 'y') { - $PSBoundParameters.Add('HideMusic', $HideMusic) + Write-Output "" + + 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) + } } } }