diff --git a/.github/workflows/gitleaks.yml b/.github/workflows/gitleaks.yml index 1efeed8..e3f89e6 100644 --- a/.github/workflows/gitleaks.yml +++ b/.github/workflows/gitleaks.yml @@ -1,5 +1,5 @@ name: Gitleaks -on: [pull_request, push, workflow_dispatch] +on: [pull_request, workflow_dispatch] jobs: scan: name: gitleaks diff --git a/README.md b/README.md index 888a481..f158c55 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ Yes, I know... Here is another ugly meme script to debloat Windows, this no long Lauch option 1 (Recommended): ```shell +Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser irm https://raw.githubusercontent.com/SegoCode/DebloBat/main/code/launcher.ps1 | iex ``` Lauch option 2: diff --git a/code/modules/localgroup.bat b/code/modules/localgroup.bat index 9c0c118..33630bb 100644 --- a/code/modules/localgroup.bat +++ b/code/modules/localgroup.bat @@ -222,7 +222,7 @@ 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 path="HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\System" && set key=AllowCrossDeviceClipboard && set value=0) if %N%==26 (set loopcount=25 && goto APPLYALLLOCALGROUP) if %N%==0 (goto INIT) @@ -261,7 +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) +if %loopcount%==25 (set path="HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\System" && set key=AllowCrossDeviceClipboard && set value=0) reg query %path% /v %key% > nul 2>&1 diff --git a/code/modules/qolconfig.bat b/code/modules/qolconfig.bat index 505a9f9..18dcc60 100644 --- a/code/modules/qolconfig.bat +++ b/code/modules/qolconfig.bat @@ -177,16 +177,6 @@ if not %errorlevel% == 1 ( echo [18] TdrDelay default value = [ Disabled ] ) - -reg query "HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell" /v FolderType > nul 2>&1 && ( - reg query "HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell" /v FolderType | find "NotSpecified" > nul 2>&1 -) -if %errorlevel% == 0 ( - echo [19] Default FolderType set = [ Disabled ] -) else ( - echo [19] Default FolderType set = [ Enabled ] -) - echo. echo [0] Return to menu @@ -442,15 +432,6 @@ if %N%==18 ( ) ) -if %N%==19 ( - reg query "HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell" /v FolderType | find "NotSpecified" > nul 2>&1 - if !ERRORLEVEL! == 1 ( - reg add "HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell" /v FolderType /t REG_SZ /d "NotSpecified" /f > nul 2>&1 - ) else ( - reg delete "HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell" /v FolderType /f > nul 2>&1 - ) -) - endlocal