Getting Windows version including full build number

Romit Poladiya 6 Reputation points
2022-02-23T12:36:47.693+00:00

Hi,

  1. My knowledge in powersheell and WMI is very limited
  2. We use SCCM

Now, our organization may have laptops and desktops outdated / users have not updated. We have sent out instructions to update via Settings > Update & Security > Check Online for updates. We can trust if user has already updated.

I need to gather all the deivces' windows version. with full build number including the last bit after 10.0.19041.1415

I know it may have been anserwed somewhere but I am finding hard to get.
The list can be

HOSTNAME (COMPUTERNAME | WINDOWS VERSION (two columns in CSV export)

I can export the list of all the hostnames and also SCCM gives the version number but not the last bit, the build number

Any help is very much appreciated.

Thank you

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Castorix31 90,686 Reputation points
    2022-02-23T12:44:55.973+00:00

    The last number can be read from registry, like :

    (Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name UBR).UBR
    
    2 people found this answer helpful.

  2. Romit Poladiya 6 Reputation points
    2022-02-24T10:54:10.7+00:00
    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.