From: childofthe1980s on 29 Apr 2010 18:53 Always glad to help! The solution was to turn off the timeout policy for the admin user ID. This ID needs to remain "in place", in order for these scheduled tasks and therefore the macros to run. childofthe1980s "Pegasus [MVP]" wrote: > That's fine by me and I hope that it solved your problem. Care to post the > solution for the benefit of other posters with a similar problem? > > "childofthe1980s" <childofthe1980s(a)discussions.microsoft.com> wrote in > message news:58A41891-0BB2-4BEE-9ACF-455228C3E093(a)microsoft.com... > > Hmm........Interesting theory, Pegasus. Why is it then that, when I went > > on > > another message board a little while ago, I got some good responses simply > > by > > using the same background as what I gave here? > > > > childofthe1980s > > > > "Pegasus [MVP]" wrote: > > > >> I have dealt with a great many posts on scheduled tasks. Here is a > >> summary > >> of what I found so far: > >> - About 80% of all posters believe that the task does not run when in > >> fact > >> it does. > >> - The vast majority is not aware how to monitor a scheduled task. > >> - Some 50% of all tasks fail because of account/password/permission > >> issues. > >> - Many tasks fail because the poster makes invalid assumptions about the > >> environment in which the task runs. > >> > >> I do not know which class your task belongs to but I am pretty sure it is > >> one of the above. I also note your pronounced reluctance to post any > >> details > >> about your task. Until you do you are unlikely to get any good replies. > >> > >> "childofthe1980s" <childofthe1980s(a)discussions.microsoft.com> wrote in > >> message news:DAEF8979-2739-4CA6-BEDA-555ED3B17279(a)microsoft.com... > >> > You guys are missing the point. > >> > > >> > Again, the macros run successfully in my tests. When I let them run at > >> > their regularly scheduled time slots, they do not run. > >> > > >> > It's not that the macros themselves don't work. It's something wrong > >> > with > >> > the scheduled tasks, on a network level. The question is "What?". > >> > > >> > childofthe1980s > >> > > >> > "DaveMills" wrote: > >> > > >> >> As Pegasus said you need to show us the macros. This sort of issue is > >> >> often > >> >> because the macro is dependant on things like mapped drives. It may be > >> >> prompting > >> >> for input etc. > >> >> > >> >> On Wed, 28 Apr 2010 16:48:01 -0700, childofthe1980s > >> >> <childofthe1980s(a)discussions.microsoft.com> wrote: > >> >> > >> >> >The status is "Running", but here's the thing. (And, I wish that I > >> >> >had > >> >> >mentioned this in the beginning but I just forgot.) > >> >> > > >> >> >Since discovering this problem, I conducted some tests. These macros > >> >> >are > >> >> >scheduled to run at 5AM. So, in several tests, I changed the run > >> >> >time > >> >> >to a > >> >> >few minutes "from now". Then, instead of logging off, I hit the "X" > >> >> >in > >> >> >the > >> >> >Remote Desktop connection. > >> >> > > >> >> >Then, a few minutes later, I log back on to the Remote Desktop > >> >> >connection. > >> >> >The macros finish successfully! > >> >> > > >> >> >So, how come these macros run successfully when I test at random, but > >> >> >not > >> >> >when they run at 5AM on their own? > >> >> > > >> >> >That's why I asked the client if this admin user somehow is getting > >> >> >logged > >> >> >off. Again, I keep the ID logged on when I hit the "X" in Remote > >> >> >Desktop. > >> >> >She says that the ID is staying logged on, but I'm not so sure. > >> >> > > >> >> >What do you think? > >> >> > > >> >> >"Pegasus [MVP]" wrote: > >> >> > > >> >> >> > >> >> >> > >> >> >> "childofthe1980s" <childofthe1980s(a)discussions.microsoft.com> wrote > >> >> >> in > >> >> >> message news:436D04D1-E1E4-47EB-B787-14F6D49622C6(a)microsoft.com... > >> >> >> > Hello: > >> >> >> > > >> >> >> > About a year ago, I successfully programmed Windows Task > >> >> >> > Scheduler > >> >> >> > in 2003 > >> >> >> > to run three macros. Each of the three macros takes less than > >> >> >> > five > >> >> >> > minutes > >> >> >> > to run. > >> >> >> > > >> >> >> > About a month ago, the macros stopped working. Each AM, when I > >> >> >> > check on > >> >> >> > their status, they still say "Running". The text report that the > >> >> >> > macros > >> >> >> > generate to a shared folder, however, are no longer there. > >> >> >> > > >> >> >> > I have the Admin login logged onto the server. That is a > >> >> >> > requirement for > >> >> >> > automateed macros. The client says that there is nothing that is > >> >> >> > logging > >> >> >> > off > >> >> >> > the admin. > >> >> >> > > >> >> >> > Is there any good reason why the Task Scheduler macros would stop > >> >> >> > working > >> >> >> > like this? > >> >> >> > > >> >> >> > childofthe1980s > >> >> >> > >> >> >> Can't tell unless you post the macros. You need to be aware that > >> >> >> most > >> >> >> if not > >> >> >> all macros are fragile. They rely on a certain environment (rather > >> >> >> than > >> >> >> creating their own environment) and if this environment changes > >> >> >> slightly > >> >> >> then they will fail. Humans will readily adapt to such changes but > >> >> >> macros > >> >> >> can't. Using properly written scripts would give you a far more > >> >> >> robust > >> >> >> solution and probably one that is a lot faster than a macro. > >> >> >> > >> >> >> . > >> >> >> > >> >> -- > >> >> Dave Mills > >> >> There are 10 types of people, those that understand binary and those > >> >> that > >> >> don't. > >> >> . > >> >> > >> . > >> > . >
From: DaveMills on 30 Apr 2010 02:07
On Thu, 29 Apr 2010 15:53:04 -0700, childofthe1980s <childofthe1980s(a)discussions.microsoft.com> wrote: >Always glad to help! The solution was to turn off the timeout policy for the >admin user ID. This ID needs to remain "in place", in order for these >scheduled tasks and therefore the macros to run. > Which probably means the macro runs only if the user is logged in when the scheduled task starts. This is a good indication of incorrect assumption in the design of the macro. What these are exactly remains hidden as you refuse to let us see the macro. >childofthe1980s > >"Pegasus [MVP]" wrote: > >> That's fine by me and I hope that it solved your problem. Care to post the >> solution for the benefit of other posters with a similar problem? >> >> "childofthe1980s" <childofthe1980s(a)discussions.microsoft.com> wrote in >> message news:58A41891-0BB2-4BEE-9ACF-455228C3E093(a)microsoft.com... >> > Hmm........Interesting theory, Pegasus. Why is it then that, when I went >> > on >> > another message board a little while ago, I got some good responses simply >> > by >> > using the same background as what I gave here? >> > >> > childofthe1980s >> > >> > "Pegasus [MVP]" wrote: >> > >> >> I have dealt with a great many posts on scheduled tasks. Here is a >> >> summary >> >> of what I found so far: >> >> - About 80% of all posters believe that the task does not run when in >> >> fact >> >> it does. >> >> - The vast majority is not aware how to monitor a scheduled task. >> >> - Some 50% of all tasks fail because of account/password/permission >> >> issues. >> >> - Many tasks fail because the poster makes invalid assumptions about the >> >> environment in which the task runs. >> >> >> >> I do not know which class your task belongs to but I am pretty sure it is >> >> one of the above. I also note your pronounced reluctance to post any >> >> details >> >> about your task. Until you do you are unlikely to get any good replies. >> >> >> >> "childofthe1980s" <childofthe1980s(a)discussions.microsoft.com> wrote in >> >> message news:DAEF8979-2739-4CA6-BEDA-555ED3B17279(a)microsoft.com... >> >> > You guys are missing the point. >> >> > >> >> > Again, the macros run successfully in my tests. When I let them run at >> >> > their regularly scheduled time slots, they do not run. >> >> > >> >> > It's not that the macros themselves don't work. It's something wrong >> >> > with >> >> > the scheduled tasks, on a network level. The question is "What?". >> >> > >> >> > childofthe1980s >> >> > >> >> > "DaveMills" wrote: >> >> > >> >> >> As Pegasus said you need to show us the macros. This sort of issue is >> >> >> often >> >> >> because the macro is dependant on things like mapped drives. It may be >> >> >> prompting >> >> >> for input etc. >> >> >> >> >> >> On Wed, 28 Apr 2010 16:48:01 -0700, childofthe1980s >> >> >> <childofthe1980s(a)discussions.microsoft.com> wrote: >> >> >> >> >> >> >The status is "Running", but here's the thing. (And, I wish that I >> >> >> >had >> >> >> >mentioned this in the beginning but I just forgot.) >> >> >> > >> >> >> >Since discovering this problem, I conducted some tests. These macros >> >> >> >are >> >> >> >scheduled to run at 5AM. So, in several tests, I changed the run >> >> >> >time >> >> >> >to a >> >> >> >few minutes "from now". Then, instead of logging off, I hit the "X" >> >> >> >in >> >> >> >the >> >> >> >Remote Desktop connection. >> >> >> > >> >> >> >Then, a few minutes later, I log back on to the Remote Desktop >> >> >> >connection. >> >> >> >The macros finish successfully! >> >> >> > >> >> >> >So, how come these macros run successfully when I test at random, but >> >> >> >not >> >> >> >when they run at 5AM on their own? >> >> >> > >> >> >> >That's why I asked the client if this admin user somehow is getting >> >> >> >logged >> >> >> >off. Again, I keep the ID logged on when I hit the "X" in Remote >> >> >> >Desktop. >> >> >> >She says that the ID is staying logged on, but I'm not so sure. >> >> >> > >> >> >> >What do you think? >> >> >> > >> >> >> >"Pegasus [MVP]" wrote: >> >> >> > >> >> >> >> >> >> >> >> >> >> >> >> "childofthe1980s" <childofthe1980s(a)discussions.microsoft.com> wrote >> >> >> >> in >> >> >> >> message news:436D04D1-E1E4-47EB-B787-14F6D49622C6(a)microsoft.com... >> >> >> >> > Hello: >> >> >> >> > >> >> >> >> > About a year ago, I successfully programmed Windows Task >> >> >> >> > Scheduler >> >> >> >> > in 2003 >> >> >> >> > to run three macros. Each of the three macros takes less than >> >> >> >> > five >> >> >> >> > minutes >> >> >> >> > to run. >> >> >> >> > >> >> >> >> > About a month ago, the macros stopped working. Each AM, when I >> >> >> >> > check on >> >> >> >> > their status, they still say "Running". The text report that the >> >> >> >> > macros >> >> >> >> > generate to a shared folder, however, are no longer there. >> >> >> >> > >> >> >> >> > I have the Admin login logged onto the server. That is a >> >> >> >> > requirement for >> >> >> >> > automateed macros. The client says that there is nothing that is >> >> >> >> > logging >> >> >> >> > off >> >> >> >> > the admin. >> >> >> >> > >> >> >> >> > Is there any good reason why the Task Scheduler macros would stop >> >> >> >> > working >> >> >> >> > like this? >> >> >> >> > >> >> >> >> > childofthe1980s >> >> >> >> >> >> >> >> Can't tell unless you post the macros. You need to be aware that >> >> >> >> most >> >> >> >> if not >> >> >> >> all macros are fragile. They rely on a certain environment (rather >> >> >> >> than >> >> >> >> creating their own environment) and if this environment changes >> >> >> >> slightly >> >> >> >> then they will fail. Humans will readily adapt to such changes but >> >> >> >> macros >> >> >> >> can't. Using properly written scripts would give you a far more >> >> >> >> robust >> >> >> >> solution and probably one that is a lot faster than a macro. >> >> >> >> >> >> >> >> . >> >> >> >> >> >> >> -- >> >> >> Dave Mills >> >> >> There are 10 types of people, those that understand binary and those >> >> >> that >> >> >> don't. >> >> >> . >> >> >> >> >> . >> >> >> . >> -- Dave Mills There are 10 types of people, those that understand binary and those that don't. |