From 1cf461940dbc8d248e2222988482af032c769fda Mon Sep 17 00:00:00 2001 From: Raphire <9938813+Raphire@users.noreply.github.com> Date: Fri, 1 Aug 2025 21:21:38 +0200 Subject: [PATCH] Add option to disable AI features in Paint & Notepad --- Assets/Menus/Info | 6 ++- Get.ps1 | 2 + README.md | 7 ++- Regfiles/Disable_AI_Recall.reg | 3 ++ Regfiles/Disable_Notepad_AI_Features.reg | 4 ++ Regfiles/Disable_Paint_AI_Features.reg | 16 +++++++ .../Sysprep/Disable_Notepad_AI_Features.reg | 4 ++ .../Sysprep/Disable_Paint_AI_Features.reg | 13 ++++++ Regfiles/Undo/Enable_Notepad_AI_Features.reg | 4 ++ Regfiles/Undo/Enable_Paint_AI_Features.reg | 7 +++ Win11Debloat.ps1 | 43 ++++++++++++++++--- 11 files changed, 98 insertions(+), 11 deletions(-) create mode 100644 Regfiles/Disable_Notepad_AI_Features.reg create mode 100644 Regfiles/Disable_Paint_AI_Features.reg create mode 100644 Regfiles/Sysprep/Disable_Notepad_AI_Features.reg create mode 100644 Regfiles/Sysprep/Disable_Paint_AI_Features.reg create mode 100644 Regfiles/Undo/Enable_Notepad_AI_Features.reg create mode 100644 Regfiles/Undo/Enable_Paint_AI_Features.reg diff --git a/Assets/Menus/Info b/Assets/Menus/Info index 13284bd..bf2c2b8 100644 --- a/Assets/Menus/Info +++ b/Assets/Menus/Info @@ -14,10 +14,12 @@ Telemetry, Tracking & Suggested Content - Disable tips, tricks, suggestions & ads across Windows. - Disable the 'Windows Spotlight' desktop background option. -Bing, Copilot & More +Bing Web Search, Copilot & AI Features - Disable & remove Bing web search, Bing AI and Cortana from Windows search. - Disable & remove Microsoft Copilot. (W11 only) - Disable Windows Recall snapshots. (W11 only) +- Disable AI Features in Paint (W11 only) +- Disable AI Features in Notepad (W11 only) Personalisation - Enable dark mode for system and apps. @@ -45,7 +47,7 @@ Taskbar - Enable the 'Last Active Click' behavior in the taskbar app area. Start -- Disable & hide the recommended section in the start menu. (W11 only) +- Disable the recommended section in the start menu. (W11 only) - Disable the Phone Link mobile devices integration in the start menu. (W11 only) Other diff --git a/Get.ps1 b/Get.ps1 index ff0010b..f737ca4 100644 --- a/Get.ps1 +++ b/Get.ps1 @@ -38,6 +38,8 @@ param ( [switch]$DisableStartPhoneLink, [switch]$DisableCopilot, [switch]$DisableRecall, + [switch]$DisablePaintAI, + [switch]$DisableNotepadAI, [switch]$DisableWidgets, [switch]$HideWidgets, [switch]$DisableChat, [switch]$HideChat, [switch]$EnableEndTask, diff --git a/README.md b/README.md index fedb923..d107b1f 100644 --- a/README.md +++ b/README.md @@ -104,11 +104,13 @@ Below is an overview of the key features and functionality offered by Win11Deblo - Disable tips, tricks, suggestions and ads in start, settings, notifications, File Explorer, and on the lockscreen. - Disable the 'Windows Spotlight' desktop background option. -#### Bing Web Search, Copilot & More +#### Bing Web Search, Copilot & AI Features - Disable & remove Bing web search, Bing AI and Cortana from Windows search. - Disable & remove Microsoft Copilot. (W11 only) - Disable Windows Recall snapshots. (W11 only) +- Disable AI Features in Paint (W11 only) +- Disable AI Features in Notepad (W11 only) #### Personalisation @@ -139,7 +141,8 @@ Below is an overview of the key features and functionality offered by Win11Deblo - Enable the 'Last Active Click' behavior in the taskbar app area. This allows you to repeatedly click on an application's icon in the taskbar to switch focus between multiple active windows for that application. #### Start -- Disable & hide the recommended section in the start menu. (W11 only) + +- Disable the recommended section in the start menu. (W11 only) - Disable the Phone Link mobile devices integration in the start menu. (W11 only) #### Other diff --git a/Regfiles/Disable_AI_Recall.reg b/Regfiles/Disable_AI_Recall.reg index 3e31683..c2936ae 100644 --- a/Regfiles/Disable_AI_Recall.reg +++ b/Regfiles/Disable_AI_Recall.reg @@ -8,3 +8,6 @@ Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsAI] "AllowRecallEnablement"=dword:00000000 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsAI] +"TurnOffSavingSnapshots"=dword:00000001 \ No newline at end of file diff --git a/Regfiles/Disable_Notepad_AI_Features.reg b/Regfiles/Disable_Notepad_AI_Features.reg new file mode 100644 index 0000000..7a5ec2e --- /dev/null +++ b/Regfiles/Disable_Notepad_AI_Features.reg @@ -0,0 +1,4 @@ +Windows Registry Editor Version 5.00 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\WindowsNotepad] +"DisableAIFeatures"=dword:00000001 diff --git a/Regfiles/Disable_Paint_AI_Features.reg b/Regfiles/Disable_Paint_AI_Features.reg new file mode 100644 index 0000000..09a1978 --- /dev/null +++ b/Regfiles/Disable_Paint_AI_Features.reg @@ -0,0 +1,16 @@ +Windows Registry Editor Version 5.00 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Paint] +"DisableCocreator"=dword:00000001 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Paint] +"DisableGenerativeFill"=dword:00000001 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Paint] +"DisableImageCreator"=dword:00000001 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Paint] +"DisableGenerativeErase"=dword:00000001 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Paint] +"DisableRemoveBackground"=dword:00000001 diff --git a/Regfiles/Sysprep/Disable_Notepad_AI_Features.reg b/Regfiles/Sysprep/Disable_Notepad_AI_Features.reg new file mode 100644 index 0000000..7a5ec2e --- /dev/null +++ b/Regfiles/Sysprep/Disable_Notepad_AI_Features.reg @@ -0,0 +1,4 @@ +Windows Registry Editor Version 5.00 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\WindowsNotepad] +"DisableAIFeatures"=dword:00000001 diff --git a/Regfiles/Sysprep/Disable_Paint_AI_Features.reg b/Regfiles/Sysprep/Disable_Paint_AI_Features.reg new file mode 100644 index 0000000..bb9da60 --- /dev/null +++ b/Regfiles/Sysprep/Disable_Paint_AI_Features.reg @@ -0,0 +1,13 @@ +Windows Registry Editor Version 5.00 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Paint] +"DisableCocreator"=dword:00000001 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Paint] +"DisableGenerativeFill"=dword:00000001 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Paint] +"DisableImageCreator"=dword:00000001 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Paint] +"DisableGenerativeErase"=dword:00000001 diff --git a/Regfiles/Undo/Enable_Notepad_AI_Features.reg b/Regfiles/Undo/Enable_Notepad_AI_Features.reg new file mode 100644 index 0000000..60c3479 --- /dev/null +++ b/Regfiles/Undo/Enable_Notepad_AI_Features.reg @@ -0,0 +1,4 @@ +Windows Registry Editor Version 5.00 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\WindowsNotepad] +"DisableAIFeatures"=- diff --git a/Regfiles/Undo/Enable_Paint_AI_Features.reg b/Regfiles/Undo/Enable_Paint_AI_Features.reg new file mode 100644 index 0000000..a56a5ae --- /dev/null +++ b/Regfiles/Undo/Enable_Paint_AI_Features.reg @@ -0,0 +1,7 @@ +Windows Registry Editor Version 5.00 + +[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Paint] +"DisableCocreator"=- +"DisableGenerativeFill"=- +"DisableImageCreator"=- +"DisableGenerativeErase"=- diff --git a/Win11Debloat.ps1 b/Win11Debloat.ps1 index 0e8f138..6f0cd0a 100644 --- a/Win11Debloat.ps1 +++ b/Win11Debloat.ps1 @@ -40,6 +40,8 @@ param ( [switch]$DisableStartPhoneLink, [switch]$DisableCopilot, [switch]$DisableRecall, + [switch]$DisablePaintAI, + [switch]$DisableNotepadAI, [switch]$DisableWidgets, [switch]$HideWidgets, [switch]$DisableChat, [switch]$HideChat, [switch]$EnableEndTask, @@ -899,9 +901,28 @@ function DisplayCustomModeOptions { if ($WinVersion -ge 22621) { Write-Output "" - if ($( Read-Host -Prompt "Disable & remove Microsoft Copilot and Windows Recall snapshots? This applies to all users (y/n)" ) -eq 'y') { - AddParameter 'DisableCopilot' 'Disable and remove Microsoft Copilot' - AddParameter 'DisableRecall' 'Disable and remove Windows Recall snapshots' + # Show options for disabling/removing AI features, only continue on valid input + Do { + Write-Host "Options:" -ForegroundColor Yellow + Write-Host " (n) Don't disable any AI features" -ForegroundColor Yellow + Write-Host " (1) Disable Microsoft Copilot and Windows Recall snapshots" -ForegroundColor Yellow + Write-Host " (2) Disable Microsoft Copilot, Windows Recall snapshots and AI features in Paint and Notepad" -ForegroundColor Yellow + $DisableAIInput = Read-Host "Do you want to disable any AI features? This applies to all users (n/1/2)" + } + while ($DisableAIInput -ne 'n' -and $DisableAIInput -ne '0' -and $DisableAIInput -ne '1' -and $DisableAIInput -ne '2') + + # Select correct option based on user input + switch ($DisableAIInput) { + '1' { + AddParameter 'DisableCopilot' 'Disable & remove Microsoft Copilot' + AddParameter 'DisableRecall' 'Disable Windows Recall snapshots' + } + '2' { + AddParameter 'DisableCopilot' 'Disable & remove Microsoft Copilot' + AddParameter 'DisableRecall' 'Disable Windows Recall snapshots' + AddParameter 'DisablePaintAI' 'Disable AI features in Paint' + AddParameter 'DisableNotepadAI' 'Disable AI features in Notepad' + } } } @@ -1014,8 +1035,8 @@ function DisplayCustomModeOptions { Write-Output "" - if ($( Read-Host -Prompt " Disable & hide the recommended section in the start menu? This applies to all users (y/n)" ) -eq 'y') { - AddParameter 'DisableStartRecommended' 'Disable & hide the recommended section in the start menu.' + if ($( Read-Host -Prompt " Disable the recommended section in the start menu? This applies to all users (y/n)" ) -eq 'y') { + AddParameter 'DisableStartRecommended' 'Disable the recommended section in the start menu.' } Write-Output "" @@ -1576,7 +1597,7 @@ switch ($script:Params.Keys) { continue } 'DisableCopilot' { - RegImport "> Disabling & removing Microsoft Copilot..." "Disable_Copilot.reg" + RegImport "> Disabling Microsoft Copilot..." "Disable_Copilot.reg" # Also remove the app package for Copilot $appsList = 'Microsoft.Copilot' @@ -1587,6 +1608,14 @@ switch ($script:Params.Keys) { RegImport "> Disabling Windows Recall snapshots..." "Disable_AI_Recall.reg" continue } + 'DisablePaintAI' { + RegImport "> Disabling AI features in Paint..." "Disable_Paint_AI_Features.reg" + continue + } + 'DisableNotepadAI' { + RegImport "> Disabling AI features in Notepad..." "Disable_Notepad_AI_Features.reg" + continue + } 'RevertContextMenu' { RegImport "> Restoring the old Windows 10 style context menu..." "Disable_Show_More_Options_Context_Menu.reg" continue @@ -1624,7 +1653,7 @@ switch ($script:Params.Keys) { continue } 'DisableStartRecommended' { - RegImport "> Disabling and hiding the start menu recommended section..." "Disable_Start_Recommended.reg" + RegImport "> Disabling the start menu recommended section..." "Disable_Start_Recommended.reg" continue } 'DisableStartPhoneLink' {