Skip to content

Instantly share code, notes, and snippets.

@OneOfThePetes
OneOfThePetes / Get-FileInformation.ps1
Last active Nov 21, 2021
Get the Creation Date information from office files, Sent / Received Date from outlook emails. UK Date format.
View Get-FileInformation.ps1
Function Get-FileInformation # This function will gather date information and other properties about a file
{
param([string]$LiteralFilePath) # Target is the full path to a file
$Target = $LiteralFilePath
$Directory = ($Target -replace '[^\\]*$')
#region Filetypes
#region Outlook
if (
$Target -like "*.msg" # Handle Outlook Files (Has to open OutLook to get sent and received dates)
)