Skip to content

Instantly share code, notes, and snippets.

@kaic
Last active December 13, 2025 03:13
Show Gist options
  • Select an option

  • Save kaic/88bba15beaa0427983e14f4b7db4444c to your computer and use it in GitHub Desktop.

Select an option

Save kaic/88bba15beaa0427983e14f4b7db4444c to your computer and use it in GitHub Desktop.
A Windows batch script to automate post-format setup. Installs essential apps via Winget, applies useful system tweaks (e.g., Explorer settings, disabling Windows Update), and runs a custom PowerShell script to configure WSL with Ubuntu 20.04. Ideal for developers or power users restoring their environment after a clean install.

🧰 Windows Post-Format Installer

This is a personal automation script I use after formatting my Windows machine.

It installs most of the desktop apps I use via winget, sets up my Rainmeter skin (halflife-monitoring) and applies some system tweaks focused on usability and performance.

Feel free to use it as a reference and customize it to fit your own setup.

⚠️ Note
This version is no longer a development environment: it does not install WSL, Docker, code editors or language runtimes beyond what’s needed for games/apps.


✅ What it installs (via winget)

Browsers & PDF

  • Google Chrome
  • Adobe Acrobat Reader (64-bit)
  • Google Drive for desktop

Security & Privacy

  • Bitwarden
  • ClamWin Antivirus
  • Proton VPN
  • Proton Mail Bridge
  • Proton Drive

Productivity & Notes

  • Notion
  • Notion Calendar
  • Obsidian

Communication & Media

  • Discord
  • Spotify
  • Signal
  • Thunderbird (e-mail client)
  • VLC media player

Games & Related

  • Steam
  • Blitz (League of Legends helper)
  • VirtualDJ

Utilities & System

  • CPU-Z
  • BleachBit
  • qBittorrent (replaces Transmission)
  • 7-Zip (optional, if you add it)
  • Rainmeter
  • Git (used to clone the halflife-monitoring skin)

After installing Rainmeter, the script:

  • Detects the Rainmeter skins folder, and
  • Clones https://github.com/kaic/halflife-monitoring into it (if it doesn’t exist yet).

🛠 System tweaks applied

  • Show file extensions for known file types
  • Show hidden files and drives with no media
  • Remove the “3D Objects” folder from File Explorer
  • Disable Game Bar / Game DVR recording in the background
  • Disable hibernation (frees disk space and simplifies boot)
  • Switch power plan to High Performance
  • Optionally disable the Windows Update service (can be re-enabled later)

These tweaks are focused on keeping the system a bit leaner and more responsive, especially for gaming and general desktop use.


📌 Manual installations

These apps are not installed automatically and must be downloaded manually:

  • JBL Quantum Engine (headset software)
  • Logi Options+ (Logitech mouse/keyboard)
  • NVIDIA App / GeForce Experience
  • Riot Client / League of Legends
  • Itaú Desktop App
  • Wallpaper Engine (via Steam)
  • Any other niche tools/games you use (Hydra, Antigravity, etc.)

💡 How to use

  1. Fresh-install Windows on your NVMe drive.
  2. Make sure winget is working and updated.
  3. Download this repo and run the .bat file as Administrator.
  4. Let it finish installing apps and applying tweaks.
  5. Reboot, log into your accounts (Proton, Steam, Discord, etc.) and configure:
    • Wallpaper Engine
    • Rainmeter + halflife-monitoring
    • Monitor refresh rate (set the LG to 144 Hz in Windows display settings)

From there, it’s just logging into your services and jogar/usar o PC feliz. 😄

@echo off
chcp 65001 >nul
echo ========================================
echo Automatic Installer - Post-Format (Kaic)
echo ========================================
echo.
::------------------------------
:: Programas principais
::------------------------------
echo Instalando navegadores e produtividade...
:: Google Chrome
winget install --id=Google.Chrome -e --silent
:: Google Drive Desktop
winget install --id=Google.GoogleDrive -e --silent
:: Adobe Acrobat Reader
winget install --id=Adobe.Acrobat.Reader.64-bit -e --silent
:: Bitwarden
winget install --id=Bitwarden.Bitwarden -e --silent
:: Notion
winget install --id=Notion.Notion -e --silent
:: Notion Calendar
winget install --id=Notion.NotionCalendar -e --silent
:: Obsidian
winget install --id=Obsidian.Obsidian -e --silent
:: Thunderbird
winget install --id=Mozilla.Thunderbird -e --silent
:: Spotify
winget install --id=Spotify.Spotify -e --silent
:: Discord
winget install --id=Discord.Discord -e --silent
:: Signal
winget install --id=OpenWhisperSystems.Signal -e --silent
echo.
echo Instalando jogos e ferramentas relacionadas...
:: Steam
winget install --id=Valve.Steam -e --silent
:: Blitz (LoL)
winget install --id=Blitz.Blitz -e --silent
:: qBittorrent (substitui Transmission)
winget install --id=qBittorrent.qBittorrent -e --silent
:: VirtualDJ
winget install --id=AtomixProductions.VirtualDJ -e --silent
echo.
echo Instalando ferramentas de sistema...
:: CPU-Z
winget install --id=CPUID.CPU-Z -e --silent
:: BleachBit
winget install --id=BleachBit.BleachBit -e --silent
:: VLC
winget install --id=VideoLAN.VLC -e --silent
:: ClamWin Antivirus
winget install --id=ClamWin.ClamWin -e --silent
:: Rainmeter
winget install --id=rainmeter.rainmeter -e --silent
:: Git (para clonar halflife-monitoring)
winget install --id=Git.Git -e --silent
echo.
echo Instalando stack Proton...
:: Proton VPN
winget install --id=Proton.ProtonVPN -e --silent
:: Proton Mail Bridge
winget install --id=Proton.ProtonMailBridge -e --silent
:: Proton Drive
winget install --id=Proton.ProtonDrive -e --silent
echo.
echo Instalando runtimes pra jogos e apps...
:: Visual C++ 2015-2022 Redistributable (x64)
winget install --id=Microsoft.VCRedist.2015+.x64 -e --silent
:: .NET Desktop Runtime 8
winget install --id=Microsoft.DotNet.DesktopRuntime.8 -e --silent
echo.
echo ========================================
echo Programas que devem ser instalados manualmente:
echo ========================================
echo RGB Fusion (Gigabyte RGB): utilitario de RGB da placa-mae/placa de video
echo JBL Quantum Engine: software do fone JBL Quantum
echo NVIDIA App / GeForce Experience
echo Riot Client / League of Legends
echo Aplicativo Itaú Desktop
echo Wallpaper Engine (via Steam)
echo Hydra, Antigravity e demais jogos/programas especificos
echo.
echo ========================================
echo Clonando halflife-monitoring (Rainmeter)
echo ========================================
set "RM_SKINS=%USERPROFILE%\Documents\Rainmeter\Skins"
if exist "%RM_SKINS%" (
echo Pasta de skins do Rainmeter encontrada em:
echo %RM_SKINS%
pushd "%RM_SKINS%"
if not exist "halflife-monitoring" (
echo Clonando repositorio halflife-monitoring...
git clone https://github.com/kaic/halflife-monitoring.git
) else (
echo A pasta "halflife-monitoring" ja existe. Pulando clone.
)
popd
) else (
echo Nao encontrei a pasta de skins do Rainmeter.
echo Depois de abrir o Rainmeter pela primeira vez, crie a pasta e clone:
echo git clone https://github.com/kaic/halflife-monitoring.git "%RM_SKINS%\halflife-monitoring"
)
echo.
echo ========================================
echo Aplicando configuracoes de Windows
echo ========================================
:: Mostrar extensões de arquivo conhecidas
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" ^
/v HideFileExt /t REG_DWORD /d 0 /f
:: Mostrar arquivos ocultos
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" ^
/v Hidden /t REG_DWORD /d 1 /f
:: Mostrar unidades vazias
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" ^
/v HideDrivesWithNoMedia /t REG_DWORD /d 0 /f
:: Remover "Objetos 3D" do Explorer
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" /f 2>nul
:: Desativar Game Bar / gravação em segundo plano
reg add "HKCU\System\GameConfigStore" /v GameDVR_Enabled /t REG_DWORD /d 0 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\GameDVR" /v AppCaptureEnabled /t REG_DWORD /d 0 /f
:: Desativar hibernação (libera espaço e agiliza reboot)
powercfg -h off
:: Ativar plano de energia de Alto Desempenho
powercfg /S SCHEME_MIN
:: Tentar habilitar Ultimate Performance (se existir)
powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61 >nul 2>&1
echo.
echo ========================================
echo Opcional: desativar Windows Update (SERVICO)
echo ========================================
echo Isso pode melhorar estabilidade de performance, mas voce deixa de receber
echo updates automaticamente. Ajuste depois se quiser.
:: Desativar Windows Update
sc stop wuauserv >nul 2>&1
sc config wuauserv start= disabled >nul 2>&1
echo.
echo ========================================
echo Fim do script
echo ========================================
echo Reinicie o PC depois que tudo terminar para garantir que:
echo - PATH do Git e outros programas estejam OK
echo - Planos de energia estejam ativos
echo.
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment