Skip to content

Instantly share code, notes, and snippets.

View AlexSen's full-sized avatar
😏

Alex AlexSen

😏
View GitHub Profile
function Get-FileType {
<#
.SYNOPSIS
Try to get the file type based on it's file signature.
.DESCRIPTION
This function uses Get-FileSignature by Boe Prox and a list of
known file signatures to try to find the file type of a given file.
.EXAMPLE
Get-FileType c:\path\to\file.pdf
.LINK