title: A positional parameter cannot be found that accepts argument 'permit_connections=no'
body: <p>I'm trying to write a script on a Windows 2008&nbsp;R2 server to change the contents of an HTM file (Statuspage.htm) from "permit_connections=yes" to "permit_connections=no".  I get the following error:</p>
  
  <pre>
  Get-Process : A positional parameter cannot be found that accepts argument
  'permit_connections=no '.
  At line:1 char:1
  + PS C:\> ((Get-Content -path D:\inetpub\wwwroot\statuspage.htm -Raw) - ...
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : InvalidArgument: (:) [Get-Process], ParameterBindingException
      + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.GetProcessCommand
  
  Get-Process : A positional parameter cannot be found that accepts argument
  'Get-Content'.
  At line:2 char:1
  + PS C:\> Get-Content -Path (D:\inetpub\wwwroot\statuspage.htm)
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : InvalidArgument: (:) [Get-Process], ParameterBindingException
      + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.GetProcessCommand
  </pre>
  
  <p>Following is my script:</p>
  
  <pre><code>PS C:\&gt; ((Get-Content -Path D:\inetpub\wwwroot\statuspage.htm -Raw) -replace 'permit_connections=yes','permit_connections=no') | Set-Content -Path D:\inetpub\wwwroot\statuspage.htm
  PS C:\&gt; Get-Content -path D:\inetpub\wwwroot\statuspage.htm
  </code></pre>