Determine version of Exe or Dll

Supply the path of Exe or Dll to determine its version number.

Script

<#
.SYNOPSIS
This script can be used to find the version of exe or dll.
.DESCRIPTION
This script can be used to find the version of exe or dll.
.EXAMPLE
C:\PS> C:\Script\Version.ps1 C:\Program Files (x86)\Mozilla Firefox\firefox.exe
Displays the current version of firefox available in the system.
#>
#Obtain the VersionInfo value to get the version of dll or exe.

param([String] $path)
Get-ChildItem $path | Select -Expand VersionInfo -ErrorAction SilentlyContinue

 

Output
Version

Leave a Reply