Skip to content

Get-PEHeader

SYNOPSIS

PSCX Cmdlet: Gets the Portable Header information from an executable file.

SYNTAX

Path (Default)

Get-PEHeader [-Path] <PscxPathInfo[]> [<CommonParameters>]

LiteralPath

Get-PEHeader [-LiteralPath] <PscxPathInfo[]> [<CommonParameters>]

DESCRIPTION

The PE header for Windows executables includes various useful bits of information including the image base address, subsystem, linker version, etc.

EXAMPLES

EXAMPLE 1

PS C:\>

Get-PEHeader $PSHome\PowerShell.exe

PARAMETERS

-LiteralPath

Specifies a path to the item. The value of -LiteralPath is used exactly as it is typed. No characters are interpreted as wildcards. If the path includes escape characters, enclose it in single quotation marks. Single quotation marks tell Windows PowerShell not to interpret any characters as escape sequences.

Type: Pscx.IO.PscxPathInfo[]
Parameter Sets: LiteralPath
Aliases: PSPath

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Path

Specifies the path to the file to process. Wildcard syntax is allowed.

Type: Pscx.IO.PscxPathInfo[]
Parameter Sets: Path
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

Back to top