title: get content - Powershell
body: <p>i wanna change mtu with powershell script and the value in this txt file</p>
  <ul>
  <li>when i get content it gives me this error</li>
  <li>Invalid mtu parameter (1492 ).
  <a href="https://i.stack.imgur.com/Wl3Ox.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Wl3Ox.png" alt="enter image description here" /></a></li>
  </ul>
  <ul>
  <li>what's wrong in this code ?</li>
  </ul>
  <pre><code>$GMTU = Get-Content C:\MTU2.txt
  $AdapterName = $(Get-NetAdapter | Where { $_.Name -Match 'Ethernet'}).Name
  netsh interface ipv4 set subinterface &quot;$AdapterName&quot; mtu=$GMTU store=persistent
  </code></pre>