Skip to content

Commit 45c3793

Browse files
committed
feat: disable ClickToDo AI feature
1 parent dca7a9c commit 45c3793

File tree

4 files changed

+68
-0
lines changed

4 files changed

+68
-0
lines changed

src/playbook/Configuration/tweaks.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ actions:
9090
- !task: {path: 'tweaks\privacy\disable-perf-track.yml'}
9191
- !task: {path: 'tweaks\privacy\disable-privacy-experience.yml'}
9292
- !task: {path: 'tweaks\privacy\disable-recall-snap.yml'}
93+
- !task: {path: 'tweaks\privacy\disable-click-to-do.yml'}
9394
- !task: {path: 'tweaks\privacy\disable-device-monitoring.yml'}
9495
- !task: {path: 'tweaks\privacy\disable-rsop-logging.yml'}
9596
- !task: {path: 'tweaks\privacy\disable-speech-auto-updates.yml'}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
title: Disable Click To Do
3+
description: Disables the Click To Do AI feature
4+
builds: [ '>=22000' ]
5+
actions:
6+
- !cmd:
7+
command: '"AtlasDesktop\3. General Configuration\AI Features\Click To Do\Disable Click To Do (default).cmd" /silent'
8+
exeDir: true
9+
wait: true
10+
runas: currentUserElevated
11+
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
@echo off
2+
set "settingName=ClickToDo"
3+
set "stateValue=0"
4+
set "scriptPath=%~f0"
5+
6+
set "___args="%~f0" %*"
7+
fltmc > nul 2>&1 || (
8+
echo Administrator privileges are required.
9+
powershell -c "Start-Process -Verb RunAs -FilePath 'cmd' -ArgumentList """/c $env:___args"""" 2> nul || (
10+
echo You must run this script as admin.
11+
if "%*"=="" pause
12+
exit /b 1
13+
)
14+
exit /b
15+
)
16+
17+
reg add "HKLM\SOFTWARE\AtlasOS\Services\%settingName%" /v state /t REG_DWORD /d %stateValue% /f > nul
18+
reg add "HKLM\SOFTWARE\AtlasOS\Services\%settingName%" /v path /t REG_SZ /d "%scriptPath%" /f > nul
19+
20+
reg delete "HKCU\Software\Policies\Microsoft\Windows\WindowsAI" /v "DisableClickToDo" /f > nul 2>&1
21+
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /v "DisableClickToDo" /t REG_DWORD /d 1 /f > nul
22+
if "%~1"=="/silent" exit /b
23+
24+
echo.
25+
echo Click To Do has been disabled.
26+
echo Press any key to exit...
27+
pause > nul
28+
exit /b
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
@echo off
2+
set "settingName=ClickToDo"
3+
set "stateValue=1"
4+
set "scriptPath=%~f0"
5+
6+
set "___args="%~f0" %*"
7+
fltmc > nul 2>&1 || (
8+
echo Administrator privileges are required.
9+
powershell -c "Start-Process -Verb RunAs -FilePath 'cmd' -ArgumentList """/c $env:___args"""" 2> nul || (
10+
echo You must run this script as admin.
11+
if "%*"=="" pause
12+
exit /b 1
13+
)
14+
exit /b
15+
)
16+
17+
reg add "HKLM\SOFTWARE\AtlasOS\Services\%settingName%" /v state /t REG_DWORD /d %stateValue% /f > nul
18+
reg add "HKLM\SOFTWARE\AtlasOS\Services\%settingName%" /v path /t REG_SZ /d "%scriptPath%" /f > nul
19+
20+
reg delete "HKCU\Software\Policies\Microsoft\Windows\WindowsAI" /v "DisableClickToDo" /f > nul 2>&1
21+
reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" /v "DisableClickToDo" /f > nul 2>&1
22+
if "%~1"=="/silent" exit /b
23+
24+
echo.
25+
echo Click To Do has been enabled.
26+
echo Press any key to exit...
27+
pause > nul
28+
exit /b

0 commit comments

Comments
 (0)