Append date to file name with Powershell. Posted by alambert on January 20, 2016 Posted in: Powershell. Tagged: Date, powershell. Leave a Comment $today = (get-date).tostring("MM-dd-yyyy") $outfile = 'C:\logs\FileName_' + $today + '.log' Posts navigation ← Book Reader Disable Outlook / Exchange Auto-mapping →