From 7a6b1b59e07676e1793d34ceb28f05a49c96c04e Mon Sep 17 00:00:00 2001 From: zoicware <118035521+zoicware@users.noreply.github.com> Date: Wed, 3 Dec 2025 17:12:35 -0500 Subject: [PATCH] remove ai well known dll contracts --- RemoveWindowsAi.ps1 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/RemoveWindowsAi.ps1 b/RemoveWindowsAi.ps1 index 3d87d57..d8dec33 100644 --- a/RemoveWindowsAi.ps1 +++ b/RemoveWindowsAi.ps1 @@ -453,6 +453,16 @@ function Disable-Registry-Keys { $command = "reg add 'HKLM\SOFTWARE\Microsoft\WindowsRuntime\ActivatableClassId\Microsoft.Xbox.GamingAI.Companion.Host.GamingCompanionHostOptions' /v 'ActivationType' /t REG_DWORD /d 0 /f" Run-Trusted -command $command -psversion $psversion + #remove windows ai dll contracts + $command = " + Reg delete 'HKLM\SOFTWARE\Microsoft\WindowsRuntime\WellKnownContracts' /v 'Windows.AI.Actions.ActionsContract' /f + Reg delete 'HKLM\SOFTWARE\Microsoft\WindowsRuntime\WellKnownContracts' /v 'Windows.AI.Agents.AgentsContract' /f + Reg delete 'HKLM\SOFTWARE\Microsoft\WindowsRuntime\WellKnownContracts' /v 'Windows.AI.MachineLearning.MachineLearningContract' /f + Reg delete 'HKLM\SOFTWARE\Microsoft\WindowsRuntime\WellKnownContracts' /v 'Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract' /f + " + Run-Trusted -command $command -psversion $psversion + + #disable ai dlls from activating (these should exist already on most pcs but i think they are not on copilot+ pcs) $dllPaths = @( 'HKLM\SOFTWARE\Microsoft\WindowsRuntime\ActivatableClassId\SystemSettings.A9.A9AddBASetting'