New
#11
Get-WmiObject works (it always returns "XP" or "7" or "8" or "10")
Looking at that specific reg key obviously gives the wrong answer ("6.3" for a clean install of 10 pro).
I think I'd go for something that gave the correct rather than the wrong answer (unless there is some special programmer logic going on here that I don't understand).
edit, I am a programmer - just not a very good one.