Task scheduler won't run IE unless I'm logged on

I set up a task in my task scheduler to run at 3:00 am.

The run line is
C:\PROGRA~1\INTERN~1\IEXPLORE.EXE "http://www.mypage.aspx"

I entered my admin password into the task scheduler when I set it up.

Problem is, it will only run IE if I am logged on.

How do I fix this?
LVL 1
net_susanAsked:
Who is Participating?
 
Rich RumbleConnect With a Mentor Security SamuraiCommented:
IE was not intended to run without someone being logged on... and to be honest why would it need to be run when no one is logged on? If you want to generate hit's or something at a specified time, there are likely better ways to do this. What is your pop-up that runs out of "mypage.aspx" supposed to do?
-rich
0
 
glenn_1984Connect With a Mentor Commented:
Instead of logging out....set your screen saver to lock the screen so a password is required.
0
 
net_susanAuthor Commented:
Rich, I'm not trying to generate hits, it sends email. I need it to open in IE directly because it uses a popup (and the direct task schedueler way won't do this).
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
net_susanAuthor Commented:
Glenn,

I can just click "swich user" and it will leave it logged on, but require my password to get back in. That would be perfect, except...

what happens if I am out of town and the computer restarts? I wish there was a better way.
0
 
net_susanAuthor Commented:
Sorry, Rich. I didn't really answer your question. I forgot you were the person who helped me with my last question.


I send out daily email reminders (to people who request them).

The first page "http://www.mypage.aspx"  gets all my customer's emails from my table and turns each into a link with querystring for my pop up. My pop up is actually much more complicated code; it pulls each users information for the day, and it emails it to them.

"http://www.mypage.aspx" does this for each user, and opens a popup for each user (although I've programmed it to all target the same window so I don't come back to 50 popups).

I guess what I need to do is found out how to do a loop inside of a loop with an ASP.NET datareader, and then I wouldn't need the popup in the first place.

0
 
Rich RumbleSecurity SamuraiCommented:
Yes, I'd suggest finding an alternate method to obtaining the info and sending the email. There are probably better suited TA's you can use, perhaps Perl or ASP
http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/ASP_DOT_NET/
-rich
0
 
r-kCommented:
Try scheduling your job with the AT command rather than from the control panel.

It is quite simple. e.g. to schedule a batch file named daily.bat to run at 5:00 every morning:

> AT 05:00 /every:M,T,W,Th,F,S,Su c:\backup\daily.bat

More details at:

 http://support.microsoft.com/default.aspx?scid=kb;en-us;313565&sd=tech
0
 
net_susanAuthor Commented:
Thanks, rk!
0
 
Rich RumbleSecurity SamuraiCommented:
The AT command, and others like it "schtasks.exe" are simply different apps for doing the same thing as the GUI for scheduled tasks in the control panel. I have a feeling it's not going to help the situation, but it doesn't hurt to try.
Schtasts.exe (more powerful than "AT" they say)
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/schtasks.mspx

http://www.xinn.org/RunasVBS.html

The AT.exe
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/at.mspx
-rich
0
 
r-kCommented:
The main difference between the AT command and the GUI is that AT runs the job under the System account by default. It can therefore do things not possible with the GUI, though I am not 100% sure it will solve this particular problem.

The AT and Schtasks commands are similar for this purpose, but Schtasks has more bells and whistles, i.e. more command line options.
0
 
net_susanAuthor Commented:
In, truth, I probably won't try it because I am trying to find out how to loop in a loop in ASP.NET (and finding out it's really not friendly to it, but there must be a way).

Still, I wanted to know more about AT, and so that was useful to me.
0
 
Rich RumbleSecurity SamuraiCommented:
http://www.google.com/search?hl=en&lr=&q=site%3Amicrosoft.com+asp.net+loop&btnG=Search
http://www.microsoft.com/MSPress/books/sampchap/5136a.asp

those might help... I find that using google to search M$ is better than it's own engine...
site:microsoft.com term_to_look_for
-rich
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.