Skip to content

Instantly share code, notes, and snippets.

@NeoNeqs
Last active April 17, 2023 03:40
Show Gist options
  • Save NeoNeqs/8a0566b96c03e97051607ca81ca02c6d to your computer and use it in GitHub Desktop.
Save NeoNeqs/8a0566b96c03e97051607ca81ca02c6d to your computer and use it in GitHub Desktop.
Windows Debloater

Windows FDE

A list of tasks, scripts and settings to debloat a Windows machine. Some parts of this gist are tailored specifaclly for my needs so you might wanna adjust them for yourself.

Starting from Windows 10 instalation:

  1. Backup all data
  2. Clean reset the PC
  3. Install lastest updates
  4. Download Windows 11 Installation Assistant: https://www.microsoft.com/en-us/software-download/windows11
  5. Install Windows 11

In Windows 11:

  1. Install lastest updates
  2. From elevated Powershell terminal:
    • Run:
       Set-ExecutionPolicy Unrestricted
       iex ((New-Object System.Net.WebClient).DownloadString('https://git.io/JJ8R4'))
    • Then:
      • Click Essential Tweaks and Disable delete OneDrive
    • Finally:
       iex ((New-Object System.Net.WebClient).DownloadString("https://git.io/JStij"))
       Set-ExecutionPolicy Default
  3. Disable automatic updates in Microsoft Store
  4. Uninstall all pre-installed bloatware
  5. Install Firefox:
    • Import backed up profile or create new in about:profiles
    • Put all files from https://github.com/NeqsTech/user.js into the profile folder
    • Install Dark Reader: https://addons.mozilla.org/en-US/firefox/addon/darkreader/
    • Install Decentraleyes: https://addons.mozilla.org/en-US/firefox/addon/decentraleyes/
    • Install uBlock Origin: https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/
    • Install Return Youtube Dislike: https://addons.mozilla.org/en-US/firefox/addon/return-youtube-dislikes/
  6. Drivers:
  7. Firmware:
    • Check if BIOS is up to date
    • CPU chipset drivers
  8. Personalization:
    • Background picture: desktop_wallpaper.jpg
    • Colors:
      • Mode: dark
      • Accent color: #13cac9
      • Show accent color on title bars and windows borders: ON
    • Lock screen picture: lock_screen_wallpaper.jpg
    • Taskbar > Taskbar items: all OFF
  9. Control panel:
    • Sound settings
    • Mouse:
      • Enchance pointer precision: OFF
      • Hide pointer when typing: OFF
    • Power Options > Set to Balanced
    • System > Rename this PC
  10. Utilities:
  11. Configure Windows Terminal:
  12. WSL Setup:
    • Installation:
      • In Powershell:
         wsl --install
         setx.exe WSLENV "USERPROFILE/p"
      • From Microsoft Store install Ubuntu
    • Configuration:
      • Update the system:
         sudo apt update && sudo apt upgrade && sudo apt autoremove
    • Zsh Configuration:
      • Run the script:
         wget https://git.io/JSiCz -O - | bash
      • Chnage default shell to zsh:
         chsh $USER
         #and type /bin/zsh
    • List Dir replacement:
      • Download exa: https://github.com/ogham/exa/releases/
      • Extract the files.
      • Copy bin/exa to /usr/local/bin/: sudo cp bin/exa /usr/local/bin
      • Copy completions/exa.zsh to /usr/local/share/zsh/site-functions/_exa: sudo cp completions/exa.zsh /usr/local/share/zsh/site-functions/_exa
  13. Install PowerShell 7:
  14. Install Oh-My-Posh:
    • From powershell run:
       winget install JanDeDobbeleer.OhMyPosh
    • Install powershell profile:
       ((New-Object System.Net.WebClient).DownloadString('https://git.io/JSVR7')) | Out-File -FilePath "$Home\My Documents\PowerShell\Microsoft.PowerShell_profile.ps1"
    • Install Oh-My-Posh theme:
       Remove-Item "$env:LocalAppData\Programs\oh-my-posh\themes\*.*"
       ((New-Object System.Net.WebClient).DownloadString('https://git.io/JSVgi')) | Out-File -FilePath "$env:LocalAppData\Programs\oh-my-posh\themes\powerlevel10k_rainbow2.omp.json "
    • Install Terminal Icons:
       Install-Module -Name Terminal-Icons -Repository PSGallery
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment