title: Add-Printer with Network Printer fails
body: <p>When I use <code>Add-Printer -ConnectionName '\\server\Printer'</code> from a local PowerShell environment it succeeds.</p>
  
  <p>When I use the same command, but wrapped in an Invoke-Command like so: </p>
  
  <pre><code>Invoke-Command -ComputerName 'someServer' -Credential $creds -Authentication CredSSP -ScriptBlock { Add-Printer -ConnectionName '\\server\Printer' }
  </code></pre>
  
  <p>it fails saying </p>
  
  <pre><code>'\' is an invalid character.
  </code></pre>
  
  <p>I'm guessing it's connected to different levels of user profile being available locally vs remotely, but I'm not sure how to resolve it.</p>
  
  <p><strong>Edit</strong>: To update this, I've had to abandon this approach as I couldn't get it to work. My work-around has been to use  </p>
  
  <pre><code>RUNDLL32 PRINTUI.DLL,PrintUIEntry /ga /c\\computerName /n\\someServer\Printer /q
  </code></pre>
  
  <p>Which works, though it does something slightly different to the Add-Printer cmdlet.</p>