Update: Running local works just fine. It seems to be only when running remote.
WOW, that was super fast. Thank. Yes it does run when the Update is commented out. It seems that one or the other work but not both.
This is my test app.
var vClient = new Client();
var vServer = new Server();
var vConnection = new Connection();
vConnection.ConnectionType = Connection.ConnectionT.Remote;
vConnection.UserName = "topsecret";
vConnection.Port = 16444;
vConnection.Address = "phxvs57";
vConnection.UseADLogon = true;
vConnection.ClientType = ClientConnectionClass.ClientT.APIClient;
vServer = vClient.Connect(vConnection, true);
var jobs = vServer.Jobs.GetAll();
var job = jobs.Where(j => j.Name == "Test - Journaling - EU").FirstOrDefault();
if(job == null)
return;
var task = job.Tasks.Where(t => t.Name == "Test - EU - Journaling Task").FirstOrDefault();
if( task == null)
return;
task.Execute.CmdLine = task.Execute.CmdLine;
task.Execute.Arguments = @"/StartDate:2011814 /EndDate:20110818";
job.NotStartIfRunning = true;
vServer.Jobs.Tasks.Update(task);
vServer.Jobs.Tasks.Run(job,task,true);
vServer.Disconnect();
Edited by user Wednesday, August 24, 2011 6:25:25 PM(UTC)
| Reason: Not specified