Skip to content

Instantly share code, notes, and snippets.

View MattUebel's full-sized avatar
:octocat:

Matt Uebel MattUebel

:octocat:
  • GitHub Staff
  • Northcentral Ohio
View GitHub Profile
@MattUebel
MattUebel / GetBinaryType.ps1
Created April 3, 2012 14:35
Get-BinaryType function Finds bitness of .exe witih Powershell
function Get-BinaryType
{
<#
.SYNOPSIS
Gets the binary executable type for a given set of files
.DESCRIPTION
PowerShell wrapper around the GetBinaryType Windows API that inspects file headers
and reports the binary file type (e.g., 32-bit Windows app, 64-bit Windows app,
16-bit DOS/Windows app, etc.)