File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -323,6 +323,8 @@ function Disable-Registry-Keys {
323323 Reg.exe add ' HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Paint' / v ' DisableGenerativeFill' / t REG_DWORD / d @ (' 1' , ' 0' )[$revert ] / f * > $null
324324 Reg.exe add ' HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Paint' / v ' DisableGenerativeErase' / t REG_DWORD / d @ (' 1' , ' 0' )[$revert ] / f * > $null
325325 Reg.exe add ' HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Paint' / v ' DisableRemoveBackground' / t REG_DWORD / d @ (' 1' , ' 0' )[$revert ] / f * > $null
326+ # disable ask copilot in context menu
327+ Reg.exe add ' HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked' / v ' {CB3B0003-8088-4EDE-8769-8B354AB2FF8C}' / t REG_SZ / d ' Ask Copilot' / f * > $null
326328 # Reg.exe add 'HKLM\SYSTEM\CurrentControlSet\Services\WSAIFabricSvc' /v 'Start' /t REG_DWORD /d @('4', '2')[$revert] /f *>$null
327329 try {
328330 Stop-Service - Name WSAIFabricSvc - Force - ErrorAction Stop
You can’t perform that action at this time.
0 commit comments