Skip to content

Commit 83b8119

Browse files
Changed secondary version retrieval method
1 parent b2cd1c9 commit 83b8119

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Agent/Lib/InstallAgent-Core.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ function GetDeviceInfo {
415415
[String] $Device.OSName = ($WMIos.Caption).Trim().Replace("Microsoftr", "Microsoft").Replace("Serverr", "Server").Replace("Windowsr", "Windows")
416416
[Version] $Device.OSBuild =
417417
if ($null -eq $WMIos.Version)
418-
{ (Get-CimInstance Win32_OperatingSystem).Version }
418+
{ ($PSVersionTable.BuildVersion.ToString() }
419419
else
420420
{ $WMIos.Version }
421421
# Operating System Architecture

0 commit comments

Comments
 (0)