title: Trying to create process on remote PC from network share
body: <p>I have this Powershell:</p>
  
  <pre><code>    Try
      {
         #Start the installer remotely
         $process = ([WMICLASS]"\\$comp\ROOT\CIMV2:Win32_Process").Create($InstallString)
         if ( $process.ReturnValue -eq 0 )
         {
            $logstr = $comp + ": spawned process " + $process.ProcessId
            Write-Host -ForegroundColor GREEN $logstr
         }
         else
         {
            Write-Host -ForegroundColor RED "${comp}: failed to create process ${InstallString}"
            Continue
         }
      }
      Catch
      {
         Write-Host -ForegroundColor RED "${comp}: error: $_.Exception.Message"
         Continue
      }
  </code></pre>
  
  <p>Where <code>$comp</code> is a valid PC name and <code>InstallString</code> is <code>\\SERVERNAME\ShareFolder\setup.exe</code>.</p>
  
  <p>Within that ShareFolder is an installer and its files. I expect I can run the setup like this to remote install, but it is not working. It's falling into the else:</p>
  
  <pre><code>COMPUTERNAME: failed to create process \\SERVERNAME\ShareFolder\setup.exe
  </code></pre>
  
  <p>What am I missing? I can access this path outside Powershell.</p>
  
  <p>This works on a local path. Do I need some special syntax in Powershell to point to this share?</p>
  
  <p>This code works if the exe (well, a different installer) is located on <code>COMPUTERNAME</code> and the code is still executed remotely.</p>