title: Remote task by using Task Scheduler Manager wrapper
body: <p>Currently I am trying to create a task in remote machine through TaskService class. The remote machine is connected through workgroup. But I am not able to create task in remote machine. I am getting following exception.</p>
  
  <p>System.UnauthorizedAccessException was unhandled
  Message=Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))</p>
  
  <p>I am trying to create it in following way.</p>
  
  <pre><code>TaskService ts = new TaskService("COMPUTERNAME", "remoteUserAcctName", "DOMAINNAME", "remoteUserPassword");
  </code></pre>
  
  <p>I am trying to create task in remote computer running Windows 7 from a computer running Windows 7. Is it possible? Because as per this link, <a href="http://technet.microsoft.com/en-us/library/cc766266.aspx" rel="nofollow">http://technet.microsoft.com/en-us/library/cc766266.aspx</a> , one can connect to remote computers running Windows Server® 2008, Windows Vista®, Windows Server 2003, Windows XP, or Windows 2000.</p>
  
  <p>Also I tried from Task Scheduler menu 'Action | Connect to Another Computer', <a href="http://screencast.com/t/wIDbDcdhOE" rel="nofollow">http://screencast.com/t/wIDbDcdhOE</a> , I got error 'You do not have permission to access this computer'.</p>
  
  <p>Details here, <a href="https://taskscheduler.codeplex.com/discussions/570851" rel="nofollow">https://taskscheduler.codeplex.com/discussions/570851</a>.</p>