title: Need help figuring out the $Allshares parameter
body: <p>2.1. The script will be named <code>Get-Shares.ps1</code>.<br>
  2.2. The function will be named <code>Get-Shares</code>.<br>
  2.3. The function takes two parameters:</p>
  
  <ul>
  <li><code>$ComputerName</code> = the computer to check for shares.</li>
  <li><code>$AllShares</code> = if blank will only get non-$ shares, else show all shares.</li>
  </ul>
  
  <p>Need help with the <code>$AllShares</code> parameter.</p>
  
  <p>I don't need you to figure out the commands to get the shares. Here they are:</p>
  
  <p>Show non-$ shares:</p>
  
  <pre><code>gwmi -Computer $ComputerName -Class Win32_Share |
      Where-Object { $_.Name -notlike "*$" } 
  </code></pre>
  
  <p>Show all shares:</p>
  
  <pre><code>gwmi -Computer $ComputerName -Class Win32_Share 
  </code></pre>