title: Export reg value to csv
body: <p>i have 1 question:</p>
  <p>i need verify 3 reg key on 20 pc and export result on csv file.</p>
  <p>I used this string</p>
  <pre><code>Get-ItemProperty -Path hklm:&quot;\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\&quot; -Name &quot;keyname&quot; | Export-csv -path &quot;csvpath&quot;
  </code></pre>
  <p>and recive the all value for thi key but i don't need see the &quot;PSPath, PSParentPath, PSChildName, PSDrive, PSProvider.</p>
  <p>now i was thinking of making a script with variables to simplify it, but at this point i would like it to tell me even if the key was not found and the basic thing i can run it from the DC to all machines (about 20).</p>
  <p>this could be a starting point</p>
  <pre><code>$key1 = name key 1
  
  $key2 = name key 2
  
  $key3 = name key 3
  
  $hostname= hostname
  
  $regkey= get-itemprperty -path ecc....
  </code></pre>
  <p>and now i'm seeing how you implement the verification loop and export everything to csv</p>
  <p>thx</p>