title: How can I get the value of a specific winrm property?
body: <p>How do I go about getting only one of the values returned from the PS command below? </p>
  
  <pre><code>PS C:\Users\vagrant&gt; winrm get winrm/config/winrs
  Winrs
      AllowRemoteShellAccess = true
      IdleTimeout = 7200000
      MaxConcurrentUsers = 10
      MaxShellRunTime = 2147483647
      MaxProcessesPerShell = 25
      MaxMemoryPerShellMB = 300
      MaxShellsPerUser = 30
  </code></pre>
  
  <p>Specifically, I'm trying to to get only the value of <code>MaxMemoryPerShellMB</code>. Ultimately I need to compare that value to another value so I can be sure to set it correctly if needed.</p>