title: Powershell formatting
body: <p>I am pretty new to powershell and have been trying various ways to split the results from the following powershell script I found but have had no luck. At the moment the script list everything in 4 columns with no gap in between the results of each server. 
  (when it finishes with the results for one server I would like a gap or even a header with the server name between each result to make it easier to read when run against multiple servers)
  any help to get this formatted would be appreciated.</p>
  
  <pre><code>  Get-WmiObject -ComputerName ("server1","server2") Win32_UserProfile | % {
    $userinfo = [WMI] ($_.__Path -Replace "Win32_UserProfile", "Win32_SID")
    New-Object PsObject -Property @{
    ComputerName= $_.__Server 
    Domain      = $userinfo.ReferencedDomainName
    User        = $userinfo.AccountName
    LastUsed    = $_.ConvertToDatetime($_.LastUseTime)
  
   }
   } | export-csv -NoType c:\Results.csv
  </code></pre>
  
  <p><strong>This is what I am trying to do</strong></p>
  
  <pre><code>server 1
  user    lastModified    
  bob     8/20/14 
  billy   7/20/14    
  Carla   6/12/14
  
  server 2
  user    lastModified 
  bob     8/20/14 
  billy   7/20/14    
  Carla   6/12/14
  
  server 3
  user    lastModified 
  bob     8/20/14 
  billy   7/20/14    
  Carla   6/12/14
  </code></pre>
  
  <p><strong>This is what I am getting at the moment</strong></p>
  
  <pre><code>lastUsed   user   computername
  8/20/14    bob    server 1
  6/20/14    billy  server 1
  9/1/14     sam    server 3
  3/2/14     sonny  server 4
  </code></pre>
  
  <p>So when you throw in 50 60 profiles all piled up like that its pretty much unreadable especially if you try and sort by date because then the servers are just all over the place.</p>
  
  <p>I also get this error every time that I run the script, although I still get the results and the script produces what it is supposed to.</p>
  
  <blockquote>
    <p>Exception calling "ConvertToDateTime" with "1" argument(s): "Exception calling "ToDateTime" with "1" argument(s): "Specified argument was out of the range of valid values.
    Parameter name: dmtfDate""
    At line:13 char:33
    +             $<em>.ConvertToDatetime &lt;&lt;&lt;&lt; ($</em>.LastUseTime)
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : ScriptMethodRuntimeException</p>
  </blockquote>
  
  <p>Thanks again for the help</p>