title: PowerShell script to move files and folders including subfolders from one location to another older than x days
body: <p>I developed a PowerShell script, and it's working absolutely fine. The only challenge is the files in the subfolders are not getting moved to the destination.</p>
  
  <pre><code>get-childitem -Path "\\servername\location" |
      where-object {$_.LastWriteTime -lt (get-date).AddDays(-31)} |
      move-item -destination "C:\Dumps"
  </code></pre>
  
  <p>I am unable to customize the script further.</p>