I am trying to get how many days ago Store-bought HP or Dell Windows 10 PC was first used, using c#/windows forms. What I mean by this is the date the computer went through the intial setup, such as creating a Username and password, etc.
Getting the install date from HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\InstallDate will not work, as features updates change that date.
My hope is that there is a folder or file that is created when the PC is first setup/used, and is not changed even with feature updates like the Creator's Update, anniversary update, etc.
Does any know of such a folder or file, or another way to get some info like this through C#?
Edit: These suggested folders/files creations dates are lost with creators update on the Virtual machine I am using or are older then install. C:\Windows\system.ini C:\Windows\win.ini C:\Users\User C:\bootmgr C:\bootnxt C:\$Recycle.Bin
Edit:This is not a duplicate of the suggested duplicate, as I need to know original install date even if a feature update like the Creator's update has happened. There was a similar post, however none of the answers worked for me.