# ledragox/win-debloat-tools architecture

> Architecture diagram of the GitHub repository ledragox/win-debloat-tools, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ledragox/win-debloat-tools
- Repository: https://github.com/ledragox/win-debloat-tools

## Overview

WinDebloatTools is a PowerShell Windows debloating and tuning tool with GUI and CLI entry points. Users run the main script and apply a set of system changes, including privacy, performance, security, services, scheduled tasks, apps, and Windows features; they can also run scripts individually. The README documents backup and restore-point creation, external adware scanning and OOShutUp10 settings, plus rollback and repair options. Relationships below follow README statements only; no implementation excerpts were provided.

Main entry points: [`WinDebloatTools.ps1`](https://github.com/ledragox/win-debloat-tools/blob/main/WinDebloatTools.ps1) (GUI / CLI entry), [`src/scripts/Backup-System.ps1`](https://github.com/ledragox/win-debloat-tools/blob/main/src/scripts/Backup-System.ps1) (System backup), [`src/scripts/Optimize-Privacy.ps1`](https://github.com/ledragox/win-debloat-tools/blob/main/src/scripts/Optimize-Privacy.ps1) (Privacy tweaks), [`src/scripts/Optimize-Performance.ps1`](https://github.com/ledragox/win-debloat-tools/blob/main/src/scripts/Optimize-Performance.ps1) (Performance tweaks)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User interface"]
  node_entry["GUI / CLI entry"]
  node_individual["Individual scripts"]
end

subgraph group_safeguards["Safeguards"]
  node_backup["System backup<br/>[Backup-System.ps1]"]
  node_restorepoint[("Restore point<br/>[Backup-System.ps1]")]
end

subgraph group_tuning["System tuning"]
  node_privacy["Privacy tweaks"]
  node_performance["Performance tweaks"]
  node_security["Security tweaks"]
  node_services["Service tuning"]
  node_tasks["Task tuning"]
  node_capabilities["Capability removal"]
  node_apps["UWP app removal"]
  node_features["Windows features"]
  node_personalization["Personalization tweaks"]
end

subgraph group_integrations["External tools"]
  node_adw["AdwCleaner"]
  node_shutup["OOShutUp10"]
  node_config["OOShutUp10 settings"]
end

subgraph group_recovery["Recovery"]
  node_undo["Undo tweaks"]
  node_repair["Windows repair"]
end

node_user(("Windows user"))
node_windows["Windows system"]

node_user -->|"runs"| node_entry
node_user -->|"runs directly"| node_individual
node_entry -->|"backs up"| node_backup
node_entry -->|"applies"| node_privacy
node_entry -->|"applies"| node_performance
node_entry -->|"applies"| node_security
node_entry -->|"applies"| node_services
node_entry -->|"applies"| node_tasks
node_entry -->|"applies"| node_capabilities
node_entry -->|"applies"| node_apps
node_entry -->|"applies"| node_features
node_entry -->|"applies"| node_personalization
node_entry -->|"downloads and runs"| node_adw
node_entry -->|"imports settings"| node_shutup
node_shutup -->|"loads"| node_config
node_entry -->|"offers rollback"| node_undo
node_entry -->|"offers repair"| node_repair
node_backup -->|"creates"| node_restorepoint
node_privacy -->|"changes settings"| node_windows
node_performance -->|"changes settings"| node_windows
node_security -->|"improves security"| node_windows
node_services -->|"tunes services"| node_windows
node_tasks -->|"tunes tasks"| node_windows
node_capabilities -->|"removes components"| node_windows
node_apps -->|"removes apps"| node_windows
node_features -->|"changes features"| node_windows
node_personalization -->|"changes settings"| node_windows
node_repair -->|"repairs"| node_windows

click node_entry "https://github.com/ledragox/win-debloat-tools/blob/main/WinDebloatTools.ps1"
click node_individual "https://github.com/ledragox/win-debloat-tools/tree/main/src/scripts"
click node_backup "https://github.com/ledragox/win-debloat-tools/blob/main/src/scripts/Backup-System.ps1"
click node_privacy "https://github.com/ledragox/win-debloat-tools/blob/main/src/scripts/Optimize-Privacy.ps1"
click node_performance "https://github.com/ledragox/win-debloat-tools/blob/main/src/scripts/Optimize-Performance.ps1"
click node_security "https://github.com/ledragox/win-debloat-tools/blob/main/src/scripts/Optimize-Security.ps1"
click node_services "https://github.com/ledragox/win-debloat-tools/blob/main/src/scripts/Optimize-ServicesRunning.ps1"
click node_tasks "https://github.com/ledragox/win-debloat-tools/blob/main/src/scripts/Optimize-TaskScheduler.ps1"
click node_capabilities "https://github.com/ledragox/win-debloat-tools/blob/main/src/scripts/Remove-CapabilitiesList.ps1"
click node_apps "https://github.com/ledragox/win-debloat-tools/blob/main/src/scripts/Remove-BloatwareAppsList.ps1"
click node_features "https://github.com/ledragox/win-debloat-tools/blob/main/src/scripts/Optimize-WindowsFeaturesList.ps1"
click node_personalization "https://github.com/ledragox/win-debloat-tools/blob/main/src/scripts/Register-PersonalTweaksList.ps1"
click node_config "https://github.com/ledragox/win-debloat-tools/tree/main/src/configs/shutup10"
click node_undo "https://github.com/ledragox/win-debloat-tools/blob/main/WinDebloatTools.ps1"
click node_repair "https://github.com/ledragox/win-debloat-tools/blob/main/src/scripts/Repair-WindowsSystem.ps1"
click node_restorepoint "https://github.com/ledragox/win-debloat-tools/blob/main/src/scripts/Backup-System.ps1"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_entry,node_individual,node_user toneBlue
class node_backup,node_restorepoint toneAmber
class node_privacy,node_performance,node_security,node_services,node_tasks,node_capabilities,node_apps,node_features,node_personalization toneMint
class node_adw,node_shutup,node_config toneRose
class node_undo,node_repair,node_windows toneIndigo
```

## Components

### User interface

- [GUI / CLI entry](https://github.com/ledragox/win-debloat-tools/blob/main/WinDebloatTools.ps1): `WinDebloatTools.ps1`
- [Individual scripts](https://github.com/ledragox/win-debloat-tools/tree/main/src/scripts): `src/scripts`

### Safeguards

- [System backup](https://github.com/ledragox/win-debloat-tools/blob/main/src/scripts/Backup-System.ps1): `src/scripts/Backup-System.ps1`
- [Restore point](https://github.com/ledragox/win-debloat-tools/blob/main/src/scripts/Backup-System.ps1): `src/scripts/Backup-System.ps1`

### System tuning

- [Privacy tweaks](https://github.com/ledragox/win-debloat-tools/blob/main/src/scripts/Optimize-Privacy.ps1): `src/scripts/Optimize-Privacy.ps1`
- [Performance tweaks](https://github.com/ledragox/win-debloat-tools/blob/main/src/scripts/Optimize-Performance.ps1): `src/scripts/Optimize-Performance.ps1`
- [Security tweaks](https://github.com/ledragox/win-debloat-tools/blob/main/src/scripts/Optimize-Security.ps1): `src/scripts/Optimize-Security.ps1`
- [Service tuning](https://github.com/ledragox/win-debloat-tools/blob/main/src/scripts/Optimize-ServicesRunning.ps1): `src/scripts/Optimize-ServicesRunning.ps1`
- [Task tuning](https://github.com/ledragox/win-debloat-tools/blob/main/src/scripts/Optimize-TaskScheduler.ps1): `src/scripts/Optimize-TaskScheduler.ps1`
- [Capability removal](https://github.com/ledragox/win-debloat-tools/blob/main/src/scripts/Remove-CapabilitiesList.ps1): `src/scripts/Remove-CapabilitiesList.ps1`
- [UWP app removal](https://github.com/ledragox/win-debloat-tools/blob/main/src/scripts/Remove-BloatwareAppsList.ps1): `src/scripts/Remove-BloatwareAppsList.ps1`
- [Windows features](https://github.com/ledragox/win-debloat-tools/blob/main/src/scripts/Optimize-WindowsFeaturesList.ps1): `src/scripts/Optimize-WindowsFeaturesList.ps1`
- [Personalization tweaks](https://github.com/ledragox/win-debloat-tools/blob/main/src/scripts/Register-PersonalTweaksList.ps1): `src/scripts/Register-PersonalTweaksList.ps1`

### External tools

- **AdwCleaner**
- **OOShutUp10**
- [OOShutUp10 settings](https://github.com/ledragox/win-debloat-tools/tree/main/src/configs/shutup10): `src/configs/shutup10`

### Recovery

- [Undo tweaks](https://github.com/ledragox/win-debloat-tools/blob/main/WinDebloatTools.ps1): `WinDebloatTools.ps1`
- [Windows repair](https://github.com/ledragox/win-debloat-tools/blob/main/src/scripts/Repair-WindowsSystem.ps1): `src/scripts/Repair-WindowsSystem.ps1`

### Other components

- **Windows user**
- **Windows system**

## Connections

- Windows user → GUI / CLI entry: runs (evidence: `README.md`)
- Windows user → Individual scripts: runs directly (evidence: `README.md`)
- GUI / CLI entry → System backup: backs up (evidence: `README.md`)
- GUI / CLI entry → Privacy tweaks: applies (evidence: `README.md`)
- GUI / CLI entry → Performance tweaks: applies (evidence: `README.md`)
- GUI / CLI entry → Security tweaks: applies (evidence: `README.md`)
- GUI / CLI entry → Service tuning: applies (evidence: `README.md`)
- GUI / CLI entry → Task tuning: applies (evidence: `README.md`)
- GUI / CLI entry → Capability removal: applies (evidence: `README.md`)
- GUI / CLI entry → UWP app removal: applies (evidence: `README.md`)
- GUI / CLI entry → Windows features: applies (evidence: `README.md`)
- GUI / CLI entry → Personalization tweaks: applies (evidence: `README.md`)
- GUI / CLI entry → AdwCleaner: downloads and runs (evidence: `README.md`)
- GUI / CLI entry → OOShutUp10: imports settings (evidence: `README.md`)
- OOShutUp10 → OOShutUp10 settings: loads (evidence: `README.md`)
- GUI / CLI entry → Undo tweaks: offers rollback (evidence: `README.md`)
- GUI / CLI entry → Windows repair: offers repair (evidence: `README.md`)
- System backup → Restore point: creates (evidence: `README.md`)
- Privacy tweaks → Windows system: changes settings (evidence: `README.md`)
- Performance tweaks → Windows system: changes settings (evidence: `README.md`)
- Security tweaks → Windows system: improves security (evidence: `README.md`)
- Service tuning → Windows system: tunes services (evidence: `README.md`)
- Task tuning → Windows system: tunes tasks (evidence: `README.md`)
- Capability removal → Windows system: removes components (evidence: `README.md`)
- UWP app removal → Windows system: removes apps (evidence: `README.md`)
- Windows features → Windows system: changes features (evidence: `README.md`)
- Personalization tweaks → Windows system: changes settings (evidence: `README.md`)
- Windows repair → Windows system: repairs (evidence: `README.md`)
