Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync from develop to main #17

Merged
merged 5 commits into from
Aug 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading