@ljepson
I use Script modules with the following Powershell commands, and record it using Add to Inventory Collection:
systeminfo /fo csv | ConvertFrom-Csv | select "OS Name" -ExpandProperty "OS Name"
systeminfo /fo csv | ConvertFrom-Csv | select "OS Version" -ExpandProperty "OS Version"