From 70f8170e812ac8d58552dcd070e2d8df8880cb1b Mon Sep 17 00:00:00 2001 From: Jeffrey <9938813+Raphire@users.noreply.github.com> Date: Sat, 7 Mar 2026 20:28:58 +0100 Subject: [PATCH] Add option to disable WSAIFabric service from automatically starting (#501) --- Assets/Features.json | 13 +++++++++++++ DefaultSettings.json | 4 ++++ README.md | 1 + Regfiles/Disable_AI_Service_Auto_Start.reg | 4 ++++ Regfiles/Sysprep/Disable_AI_Service_Auto_Start.reg | 4 ++++ Regfiles/Undo/Enable_AI_Service_Auto_Start.reg | 4 ++++ Scripts/Get.ps1 | 1 + Win11Debloat.ps1 | 1 + 8 files changed, 32 insertions(+) create mode 100644 Regfiles/Disable_AI_Service_Auto_Start.reg create mode 100644 Regfiles/Sysprep/Disable_AI_Service_Auto_Start.reg create mode 100644 Regfiles/Undo/Enable_AI_Service_Auto_Start.reg diff --git a/Assets/Features.json b/Assets/Features.json index 3e3562c..5a2f61f 100644 --- a/Assets/Features.json +++ b/Assets/Features.json @@ -476,6 +476,19 @@ "MinVersion": 22621, "MaxVersion": null }, + { + "FeatureId": "DisableAISvcAutoStart", + "Label": "AI service from starting automatically", + "ToolTip": "This will set the WSAIFabricSvc service to manual startup, preventing the service from starting automatically with Windows.", + "Category": "AI", + "Action": "Prevent", + "RegistryKey": "Disable_AI_Service_Auto_Start.reg", + "ApplyText": "> Preventing AI service from starting automatically...", + "UndoAction": "Allow", + "RegistryUndoKey": "Enable_AI_Service_Auto_Start.reg", + "MinVersion": 22621, + "MaxVersion": null + }, { "FeatureId": "DisableDVR", "Label": "Xbox game/screen recording", diff --git a/DefaultSettings.json b/DefaultSettings.json index 0954cc8..2d7c8a1 100644 --- a/DefaultSettings.json +++ b/DefaultSettings.json @@ -45,6 +45,10 @@ "Name": "DisableClickToDo", "Value": true }, + { + "Name": "DisableAISvcAutoStart", + "Value": true + }, { "Name": "DisableWidgets", "Value": true diff --git a/README.md b/README.md index 47e8f5b..2c032ae 100755 --- a/README.md +++ b/README.md @@ -99,6 +99,7 @@ Below is an overview of the key features and functionality offered by Win11Deblo - Disable & remove Microsoft Copilot. - Disable Windows Recall. (W11 only) - Disable Click to Do, AI text & image analysis tool. (W11 only) +- Prevent AI service (WSAIFabricSvc) from starting automatically. (W11 only) - Disable AI Features in Edge. (W11 only) - Disable AI Features in Paint. (W11 only) - Disable AI Features in Notepad. (W11 only) diff --git a/Regfiles/Disable_AI_Service_Auto_Start.reg b/Regfiles/Disable_AI_Service_Auto_Start.reg new file mode 100644 index 0000000..aee079c --- /dev/null +++ b/Regfiles/Disable_AI_Service_Auto_Start.reg @@ -0,0 +1,4 @@ +Windows Registry Editor Version 5.00 + +[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WSAIFabricSvc] +"Start"=dword:00000003 diff --git a/Regfiles/Sysprep/Disable_AI_Service_Auto_Start.reg b/Regfiles/Sysprep/Disable_AI_Service_Auto_Start.reg new file mode 100644 index 0000000..aee079c --- /dev/null +++ b/Regfiles/Sysprep/Disable_AI_Service_Auto_Start.reg @@ -0,0 +1,4 @@ +Windows Registry Editor Version 5.00 + +[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WSAIFabricSvc] +"Start"=dword:00000003 diff --git a/Regfiles/Undo/Enable_AI_Service_Auto_Start.reg b/Regfiles/Undo/Enable_AI_Service_Auto_Start.reg new file mode 100644 index 0000000..8c94104 --- /dev/null +++ b/Regfiles/Undo/Enable_AI_Service_Auto_Start.reg @@ -0,0 +1,4 @@ +Windows Registry Editor Version 5.00 + +[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WSAIFabricSvc] +"Start"=dword:00000002 diff --git a/Scripts/Get.ps1 b/Scripts/Get.ps1 index 6b135ff..6708919 100644 --- a/Scripts/Get.ps1 +++ b/Scripts/Get.ps1 @@ -60,6 +60,7 @@ param ( [switch]$DisableCopilot, [switch]$DisableRecall, [switch]$DisableClickToDo, + [switch]$DisableAISvcAutoStart, [switch]$DisablePaintAI, [switch]$DisableNotepadAI, [switch]$DisableEdgeAI, diff --git a/Win11Debloat.ps1 b/Win11Debloat.ps1 index be70676..5786ff3 100755 --- a/Win11Debloat.ps1 +++ b/Win11Debloat.ps1 @@ -63,6 +63,7 @@ param ( [switch]$DisableCopilot, [switch]$DisableRecall, [switch]$DisableClickToDo, + [switch]$DisableAISvcAutoStart, [switch]$DisablePaintAI, [switch]$DisableNotepadAI, [switch]$DisableEdgeAI,