title: Powershell - Get-ChildItem wildcard
body: <p>Get-ChildItem <code>filename*.log.*</code> fetches <code>filename*.log</code> as well. How can I get only the log files ending with dot extension  <code>filename*.log.*</code> so I can delete them? I want to use Remove-Item but decided to check using get-childItem.</p>
  
  <p>Here is the files.</p>
  
  <pre><code>Server1234.log
  Server1234.log.1
  Server1234.log.2
  Server1234.log.3
  Server1234.log.4
  </code></pre>
  
  <p>Get-ChildItem <code>filename*.log.*</code>  shows all of the above. I don't want <code>Server1234.log</code> in the output.</p>