Skip to content

Optimization Details

gsjonio edited this page Jul 14, 2026 · 2 revisions

Optimization Details

The optimize group is safe by default. A -Profile controls how aggressive it gets (cumulative: safedesktopgaming). Full, per-tweak reference with keys and risks: docs/OPTIMIZE.md and docs/SERVICES.md.

sudo .\setup.ps1 -Group optimize                  # safe (default)
sudo .\setup.ps1 -Group optimize -Profile desktop # + power / 24-7
sudo .\setup.ps1 -Group optimize -Profile gaming  # + network + aggressive services

Safety — what it no longer does

An older version disabled these unconditionally and broke a real machine. They are gone:

  • VSS / System Restore — removed (issue #8). Disabling it left no rollback.
  • StorSvc — removed (issue #9). Disabling it breaks the Microsoft Store.
  • SmartScreen — removed (issue #11). Disabling it is a security regression.

If an older run applied them, see Troubleshooting or run sudo .\setup.ps1 -Group restore.

safe profile

Privacy/telemetry tweaks, visual performance, Storage Sense + SSD TRIM, and low-impact service disables (DiagTrack, dmwappushservice, OneSyncSvc, HvHost, SharedAccess, CscService, TabletInputService, TrkWks, stisvc, WMPNetworkSvc, lfsvc). VSS/System Restore is left intact.

desktop profile (adds)

High Performance power plan, Sleep/Hibernation off, USB Selective Suspend off, Fast Startup off, memory compression off (RAM ≥ 8 GB).

gaming profile (adds)

Network throttling and QoS off; aggressive service disables (SysMain, DPS, WinRM); and the non-Store install lockdown (opt-in — it blocks sideloading).

Reverting

Not everything is undone by Windows Settings. Visual and per-user tweaks are; but HKLM policy keys and disabled services are not — that is what restore is for:

.\setup.ps1 -Group restore -WhatIf   # preview
sudo .\setup.ps1 -Group restore      # apply

See Troubleshooting and docs/RESTORE.md.

Clone this wiki locally