Read an EXE/DLL's Version Info from PowerShell

Find out exactly which build of a program or driver file you have — faster than right-click Properties.

WindowsFilespowershellDiagnosticsLow risk
Run `(Get-Item "C:\Path\app.exe").VersionInfo | Format-List` to see FileVersion, ProductVersion, and CompanyName.

01Command

Command
$ (Get-Item "C:\Program Files\App\app.exe").VersionInfo | Format-List FileVersion, ProductVersion, CompanyName, ProductName

02What it does

The same data shown on the file's Details tab is available as the VersionInfo property of the file object. This matters when reporting bugs ("which exact build?"), checking whether a DLL was actually updated, or comparing versions across machines. The .NET equivalent is FileVersionInfo::GetVersionInfo(path) if you need it inside scripts.

03Risk

RiskLow risk
RequirementsWindows PowerShell; works on exe, dll, and sys files that carry version resources.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

  • Get-Item — Retrieve an object
    SS64 · technical · 2026-09-17
    Evidence: Shows accessing an item's VersionInfo property through Get-Item to read executable file metadata.
  • FileVersionInfo.GetVersionInfo
    Microsoft Learn (.NET) · vendor-doc · 2026-09-17
    Evidence: Documents the FileVersionInfo API underlying the VersionInfo property, with FileVersion and ProductVersion fields.

Last verified: 2026-09-19 · Category: Files & Folders

06Related solutions