Copilot is now disabled when running default settings (#10)

Moved some options around in custom setup
This commit is contained in:
Raphire
2023-10-24 20:39:39 +02:00
parent 3321781b31
commit 4280f9b7cf
5 changed files with 39 additions and 36 deletions

View File

@@ -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)

View File

@@ -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)

View File

@@ -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

View File

@@ -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)

View File

@@ -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,7 +368,6 @@ 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%'"){
@@ -394,6 +393,7 @@ if ((-not $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or (
}
}
}
}
# Only show option for disabling context menu items for windows 10 users
if (get-ciminstance -query "select caption from win32_operatingsystem where caption like '%Windows 10%'"){