Added option to disable Windows copilot, and some other minor changes

All changes:
* Added option to disable Windows Copilot
* Condensed options in custom mode
* Added new outlook app to appslist, it's not removed by default
* Added some missing info to README.md
This commit is contained in:
Raphire
2023-09-27 02:45:34 +02:00
parent b62b36263a
commit 14246951fa
5 changed files with 50 additions and 15 deletions

View File

@@ -95,6 +95,7 @@
# #
#*Microsoft.GetHelp* # Required for some Windows 11 Troubleshooters #*Microsoft.GetHelp* # Required for some Windows 11 Troubleshooters
#*Microsoft.MSPaint* # Paint 3D #*Microsoft.MSPaint* # Paint 3D
#*Microsoft.OutlookForWindows* # New mail app
#*Microsoft.Paint* # Classic Paint #*Microsoft.Paint* # Classic Paint
#*Microsoft.People* # Required for & included with Mail & Calendar #*Microsoft.People* # Required for & included with Mail & Calendar
#*Microsoft.PowerAutomateDesktop* #*Microsoft.PowerAutomateDesktop*

View File

@@ -13,8 +13,7 @@ You can pick and choose exactly which modifications you want the script to make,
- Remove all bloatware apps from [this list](#click-for-list-of-bloat-that-is-removed). - Remove all bloatware apps from [this list](#click-for-list-of-bloat-that-is-removed).
- Disable telemetry, diagnostic data, app-launch tracking & targeted ads. - Disable telemetry, diagnostic data, app-launch tracking & targeted ads.
- Disable bing search & cortana in windows search. - Disable bing search & cortana in windows search.
- Disable tips & tricks on the lockscreen. (This may change your lockscreen wallpaper) - Disable tips, tricks, suggestions and ads in start, settings, notifications, windows explorer, and on the lockscreen.
- Disable tips, tricks and suggestions in the start menu and settings, and sync provider 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 the widget service & hide the widget (news and interests) icon from the taskbar.
- Hide the Chat (meet now) icon from the taskbar. - Hide the Chat (meet now) icon from the taskbar.
@@ -28,20 +27,19 @@ In this mode you'll be able to make any of the following changes:
- Remove all bloatware apps from [this list](#click-for-list-of-bloat-that-is-removed) and optionally also remove gaming-related apps. - Remove all bloatware apps from [this list](#click-for-list-of-bloat-that-is-removed) and optionally also remove gaming-related apps.
- Disable telemetry, diagnostic data, app-launch tracking & targeted ads. - Disable telemetry, diagnostic data, app-launch tracking & targeted ads.
- Disable bing search, bing AI & cortana in windows search. - Disable bing search, bing AI & cortana in windows search.
- Disable tips & tricks on the lockscreen. (This may change your lockscreen wallpaper) - Disable tips, tricks, suggestions and ads in start, settings, notifications, windows explorer, and on the lockscreen.
- Disable tips, tricks and suggestions in the start menu and settings, and sync provider ads in windows explorer.
- Show hidden files, folders and drives. - Show hidden files, folders and drives.
- Show file extensions for known file types. - Show file extensions for known file types.
- Remove all pinned apps from the start menu. NOTE: This applies to all existing and new users. (Windows 11 update 22H2 or later only) - Remove all pinned apps from the start menu. NOTE: This applies to all existing and new users. (Windows 11 update 22H2 or later only)
- 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 the widget service & hide the widget (news and interests) icon from the taskbar. - Disable the widget service & hide the widget (news and interests) 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)
All of these changes can be individually reverted with the registry files that are included in the 'Regfiles' folder. All of these changes can be individually reverted with the registry files that are included in the 'Regfiles' folder.
## Usage ## Usage
@@ -77,7 +75,7 @@ To run the script without any user input, simply add parameters at the end, exam
| -DisableTelemetry | Disable telemetry, diagnostic data & targeted ads. | | -DisableTelemetry | Disable telemetry, diagnostic data & targeted ads. |
| -DisableBing | Disable bing search, bing AI & cortana in windows search. | | -DisableBing | Disable bing search, bing AI & cortana in windows search. |
| -DisableLockscreenTips | Disable tips & tricks on the lockscreen. | | -DisableLockscreenTips | Disable tips & tricks on the lockscreen. |
| -DisableSuggestions | Disable tips, tricks and suggestions in the start menu and settings, and sync provider ads in windows explorer. | | -DisableSuggestions | Disable tips, tricks, suggestions and ads in start, settings, notifications and windows explorer. |
| -ShowHiddenFolders | Show hidden files, folders and drives. | | -ShowHiddenFolders | Show hidden files, folders and drives. |
| -ShowKnownFileExt | Show file extensions for known file types. | | -ShowKnownFileExt | Show file extensions for known file types. |
| -TaskbarAlignLeft | Align taskbar icons to the left. (Windows 11 only) | | -TaskbarAlignLeft | Align taskbar icons to the left. (Windows 11 only) |
@@ -85,6 +83,8 @@ To run the script without any user input, simply add parameters at the end, exam
| -ShowSearchIconTb | Show search icon on the taskbar. (Windows 11 only) | | -ShowSearchIconTb | Show search icon on the taskbar. (Windows 11 only) |
| -ShowSearchLabelTb | Show search icon with label on the taskbar. (Windows 11 only) | | -ShowSearchLabelTb | Show search icon with label on the taskbar. (Windows 11 only) |
| -ShowSearchBoxTb | Show search box on the taskbar. (Windows 11 only) | | -ShowSearchBoxTb | Show search box on the taskbar. (Windows 11 only) |
| -HideTaskview | Hide the taskview button from the taskbar. (Windows 11 only) |
| -DisableCopilot | Disable Windows copilot (Windows 11 only) |
| -DisableWidgets | Disable the widget service & hide the widget (news and interests) icon from the taskbar. | | -DisableWidgets | Disable the widget service & hide the widget (news and interests) icon from the taskbar. |
| -HideChat | Hide the chat (meet now) icon from the taskbar. | | -HideChat | Hide the chat (meet now) icon from the taskbar. |
| -ClearStart | Remove all pinned apps from the start menu. NOTE: This applies to all existing and new users. (Windows 11 update 22H2 or later only) | | -ClearStart | Remove all pinned apps from the start menu. NOTE: This applies to all existing and new users. (Windows 11 update 22H2 or later only) |
@@ -200,6 +200,7 @@ By default, this script removes a large selection preinstalled bloatware, while
Apps that are required or useful for most users: Apps that are required or useful for most users:
- Microsoft.GetHelp (Required for some Windows 11 Troubleshooters) - Microsoft.GetHelp (Required for some Windows 11 Troubleshooters)
- Microsoft.MSPaint (Paint 3D) - Microsoft.MSPaint (Paint 3D)
- Microsoft.OutlookForWindows (New mail app)
- Microsoft.Paint (Classic Paint) - Microsoft.Paint (Classic Paint)
- Microsoft.People (Required for & included with Mail & Calendar) - Microsoft.People (Required for & included with Mail & Calendar)
- Microsoft.RemoteDesktop - Microsoft.RemoteDesktop

View File

@@ -0,0 +1,13 @@
Windows Registry Editor Version 5.00
; Disable Copilot button on taskbar
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"ShowCopilotButton"=dword:00000000
; Disable Copilot service for current user
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\WindowsCopilot]
"TurnOffWindowsCopilot"=dword:00000001
; Disable Copilot service for all users
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsCopilot]
"TurnOffWindowsCopilot"=dword:00000001

View File

@@ -0,0 +1,13 @@
Windows Registry Editor Version 5.00
; Enable Copilot button on taskbar
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"ShowCopilotButton"=dword:00000001
; Enable Copilot service for current user
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\WindowsCopilot]
"TurnOffWindowsCopilot"=-
; Enable Copilot service for all users
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsCopilot]
"TurnOffWindowsCopilot"=-

View File

@@ -21,6 +21,7 @@ param
[Parameter(ValueFromPipeline = $true)][switch]$ShowSearchLabelTb, [Parameter(ValueFromPipeline = $true)][switch]$ShowSearchLabelTb,
[Parameter(ValueFromPipeline = $true)][switch]$ShowSearchBoxTb, [Parameter(ValueFromPipeline = $true)][switch]$ShowSearchBoxTb,
[Parameter(ValueFromPipeline = $true)][switch]$HideTaskview, [Parameter(ValueFromPipeline = $true)][switch]$HideTaskview,
[Parameter(ValueFromPipeline = $true)][switch]$DisableCopilot,
[Parameter(ValueFromPipeline = $true)][switch]$DisableWidgets, [Parameter(ValueFromPipeline = $true)][switch]$DisableWidgets,
[Parameter(ValueFromPipeline = $true)][switch]$HideWidgets, [Parameter(ValueFromPipeline = $true)][switch]$HideWidgets,
[Parameter(ValueFromPipeline = $true)][switch]$DisableChat, [Parameter(ValueFromPipeline = $true)][switch]$DisableChat,
@@ -252,13 +253,8 @@ if ((-NOT $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or (
Write-Output "" Write-Output ""
if ($( Read-Host -Prompt "Disable tips, tricks and suggestions in the start menu, settings and windows explorer? (y/n)" ) -eq 'y') { if ($( Read-Host -Prompt "Disable tips, tricks, suggestions and ads in start, settings, notifications, windows explorer and on the lockscreen? (y/n)" ) -eq 'y') {
$PSBoundParameters.Add('DisableSuggestions', $DisableSuggestions) $PSBoundParameters.Add('DisableSuggestions', $DisableSuggestions)
}
Write-Output ""
if ($( Read-Host -Prompt "Disable tips & tricks on the lockscreen? (y/n)" ) -eq 'y') {
$PSBoundParameters.Add('DisableLockscreenTips', $DisableLockscreenTips) $PSBoundParameters.Add('DisableLockscreenTips', $DisableLockscreenTips)
} }
@@ -273,7 +269,7 @@ if ((-NOT $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or (
Write-Output "" Write-Output ""
if ($( Read-Host -Prompt "Do you want to make any changes to the taskbar? (y/n)" ) -eq 'y') { if ($( Read-Host -Prompt "Do you want to make any changes to the taskbar and related services? (y/n)" ) -eq 'y') {
# Only show these specific options for windows 11 users # Only show these specific 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%'"){
Write-Output "" Write-Output ""
@@ -316,6 +312,12 @@ 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 ""
@@ -445,7 +447,7 @@ switch ($PSBoundParameters.Keys) {
continue continue
} }
{$_ -in "DisableSuggestions", "DisableWindowsSuggestions"} { {$_ -in "DisableSuggestions", "DisableWindowsSuggestions"} {
RegImport "> Disabling tips, tricks and suggestions in the start menu, settings and windows explorer..." $PSScriptRoot\Regfiles\Disable_Windows_Suggestions.reg RegImport "> Disabling tips, tricks, suggestions and ads in start, settings, notifications and windows explorer..." $PSScriptRoot\Regfiles\Disable_Windows_Suggestions.reg
Write-Output "" Write-Output ""
continue continue
} }
@@ -479,6 +481,11 @@ switch ($PSBoundParameters.Keys) {
Write-Output "" Write-Output ""
continue continue
} }
'DisableCopilot' {
RegImport "> Disabling Windows copilot..." $PSScriptRoot\Regfiles\Disable_Copilot.reg
Write-Output ""
continue
}
{$_ -in "HideWidgets", "DisableWidgets"} { {$_ -in "HideWidgets", "DisableWidgets"} {
RegImport "> Disabling the widget service and hiding the widget icon from the taskbar..." $PSScriptRoot\Regfiles\Disable_Widgets_Taskbar.reg RegImport "> Disabling the widget service and hiding the widget icon from the taskbar..." $PSScriptRoot\Regfiles\Disable_Widgets_Taskbar.reg
Write-Output "" Write-Output ""