Windows Powershell script to sort photograph files into Date taken-based folders as per yyyy/MM/yyyy_MM_dd

PS C:\Users\User> g: PS G:\> cd G:\Raw_Photographs PS G:\Raw_Photographs> $sourceDir = "G:\Raw_Photographs" $files = Get-ChildItem -Path $sourceDir -Attributes !Directory foreach ($file in $files) { $dateTaken…