Skip to content

Commit

Permalink
Update localgroup.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
SegoCode committed Aug 13, 2024
1 parent fb80531 commit 04cc7fa
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions code/modules/localgroup.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [[1;31m * [m]
echo [26] Apply all = [[1;31m * [m]
echo.
echo [0] Exit

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 04cc7fa

Please sign in to comment.