I found a way to do that, based on information form technet and was trying to do using WMIC, but i found that it´s easy using powershell
"...To confirm the exact version of Windows Server 2012 R2 that is installed on a computer, run Msinfo32.exe. If Windows Server 2012 R2 Update is installed, the value reported for Hardware Abstraction Layer will be 6.3.9600.17031...."
So i can get this info by using:
Get-ItemProperty -Path c:\windows\system32\hal.dll | fl -Property VersionInfo
VersionInfo : File: C:\windows\system32\hal.dll
InternalName: hal.dll
OriginalFilename: hal.dll
FileVersion: 6.3.9600.17031 (winblue_gdr.140221-1952)
FileDescription: Hardware Abstraction Layer DLL
Product: Microsoft® Windows® Operating System
ProductVersion: 6.3.9600.17031
How can I get ONLY the "FileVersion" and/or "ProductVersion" informations on output?