This question already has an answer here:
Is it possible to determine which, if any, Windows versions were previously installed on a machine?
Use case example: I'd like to find out if Windows 2012/2016 images we use were in-place upgrades or to be able to show that a machine has not been a fresh install since whatever version.
I've done some poking around within the registry, wmic, etc. but can't find any remnants that point to previously installed Windows versions.