Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User-Agent: Get Windows build number from registry #185

Closed
arthuraraujo-msft opened this issue Mar 26, 2024 · 2 comments
Closed

User-Agent: Get Windows build number from registry #185

arthuraraujo-msft opened this issue Mar 26, 2024 · 2 comments

Comments

@arthuraraujo-msft
Copy link
Contributor

          as i mention in another comment, while it's undocumented, it's been there as long as I've been at Windows which is a LONG time....for build info it's probably fine for us to use some variant of:
$cv = Get-ItemProperty 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion'
'Version {0} (OS Build {1}.{2})' -f $cv.DisplayVersion, $cv.CurrentBuildNumber,$cv.UBR

which gives the same value as winver.exe, "Version 23H2 (OS Build 22631.3296)" on my dev box.

likely service team just needs a BuildNumber as that's unique across all windows builds ever, e.g.

  • The first Windows 10 build number is 10240
  • The last Windows 8.1 build number is 9600
  • The last Windows XP build number is 3790

so maybe just send up BuildNumber and architecture ID ?

Originally posted by @JeffMill in #182 (comment)

@JeffMill
Copy link

Check with service / telemetry (the latter is now part of Jerry's team) to see if sending up e.g. "Microsoft-SFSClient/1.0 (Windows 22631; amd64)" as an agent string is sufficient for their needs.

@arthuraraujo-msft
Copy link
Contributor Author

Dropping since there is no need for this at the moment. Offline discussion happened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants