Skip to content

Instantly share code, notes, and snippets.


OutOfThisPlanet OutOfThisPlanet

View GitHub Profile
OutOfThisPlanet / Get-FileInformation.ps1
Last active November 21, 2021 15:45
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)