title: How to specify local user on remote machine for Microsoft.Win32.TaskScheduler.TaskService()?
body: <p>I'm trying to user <code>Microsoft.Win32.TaskScheduler.TaskService(&quot;ServerName&quot;, &quot;Username&quot;, &quot;Domain&quot;, &quot;Password&quot;);</code> with a user who is a local administrator on &quot;ServerName&quot;. I've tried calling it with a blank domain and with a period (.) and with the word &quot;local&quot;, and also with the name of the computer but nothing seems to work.</p>
  <p>Is it possible to do this, or is it necessary to have a domain account?</p>