Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags:

Sponsored Links



Scheduled Tasks

Windows Server Help


Reply
 
Thread Tools Search this Thread
  #1  
Old 22-01-2008
requeth@gmail.com
 
Posts: n/a
Scheduled Tasks

I'm trying to get the Scheduled Task next runtime for a script I'm
writing. I found the Win32_ScheduledJob but the scheduled tasks are
created through the GUI and as such I can not use Win32_ScheduledJob.
Does anyone know a way to get the next runtime of a scheduled task in
this instance? Vague ideas welcome so long as I can get on the right
path.

Thanks
Reply With Quote
  #2  
Old 22-01-2008
Pegasus \(MVP\)
 
Posts: n/a
Re: Scheduled Tasks


<requeth@gmail.com> wrote in message
news:4109d949-c9e8-4cf7-89d8-aa6994a5270b@v4g2000hsf.googlegroups.com...
> I'm trying to get the Scheduled Task next runtime for a script I'm
> writing. I found the Win32_ScheduledJob but the scheduled tasks are
> created through the GUI and as such I can not use Win32_ScheduledJob.
> Does anyone know a way to get the next runtime of a scheduled task in
> this instance? Vague ideas welcome so long as I can get on the right
> path.
>
> Thanks


I'm not aware of such a function but you could easily shell
out and run this command: schtasks.exe /query /list


Reply With Quote
  #3  
Old 22-01-2008
Jeffery Hicks [MVP]
 
Posts: n/a
Re: Scheduled Tasks

The Win32_ScheduledJob class is for the older AT style jobs. Use the
command line SCHTASKS.EXE tool as Pegasus suggests. Or take a look at a
column and tool I wrote last year that provides a GUI wrapper to schtasks at
http://redmondmag.com/columns/articl...torialsID=1742

--
Jeffery Hicks MCSE, MCSA, MCT
Microsoft PowerShell MVP
http://www.scriptinganswers.com
http://www.powershellcommunity.org
http://jdhitsolutions.blogspot.com

Now Available: WSH and VBScript Core: TFM
Now Available: Windows PowerShell v1.0: TFM 2nd Ed.


<requeth@gmail.com> wrote in message
news:4109d949-c9e8-4cf7-89d8-aa6994a5270b@v4g2000hsf.googlegroups.com...
> I'm trying to get the Scheduled Task next runtime for a script I'm
> writing. I found the Win32_ScheduledJob but the scheduled tasks are
> created through the GUI and as such I can not use Win32_ScheduledJob.
> Does anyone know a way to get the next runtime of a scheduled task in
> this instance? Vague ideas welcome so long as I can get on the right
> path.
>
> Thanks


Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Scheduled Tasks"
Thread Thread Starter Forum Replies Last Post
Windows Scheduled Tasks don't luanch if tasks not finished Andy Candy Windows Software 3 21-08-2009 12:47 PM
Scheduled Tasks result - 0x1 z4f786 Windows XP Support 6 01-06-2009 09:08 PM
Scheduled Tasks: Notify me of missed tasks Swifty Windows XP Support 2 02-01-2009 02:45 PM
Scheduled Tasks Starfish Small Business Server 2 07-10-2008 04:50 PM
Where are kept Scheduled tasks? Jack Vista Help 8 18-01-2008 01:28 AM


All times are GMT +5.5. The time now is 04:38 PM.