title: Use powershell to remove a random string of characters from file names
body: <p>I have a series of files that contain a string of characters such as this </p>
  
  <pre><code>(AEDOGRES)
  </code></pre>
  
  <p>An example file name would be</p>
  
  <pre><code>"Test 1(DOWKFUET).png"
  </code></pre>
  
  <p>I want to use a powershell command to get rid of the entire string in the parentheses to get something like this.</p>
  
  <pre><code> "Test 1.png"
  </code></pre>
  
  <p>I would expect to be able to use a command like this</p>
  
  <pre><code>   dir | rename-item –NewName { $_.name –replace “(*)“,”” }
  </code></pre>
  
  <p>However, this is not working for me. Any help is greatly appreciated!</p>
  
  <p>I am running powershell 3.0</p>