sebhildebrandt / systeminformation

System Information Library for Node.JS
MIT License
2.65k stars 300 forks source link

Cannot Retrieve OsDisplayVersion on Windows #891

Open DavidDudson opened 4 months ago

DavidDudson commented 4 months ago

Is your feature request related to a problem? Please describe.

OsDisplayVersion is a field on windows which can be accessed via Get-ComputerInfo in powershell

This is the "22H2" part of the Os version, I would have assumed this was the service pack field of the operating system info, but i obviously was mistaken, as the service pack shows as 0.0

This is traditionally used to reference windows versions. Eg. Windows 11 22H2, rather than the actual version number (10.0.22)

As you can see on the windows lifecycle website. https://learn.microsoft.com/en-us/windows/release-health/windows11-release-information

Describe the solution you'd like

Some way to retrieve the OsDisplayName (eg. 22H2) of a windows machine. perhaps even listing it as the service pack.

Describe alternatives you've considered

Potentially a new field? or an extension to an existing one?

Additional context Note: This may already exist, and I could be blind, happy to be shown where it is!

sebhildebrandt commented 3 months ago

@DavidDudson ... ok I will see if I can add this. I guess there is anyway an empty attribute codename where I could add this. What do you think?

DavidDudson commented 2 months ago

That would be perfect I reckon