-
Notifications
You must be signed in to change notification settings - Fork 0
Troubleshooting
Most groups need admin (services, registry, fonts, power plan). Use sudo on
Windows 11, or the fallback launcher:
powershell -NoProfile -ExecutionPolicy Bypass -File ".\setup.ps1"To enable native sudo on Windows 11: Settings → System → For developers →
Enable sudo. See
docs/ADMIN-PRIVILEGES.md.
Execution policy is blocking the script. Run it with a bypass for the single session (does not change system settings):
powershell -NoProfile -ExecutionPolicy Bypass -File ".\setup.ps1"Install App Installer from the Microsoft Store (Windows 10), or update it on Windows 11. winforge falls back to Chocolatey and then a custom URL if winget is unavailable, but winget is the primary path.
Re-run just that group and read the log lines:
sudo .\setup.ps1 -Group <group>Then confirm detection with the validator (installs nothing):
.\tools\validate.ps1 -Group <group> -ShowDetailsIf winget reports success but the app is missing, try Chocolatey manually
(choco install <id>) or the vendor installer.
An old optimize run likely disabled StorSvc (the Store and app licensing
depend on it). Current winforge never disables it. Fix:
Set-Service -Name StorSvc -StartupType Manual
Start-Service -Name StorSvcOr run sudo .\setup.ps1 -Group restore.
Caused by the policy AllowGameDVR=0. winforge does not set it, but restore
clears it defensively:
Remove-ItemProperty "HKLM:\SOFTWARE\Policies\Microsoft\Windows\GameDVR" -Name AllowGameDVR -ErrorAction SilentlyContinueCheck the factory defaults in docs/SERVICES.md, then set it back:
Set-Service -Name SysMain -StartupType Automatic
Start-Service -Name SysMainOr run restore, which fixes them all at once.
Detection is idempotent — installed programs are skipped and configuration
blocks re-apply cleanly, so you can run setup.ps1 as many times as needed.
Not everything is reversible via Windows Settings — HKLM policy keys and disabled services are not. Use the restore path:
.\setup.ps1 -Group restore -WhatIf # preview
sudo .\setup.ps1 -Group restore # applySee Optimization Details and docs/RESTORE.md.