From 0b03ef5fd81df6c22b31e3c5188074103bc440c5 Mon Sep 17 00:00:00 2001 From: zoicware <118035521+zoicware@users.noreply.github.com> Date: Wed, 30 Jul 2025 17:58:49 -0400 Subject: [PATCH] kill notepad to ensure rewrite can be disabled --- RemoveWindowsAi.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/RemoveWindowsAi.ps1 b/RemoveWindowsAi.ps1 index 755d58e..aabf36c 100644 --- a/RemoveWindowsAi.ps1 +++ b/RemoveWindowsAi.ps1 @@ -597,6 +597,7 @@ function Hide-AI-Components { function Disable-Notepad-Rewrite { #disable rewrite for notepad Write-Status -msg 'Disabling Rewrite Ai Feature for Notepad...' + taskkill /im notepad.exe /f *>$null #load notepad settings reg load HKU\TEMP "$env:LOCALAPPDATA\Packages\Microsoft.WindowsNotepad_8wekyb3d8bbwe\Settings\settings.dat" >$null #add disable rewrite