Adopting an existing Windows installation
You do not need to reinstall Windows or let Winenv reinstall the software already on the machine.
Start with a read-only scan
Section titled “Start with a read-only scan”win scanwin scan powertoys # filter by keywordwin scan -From winget # filter by managerScanning does not install, update, remove, or write to a profile. Results use three states:
| State | Meaning |
|---|---|
managed |
Claimed by an active Winenv profile |
adoptable |
The installation maps to a current WinGet source, Scoop bucket, or mise tool and can be reproduced elsewhere |
local |
Windows knows it is installed, but no configured catalog can map it reliably—for example, some OEM tools and manually installed applications |
winget list can report applications installed both by WinGet and by other methods. A winget source in the scan means the current catalog can reproduce the app; it does not claim WinGet originally installed it.
Adopt selected software
Section titled “Adopt selected software”win adoptwin adopt powertoyswin adopt -From scoopwin adopt -n # select and preview without writingadopt accepts only adoptable entries and merges the selection into:
%LOCALAPPDATA%\Winenv\profiles\adopted.jsonNothing is reinstalled, updated, or removed. Repeating the command merges new selections. mise keeps the currently declared version, and Scoop records the HTTPS origin of a custom bucket when it can resolve one.
Winenv cannot reliably infer every command exposed by an installed package, so generated entries leave commands empty. Before sharing a durable profile, copy the JSON, improve its name, groups, and command declarations, then import it with win use <file>.
Check the declared baseline later
Section titled “Check the declared baseline later”win diffwin diff powertoyswin diff compares the effective profile with the current installed state and changes nothing. It reports missing packages, incompatible versions, different sources, unavailable managers, and declarations that need manual inspection. Software outside the profile is not considered drift; keep using win scan for the complete machine inventory. See Composing profiles for the full status reference.
Software that cannot be mapped
Section titled “Software that cannot be mapped”local entries are not forced into a supposedly reproducible manifest:
- if Windows records the application under Installed apps,
win rmcan usually find and remove it; - if a future WinGet catalog entry matches, WinGet can then take responsibility for updates;
- otherwise, continue using the vendor updater or a newer installer.
This lets Winenv control what it can describe faithfully without inventing update and uninstall rules for unknown software.
Disable the generated profile
Section titled “Disable the generated profile”win off adoptedThe software and snapshot remain. Only this layer’s claims are disabled. A later win adopt warns before re-enabling the complete retained snapshot.
