Skip to content

Instantly share code, notes, and snippets.

@joelbarrette
Last active October 10, 2020 01:00
Show Gist options
  • Save joelbarrette/519cc948d4356011d77af1d76a60bdd7 to your computer and use it in GitHub Desktop.
Save joelbarrette/519cc948d4356011d77af1d76a60bdd7 to your computer and use it in GitHub Desktop.
Reg Query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v ReleaseId | select-string "ReleaseID" | %{$_ -replace('\D+(\d+)','$1')}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment