title: How to get hash table key which has specific value?
body: <p>I am having a hash table where Keys are being used based on value.</p>
  
  <p>For ex. </p>
  
  <pre><code>    $ComponentTobeBuild=@{"ComponentNameX"="True";
                            "ComponentNameXyz"="False";
                            "SomeComponent"="False"}
  </code></pre>
  
  <p>I would like to get the keys which are having values True. (I will pass the key to some other script as parameter).</p>
  
  <p>I was trying like that , But i think some where i am missing as it is not listing the keys.</p>
  
  <pre><code>$($ComponentToBuild.Keys) | Where-Object { $_.Value -eq "True" }
  </code></pre>
  
  <p>How to get the component Name which are having denoted as True? Also i would like to know whether hash table is a wise choice for this kind of work. Because I thought that Hash table will be mainly be used for processing the values. </p>