View Get-FileInformation.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
) |