Hi,
Since version Release 2.5.17 I'm unable to schedule a task using "computername\username"
This worked in version Release 2.4.2
Example:
Computer is Lan
User is LanUser
Please note that it's a local admin account (not domain)
Trying to log in with Lan\LanUser fails with "Access is denied"
Comments: ** Comment from web user: dahall **
Since version Release 2.5.17 I'm unable to schedule a task using "computername\username"
This worked in version Release 2.4.2
Example:
Computer is Lan
User is LanUser
Please note that it's a local admin account (not domain)
Trying to log in with Lan\LanUser fails with "Access is denied"
Comments: ** Comment from web user: dahall **
I've run the following code that runs from my local account without admin permissions and it works. I'm unable to replicate your impersonation code. Thoughts?
```C#
var taskName = "Tester";
var Domain = "LOCAL17";
var User = "admin";
var password = "adminpwd";
var rootPath = @"c:\Windows";
using (var nts = new TaskService(Domain))
{
var tduser = ts.NewTask();
tduser.Actions.Add("cmd", "/c set >> " + rootPath + "\\Test.txt", null);
nts.RootFolder.RegisterTaskDefinition(taskName, tduser, TaskCreation.Create,
Domain + "\\" + User, password, TaskLogonType.Password);
}
```