-
Notifications
You must be signed in to change notification settings - Fork 13
Get‑FileProductVersion
dscbot edited this page Dec 19, 2025
·
2 revisions
Gets the product version of a file.
Get-FileProductVersion [-Path] <String> [<CommonParameters>]
Gets the product version of a file and returns it as a System.Version object. This can be useful for checking the version of installed components or binaries.
Get-FileProductVersion -Path 'C:\Temp\setup.exe'
Returns the product version of the file setup.exe as a System.Version object.
The path to the file to get the product version from.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
- Assert-BoundParameter
- Assert-ElevatedUser
- Assert-IPAddress
- Assert-Module
- Compare-DscParameterState
- Compare-ResourcePropertyState
- ConvertFrom-DscResourceInstance
- ConvertTo-CimInstance
- ConvertTo-HashTable
- Find-Certificate
- Format-Path
- Get-ComputerName
- Get-DscProperty
- Get-EnvironmentVariable
- Get-FileProductVersion
- Get-FileVersion
- Get-LocalizedData
- Get-LocalizedDataForInvariantCulture
- Get-PSModulePath
- Get-RegistryPropertyValue
- Get-TemporaryFolder
- Get-UserName
- New-ArgumentException
- New-ErrorRecord
- New-Exception
- New-InvalidDataException
- New-InvalidOperationException
- New-InvalidResultException
- New-NotImplementedException
- New-ObjectNotFoundException
- Remove-CommonParameter
- Set-DscMachineRebootRequired
- Set-PSModulePath
- Test-AccountRequirePassword
- Test-DscParameterState
- Test-DscProperty
- Test-IsNanoServer
- Test-IsNumericType
- Test-ModuleExist
- Test-PendingRestart