This script will tattoo the registry during OS deployment in Configuration Manager with information like how it was launched, os deployment duration, osd start and stor time, task sequence name used and so on. I use the variable for OSD StartTime that we set in OSDBackground which I have blogged about here before: http://ccmexec.com/2016/10/configuration-manager-osdbackground/  and it can be downloaded from Technet Gallery https://gallery.technet.microsoft.com/Replacement-for-BGInfo-0095cff3

 

We can then inventory that information using Configuration Manager and create collections and create reports based on Task Sequence used, media type and originally installed Windows 10 build which can be useful in the future. I have added in this example OSD Duration so we really easy can see how long time the OS deployment took. 

More information can be found here: http://ccmexec.com/2018/03/script-to-tattoo-the-client-registry-during-osd-ps-version/