title: Return Select-String results with context from Invoke-Command (appear blank)
body: <p>I'm trying to search log files on multiple servers using Invoke-Command and return the results with context but I'm having no success.</p>
  
  <p>This is the command:</p>
  
  <pre><code>Invoke-Command -Session $session {
    cd C:\LogDir\Log1
    sls -Pattern "ThingImLookingFor" -Path * -Context 1,5 
  }
  </code></pre>
  
  <p>This returns a deserialized MatchInfo object with most info dropped. </p>
  
  <p>How would I get results that look similar to running Select-String locally?</p>
  
  <p>This is the result of running sls on an svg in my home dir with the same context settings as an example:</p>
  
  <pre><code>  horizontalBlock.svg:30:     id="base"
  &gt; horizontalBlock.svg:31:     pagecolor="#ffffff"
    horizontalBlock.svg:32:     bordercolor="#666666"
    horizontalBlock.svg:33:     borderopacity="1.0"
    horizontalBlock.svg:34:     inkscape:pageopacity="0.0"
    horizontalBlock.svg:35:     inkscape:pageshadow="2"
    horizontalBlock.svg:36:     inkscape:zoom="1.3289991" 
  </code></pre>