mirror of
https://github.com/zoicware/RemoveWindowsAI.git
synced 2025-12-17 07:06:29 +01:00
kill notepad to ensure rewrite can be disabled
This commit is contained in:
@@ -597,6 +597,7 @@ function Hide-AI-Components {
|
|||||||
function Disable-Notepad-Rewrite {
|
function Disable-Notepad-Rewrite {
|
||||||
#disable rewrite for notepad
|
#disable rewrite for notepad
|
||||||
Write-Status -msg 'Disabling Rewrite Ai Feature for Notepad...'
|
Write-Status -msg 'Disabling Rewrite Ai Feature for Notepad...'
|
||||||
|
taskkill /im notepad.exe /f *>$null
|
||||||
#load notepad settings
|
#load notepad settings
|
||||||
reg load HKU\TEMP "$env:LOCALAPPDATA\Packages\Microsoft.WindowsNotepad_8wekyb3d8bbwe\Settings\settings.dat" >$null
|
reg load HKU\TEMP "$env:LOCALAPPDATA\Packages\Microsoft.WindowsNotepad_8wekyb3d8bbwe\Settings\settings.dat" >$null
|
||||||
#add disable rewrite
|
#add disable rewrite
|
||||||
|
|||||||
Reference in New Issue
Block a user