Unable to determine Win 10 windowsversion on remote PCs

I am trying to get the windowsversion on remote Win 10 PC’s. However, it returns an empty response. Looking to determine which PCs are not at v1809.

Any idea why?

Here is my code:

Get-WmiObject -class win32_operatingsystem -ComputerName PC1 | Select-Object windowsversion

I looked at that on my system and I don’t have a ‘windowsversion’ property on the returned object. I think you want to look at ‘buildnumber’ or ‘version’.

Get-WmiObject -class win32_operatingsystem -ComputerName PC1 | Select-Object version


This did it for me

Get-Ciminstance -ClassName win32_operatingsystem -ComputerName localhost | select @{name = "OS"; expression= {$_.caption}}, @{name = "version"; expression={$_.version}}

replace localhost by the remote computer or a variable in a loop

You can get this from the registry.

PS> Get-ItemProperty -path ‘HKLM:\Software\Microsoft\Windows NT\CurrentVersion’ | Select-Object -ExpandProperty ReleaseId



Hey Bret,

I’ve actually created function a while back to get this information using the registry (as @ArtisanByteCrafter suggested) from multiple remote servers.