You can check version information for a
Dynamic-link
Library (DLL) file, i.e., a file with a .dll
filename extension, or a
executable file, i.e., a .exe file, from a command-line interface (CLI)
on a Microsoft Windows system by using the Get-Item
cmdlet. E.g.:
PS C:\> (Get-Item C:\Windows\explorer.exe).VersionInfo
ProductVersion FileVersion FileName
-------------- ----------- --------
10.0.15063.0 10.0.15063.0 ... C:\Windows\explorer.exe
PS C:\>
If you can't see all of the information, i.e., if you see three
dots indicating that not all of the information is displayed, you can
append | format-list
to the command to have the output displayed
in list format.
PS C:\> (Get-Item C:\Windows\explorer.exe).VersionInfo | format-list OriginalFilename : EXPLORER.EXE.MUI FileDescription : Windows Explorer ProductName : Microsoft® Windows® Operating System Comments : CompanyName : Microsoft Corporation FileName : C:\Windows\explorer.exe FileVersion : 10.0.15063.0 (WinBuild.160101.0800) ProductVersion : 10.0.15063.0 IsDebug : False IsPatched : False IsPreRelease : False IsPrivateBuild : False IsSpecialBuild : False Language : English (United States) LegalCopyright : © Microsoft Corporation. All rights reserved. LegalTrademarks : PrivateBuild : SpecialBuild : FileVersionRaw : 10.0.15063.608 ProductVersionRaw : 10.0.15063.608 PS C:\>
[ More Info ]