Skip to content

Instantly share code, notes, and snippets.

@nimaid
Last active June 23, 2023 21:11
Show Gist options
  • Select an option

  • Save nimaid/905072c83644682726687ad09aea9bbf to your computer and use it in GitHub Desktop.

Select an option

Save nimaid/905072c83644682726687ad09aea9bbf to your computer and use it in GitHub Desktop.
A batch script to strip down a Windows 10 Sandbox instance on boot to be less visually annoying
REM Run this at at startup
REM Suggested way to use:
REM set ORIGDIR=%CD%
REM pushd %~dp0
REM set SCRIPTDIR=%CD%
REM popd
REM
REM start "Simplify and Darken Desktop" "%SCRIPTDIR%\resources\simplify_and_darken.bat"
@echo off
echo Waiting for windows to fully boot before applying changes...
timeout /NOBREAK 10
echo Setting background to black...
reg add "HKEY_CURRENT_USER\Control Panel\Colors" /v Background /t REG_SZ /d "0 0 0" /f
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v WallPaper /t REG_SZ /d " " /f
RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters
timeout /NOBREAK 1
echo Using dark theme...
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize" /v AppsUseLightTheme /t REG_DWORD /d "0" /f
RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters
timeout /NOBREAK 1
echo Hiding search bar...
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v SearchboxTaskbarMode /t REG_DWORD /d "0" /f
RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters
timeout /NOBREAK 1
echo Hiding news...
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Feeds" /v ShellFeedsTaskbarViewMode /t REG_DWORD /d "2" /f
RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters
echo Restarting explorer in a moment...
timeout /NOBREAK 5
taskkill /f /im explorer.exe
start explorer.exe
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment