From 04cc7faea173fde042938fde7e4f231daf879b1a Mon Sep 17 00:00:00 2001 From: SegoCode <35817798+SegoCode@users.noreply.github.com> Date: Tue, 13 Aug 2024 11:16:34 +0200 Subject: [PATCH] Update localgroup.bat --- code/modules/localgroup.bat | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/code/modules/localgroup.bat b/code/modules/localgroup.bat index f9ddf9f..9c0c118 100644 --- a/code/modules/localgroup.bat +++ b/code/modules/localgroup.bat @@ -182,8 +182,15 @@ if not %errorlevel% == 1 ( echo [24] WindowsAI Data Collection = [ Enabled ] ) +reg query "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\System" /v AllowCrossDeviceClipboard > nul 2>&1 +if not %errorlevel% == 1 ( + echo [25] Cloud Clipboard = [ Disabled ] +) else ( + echo [25] Cloud Clipboard = [ Enabled ] +) + -echo [25] Apply all = [ * ] +echo [26] Apply all = [ * ] echo. echo [0] Exit @@ -215,8 +222,9 @@ if %N%==21 (set path="HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Tab if %N%==22 (set path="HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System" && set key=PublishUserActivities && set value=0) if %N%==23 (set path="HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\TextInput" && set key=AllowLinguisticDataCollection && set value=0) if %N%==24 (set path="HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsAI" && set key=DisableAIDataAnalysis && set value=1) +if %N%==25 (set path="HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsAI" && set key=DisableAIDataAnalysis && set value=0) -if %N%==25 (set loopcount=24 && goto APPLYALLLOCALGROUP) +if %N%==26 (set loopcount=25 && goto APPLYALLLOCALGROUP) if %N%==0 (goto INIT) reg query %path% /v %key% > nul 2>&1 @@ -253,6 +261,7 @@ if %loopcount%==21 (set path="HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Win if %loopcount%==22 (set path="HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System" && set key=PublishUserActivities && set value=0) if %loopcount%==23 (set path="HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\TextInput" && set key=AllowLinguisticDataCollection && set value=0) if %loopcount%==24 (set path="HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsAI" && set key=DisableAIDataAnalysis && set value=1) +if %loopcount%==25 (set path="HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsAI" && set key=DisableAIDataAnalysis && set value=0) reg query %path% /v %key% > nul 2>&1