how to check if the scheduled task ran successfully on a remote computer with vb.net
-
is there any log files generated with scheduled task? and how can i access it remotely with vb.net? thanks
-
is there any log files generated with scheduled task? and how can i access it remotely with vb.net? thanks
The log is kept in a simple text file at C:\WINDOWS\SchedLgU.Txt You can get to it via normal file methods using a UNC path: \\machinename\C$\WINDOWS\SchedLgU.Txt That is, of course, if the target machine is in the same domain as your machine. Authentication to the target machine may become an issue if your not running in a domain environment. You'll have to come up with your own code to parse up the log file into a suitable data structure. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
The log is kept in a simple text file at C:\WINDOWS\SchedLgU.Txt You can get to it via normal file methods using a UNC path: \\machinename\C$\WINDOWS\SchedLgU.Txt That is, of course, if the target machine is in the same domain as your machine. Authentication to the target machine may become an issue if your not running in a domain environment. You'll have to come up with your own code to parse up the log file into a suitable data structure. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
thanks.. what if the scheduled task didn't run at all? would it still be on the log file?
-
thanks.. what if the scheduled task didn't run at all? would it still be on the log file?
Read through the log file to understand it. The log will show that the job was launched, any error that were encountered launching the job, and the jobs return code, if any. If no attempt was ever made to launch the job, then it won't show in the log. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
Read through the log file to understand it. The log will show that the job was launched, any error that were encountered launching the job, and the jobs return code, if any. If no attempt was ever made to launch the job, then it won't show in the log. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
thanks.. yeah.. i've scanned throught the log and i traced a task that supposed to be run at a given time but it didn't show on the log.. so how can i monitor it? i mean how can i know that the task didn't attempted to start or run at all?
-
thanks.. yeah.. i've scanned throught the log and i traced a task that supposed to be run at a given time but it didn't show on the log.. so how can i monitor it? i mean how can i know that the task didn't attempted to start or run at all?
That should be obvious! :confused: If you're monitor already knows the Task Name and it doesn't show up in the log, well, what do you think didn't happen? RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome