Skip to content

Commit

Permalink
Merge pull request #17 from SegoCode/develop
Browse files Browse the repository at this point in the history
Sync from develop to main
  • Loading branch information
SegoCode authored Aug 24, 2024
2 parents 836c1d2 + aeefa00 commit 09f72d7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gitleaks.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Gitleaks
on: [pull_request, push, workflow_dispatch]
on: [pull_request, workflow_dispatch]
jobs:
scan:
name: gitleaks
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions code/modules/localgroup.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
19 changes: 0 additions & 19 deletions code/modules/qolconfig.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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

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

Expand Down

0 comments on commit 09f72d7

Please sign in to comment.