title: Powershell - Rename filename by removing the last few characters
body: <p>I want to remove the last 11 characters of multiple files names. For example
  I have these file names:</p>
  
  <pre><code>ABCDE_2015_10_20
  HIJKL_2015_10_20
  MNOPQ_2015_10_20
  RSTUV_2015_10_20
  </code></pre>
  
  <p>would like to rename them to </p>
  
  <pre><code>ABCDE
  HIJKL
  MNOPQ
  RSTUV
  </code></pre>
  
  <p>I have tried using the follwing code:</p>
  
  <pre><code>Get-ChildItem 'E:\Thomson Reuters\Stage' | rename-item -newname { [string]($_.name).substring($_.name.length -14) } 
  </code></pre>
  
  <p>Can anybody tell me where I am going wrong?</p>