title: Get all the machines in sharepoint farm
body: <p>im writing really big script that will get a lot of info on the farm 
  I want to make it dynamically so I want :<br>
  1.  Get all the database servers in the sharepoint farm 
  2.  And I want to get all the sharepoint machines in farm</p>
  
  <p>The problem is that with </p>
  
  <blockquote>
    <p>Get-SPServer</p>
  </blockquote>
  
  <p>I get all the server together mixed up and I get the smtp server as well 
  And with </p>
  
  <blockquote>
    <p>Get-SPDatabase | Select NormalizedDataSource</p>
  </blockquote>
  
  <p>I get them multiple times </p>
  
  <p>Please help </p>