Hi,
I found this useful info on this link https://superuser.com/questions/963910/how-to-find-the-build-version-of-windows-10 where if I run the PowerShell script I receive the correct number build like from command winver in my case Version 14393.969.
The command is:
function Get-RegistryValue($key, $value) {
(Get-ItemProperty $key $value).$value
}
$a1 = Get-RegistryValue "HKLM:\software\microsoft\windows nt\currentversion" CurrentBuild
$a2 = Get-RegistryValue "HKLM:\software\microsoft\windows nt\currentversion" UBR
Write-Host Version $a1'.'$a2
How can I get this result in a report from LanSweeper what is best way to use?
Thanks
Marius