PowerShell: Get the most recent file in a path March 18, 2019 1:24 pm \ by John Perry This answers what was the most recent change in a folder and subfolder. gci $Path -Recurse |?{-not $_.PsIsContainer} | sort LastWriteTime | select -last 1 Posted in: DOS, PowerShell