Hi, I have domain admin permissions.
I can create tasks on the remote machine using the Task Scheduler GUI.
When I use the TaskService class and create a new instance, I specify the remote server ONLY and do not specify credentials and it gives me an access denied exception.
If I explicitly hard code my username, domain and password it works fine, however this is not ideal.
If I do not specify my credentials and leave it blank, so it uses the current token (which is the same account as the one I typed in mind you) it does not work unless I force it to v1.
I need the email send feature so forcing to v1 is not acceptable. Why is it forcing me to enter a username and password for the account that is already running the process?
I can create tasks on the remote machine using the Task Scheduler GUI.
When I use the TaskService class and create a new instance, I specify the remote server ONLY and do not specify credentials and it gives me an access denied exception.
If I explicitly hard code my username, domain and password it works fine, however this is not ideal.
If I do not specify my credentials and leave it blank, so it uses the current token (which is the same account as the one I typed in mind you) it does not work unless I force it to v1.
I need the email send feature so forcing to v1 is not acceptable. Why is it forcing me to enter a username and password for the account that is already running the process?