title: Capture "netsh dhcp server show scope"
body: <p>I need to capture the output from</p>
  
  <pre><code>netsh dhcp server show scope
  </code></pre>
  
  <p>which shows like:</p>
  
  <pre>
  ==============================================================================
   Scope Address  - Subnet Mask    - State        - Scope Name          -  Comment
  ==============================================================================
  
   10.5.116.0     - 255.255.255.0  -Active        -LAN 1               -VLAN 1
   10.17.134.0    - 255.255.255.128-Active        -LAN 2               -VLAN 2
  </pre>
  
  <p>in powershell variables (if possible a array). So that I have line1 with Scope, Subnet, ... (e.g. $Line1['Scope'])</p>
  
  <p>But I couldn´t get that managed. Could somebody help me to get a starting point here? Helpfull would be how I can capture a whole line.</p>