Skip to content

PhillyUrbs/SystemRebuild

Repository files navigation

Rebuild Script

The rebuild.ps1 script automates reinstalling standard applications and applying system tweaks after a fresh Windows install.

Usage

  1. Clone or download this repository.

  2. Open PowerShell (the script self-elevates if not already admin) and run:

    .\rebuild.ps1

A timestamped transcript (rebuild-YYYYMMDD-HHMMSS.log) is written next to the script.

Customization

App selection lives in applications.json. Each entry has:

  • Id — winget package ID (or Microsoft Store product ID)
  • Name — display name used in log output
  • ExcludeOn — array of any of Desktop, Laptop, ARM64, x64 to skip the app on those targets

Add, remove, or re-tag apps there; no script edits required.

What the script does

  • Self-elevates to Administrator
  • Detects architecture (x64 / ARM64) and form factor (Desktop / Laptop)
  • Sets the power plan: Ultimate Performance on desktops (auto-imported via powercfg -duplicatescheme), Balanced on laptops
  • Installs every app from applications.json not excluded for the current target, skipping anything already installed
  • Sets UserDuckingPreference to "do nothing" for communication audio
  • Force-installs the BypassPaywall extension in Edge via policy
  • Sets the Windows App (Windows 365) environment to SelfHost
  • Sets High Performance GPU preference for plex.exe (only if found)
  • Disables system-wide CPU power throttling
  • Invokes credentialfix.ps1 if present, which installs a scheduled task that resets CredentialUIBroker.exe every 6 hours (WebAuthn/FIDO2 workaround)

Notes

  • Requires winget (ships with modern Windows 11).
  • A reboot is recommended after the run.
  • Failed installs are reported with the winget exit code; the script continues.

Contributions welcome.

About

Reinstall standard applications after a fresh Windows install

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors