9/19/2023 0 Comments Get windows version powershell![]() The following PowerShell command will get it: (Get-Item 'HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion').GetValue ('DisplayVersion') Share. Use the Get-WmiObject cmdlet and query the Win32OperatingSystem WMI class: (Get-WmiObject win32operatingsystem). The value can be found under registry key Computer\HKEYLOCALMACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion inside the value named DisplayVersion. outerHTML.Split( '> ').Replace( ' ').Replace( ' ').Replace( ' (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' -Name ReleaseID). $CurrentBuild = ( Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion ' –Name CurrentBuild).CurrentBuild $Version = ( Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion ' –Name ReleaseID –ErrorAction Stop).ReleaseID $ProductName = ( Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion ' –Name ProductName).ProductName ![]() The latest available update for the OS version.The installed update that corresponds to that build number, as well as the KB number and a link to the info page.It can also report on all Windows updates published for the version of Windows 10 a workstation is currently on. The script below can be used to report which OS build a Windows 10 workstation is currently on as well as which update is the latest update available to the device. The only reliable and useable static list I could find for Windows 10 build numbers is Microsoft’s Windows 10 Update History web page, so I decided to build a PowerShell script that parses the page to get current patch info. I was working on some updates to our unified reporting solution for Windows Updates (ie WUfB + MEMCM) and I wanted to figure out simply from the OS build number whether a Windows 10 workstation has the latest cumulative update installed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |