Get-PEFileArchitecture
SYNOPSISโ
Determine if a PE file is a 32-bit or a 64-bit file.
SYNTAXโ
Get-PEFileArchitecture [-FilePath] <FileInfo[]> [[-ContinueOnError] <Boolean>] [-PassThru] [<CommonParameters>]
DESCRIPTIONโ
Determine if a PE file is a 32-bit or a 64-bit file by examining the file's image file header.
PE file extensions: .exe, .dll, .ocx, .drv, .sys, .scr, .efi, .cpl, .fon
EXAMPLESโ
EXAMPLE 1โ
Get-PEFileArchitecture -FilePath "$env:windir\notepad.exe"
PARAMETERSโ
-FilePathโ
Path to the PE file to examine.
Type: FileInfo[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-ContinueOnErrorโ
Continue if an error is encountered. Default is: $true.
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: True
Accept pipeline input: False
Accept wildcard characters: False
-PassThruโ
Get the file object, attach a property indicating the file binary type, and write to pipeline
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
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โ
System.IO.FileInfo.โ
Accepts a FileInfo object from the pipeline.โ
OUTPUTSโ
System.Stringโ
Returns a string indicating the file binary type.โ
NOTESโ
This is an internal script function and should typically not be called directly.