-
Notifications
You must be signed in to change notification settings - Fork 13
Get‑FileVersion
dscbot edited this page Dec 19, 2025
·
1 revision
Returns the version information for a file.
Get-FileVersion [-Path] <FileInfo> [<CommonParameters>]
Returns the version information for a file including the product version, file version, and other version-related metadata.
Get-FileVersion -Path 'E:\setup.exe'
Returns the version information for the file setup.exe.
Get-Item -Path 'E:\setup.exe' | Get-FileVersion
Returns the version information for the file setup.exe using pipeline input.
'E:\setup.exe' | Get-FileVersion
Returns the version information for the file setup.exe using pipeline input.
Specifies the file for which to return the version information.
Type: FileInfo
Parameter Sets: (All)
Aliases: FullName
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
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