title: To get last modified time in PowerShell
body: <p>I got the code here to search a file and its content, but how do I get the last modified time?</p>
  
  <pre><code>Get-ChildItem d:\* -filter $fname* | Select-String -Pattern "exit" | Write-Host - $_.Lastwritetime
  </code></pre>