Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

(Oops I asked this on SuperUser first on accident...)

I am trying to find out if someone added a new Scheduled Task to a Windows 2003 Server. How can I find the date a scheduled task was actually created? Exploring Scheduled Tasks in Explorer doesn't show Created or Modified as a column value.

Thanks in advance for any help!

share|improve this question
add comment

4 Answers

The quickest way I can think of to show the creation time on a "Scheduled Task" entry would be to execute:

attrib -r -s -h %SysetemRoot%\Tasks\Desktop.ini
ren %SysetemRoot%\Tasks\Desktop.ini Desktop.ini.foo
explorer %SystemRoot%\Tasks

This would open the %SystemRoot%\Tasks folder in a "normal" Explorer view and would let you review the times on the files stored there.

When you're done, rename and re-apply attributes to "desktop.ini" to make things normal again:

ren %SysetemRoot%\Tasks\Desktop.ini.foo Desktop.ini
attrib +r +s +h %SysetemRoot%\Tasks\Desktop.ini

It's a cheap trick, but it should show you the creation time on the task file for the task you're interested in.

share|improve this answer
add comment

Use this link...

http://support.microsoft.com/kb/814596

Schtasks /Query

share|improve this answer
    
Thanks Anand for the input. I didn't know about this tool, so thanks! Using it though, even w/the /v option, I didn't see Created or Creation Date as a listed property/attribute. Am I just not seeing it for some reason? –  user27933 Dec 3 '09 at 5:03
    
schtasks /v shows you the "starting on xx/xx/20xx etc. –  JJJJNR Jan 27 at 12:24
add comment

You can work out a vbscript to query the values form the RegistrationInfo Object. It will provide you the date where the task was registered. Here 's link to the MSDN library covering Task Scheduler Scripting.

Hope this helps.

share|improve this answer
add comment

dir /t:c %systemroot%\Tasks\"taskname".job

share|improve this answer
    
RE: Maxwell, the api you are referring to is only availabe in VISTA and Server 2008 –  Anonymous Dec 15 '09 at 17:41
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.