C++: Remotely execute a command under Windows machine
<p>I am esentially a Linux programmer and need to figure out remote command execution on Windows machine (C++). 
Checked some options like</p>

<blockquote>
<pre><code>1. psExec
2. rcmd
3. service control manager
</code></pre>
</blockquote>

<p>Can anyone suggest which will be the best way for this purpose?
Some criteria:</p>

<blockquote>
  <ol>
  <li>Should work with all Windows OS (XP, Server etc).</li>
  <li>Need to decide on basis of licensing issue, if it can be
  incorporated in a commercial sofware
  using C++.</li>
  <li>Does Visual studio (VC++) provide any default interface for remote
  command execution.</li>
  </ol>
</blockquote>
