In theory, you need to connect to the remote server using the TaskService constructor and supply credentials that have Administrator rights. Of course to get this far, you will have to have all the firewall and rights specified at https://taskscheduler.codeplex.com/wikipage?title=TaskSecurity. Once connected, you can then create the task and register it as the account under which you want it to run. You will have to register the task using the username and password of the intended account and then use the TaskLogonType.Password.
↧