title: Powershell Get-ChildItem -Filter operates differently to Where clause with same value
body: <p>I have a folder on a server called MyFolder.  There are additional folders called MyFolder.1, MyFolder.2, MyFolder.3 etc.</p>
  
  <p>If I run:</p>
  
  <pre><code>gci C:\Sample | ? { $_.Name -like "MyFolder.*" }
  </code></pre>
  
  <p>I get the expected output:</p>
  
  <pre><code>    Directory: C:\Sample
  
  
  Mode                LastWriteTime     Length Name                                                                      
  ----                -------------     ------ ----                                                                      
  d----        16/10/2012     12:16            MyFolder.1                                                                
  d----        16/10/2012     12:16            MyFolder.2                                                                
  d----        16/10/2012     12:16            MyFolder.3  
  </code></pre>
  
  <p>However if I run:</p>
  
  <pre><code>gci C:\Sample -Filter "MyFolder.*"
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>    Directory: C:\Sample
  
  
  Mode                LastWriteTime     Length Name                                                                      
  ----                -------------     ------ ----                                                                      
  d----        16/10/2012     12:16            MyFolder                                                                  
  d----        16/10/2012     12:16            MyFolder.1                                                                
  d----        16/10/2012     12:16            MyFolder.2                                                                
  d----        16/10/2012     12:16            MyFolder.3                                                                
  </code></pre>
  
  <p>I'm confused on how <strong>MyFolder</strong> is included in the output.  I'd expect the output to be the same.</p>
  
  <p>The <a href="http://technet.microsoft.com/library/hh849800.aspx" rel="noreferrer">online help</a> highlights that the syntax of the filter is based on the provider but I'm unsure what provider is being used in this instance.</p>
  
  <p>Am I missing a fundamental piece of knowledge here?  I've attempted to pass a regex string in to the filter e.g <code>"MyFolder\.*"</code> but this simply returns nothing.  I'm sure I'm missing something simple.</p>
  
  <p>I'm running Powershell version 2.</p>
  
  <h3>Resolution</h3>
  
  <p>Thanks to Roman Kuzmin for pointing out the differences in wildcard matching.  The following gives the expected output:</p>
  
  <pre><code>gci C:\Sample\MyFolder.*
  </code></pre>
  
  <p>I'll be using this syntax for ease in the future to reduce noise in code.  </p>