How do I kick off iexplore.exe to open a url from a windows 2003 scheduled task? It only seems to open the required url when I am logged in as the user it runs under

6,674

Solution 1

Do you really need a full fledged browser to hit this URL? Or do you just need something that speaks basic http? If it's the latter, you should try using something like cURL. From their website:

curl is a command line tool for transferring data with URL syntax, supporting FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, LDAP, LDAPS and FILE. curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, cookies, user+password authentication (Basic, Digest, NTLM, Negotiate, kerberos...), file transfer resume, proxy tunneling and a busload of other useful tricks.

Basically, it should bypass any weird issues trying to run IE as a scheduled task. It's also a lot smaller and more efficient for this task because it doesn't actually render the response from the server (though you can save/process the raw html if you want).

Solution 2

I'm wondering why would you want to launch such a behemoth just to access a URL?

Nevermind...

Here are some things that can help:

Those are all command line utilities that can make your life easier.

Share:
6,674
Paul H
Author by

Paul H

Updated on September 17, 2022

Comments

  • Paul H
    Paul H over 1 year

    I want to startup iexplore once an hour pointed at a specific url to kick off some processing. It's a Windows 2003 server with Internet Explorer 7 running in enhanced security configuration.

    The scheduled task is set to not require the user to be logged in to kick this task off.

    When I am logged in I can see the iexplore window popup and disappear again and I know it has accessed my url (I've set it so I get an email).

    When I am not logged in I do not get anything triggered from my url - but when I look at the Scheduled Log it says the task ran the program OK with an exit code of 0. I can only therefore assume that iexplore pops up - but does not go to the required url.

    Is this something to do with IE's 'enhanced security configuration'?

    What do I need to do to get it to open IE and actually go to my url?

    Clarification: The url points to a .aspx page - so I'd want something that can start up a web page and not fall over when the .aspx page tries to access sesson info.

  • einstiien
    einstiien over 14 years
    We posted 3 seconds apart :)
  • Spence
    Spence over 14 years
    I had ya' both beat, except that I was trying to find an URL for a win32 port of wget... >smile<
  • Gustavo Carreno
    Gustavo Carreno over 14 years
    I've given one more option, it has to count for something hein? :P
  • einstiien
    einstiien over 14 years
    Yeah, I was trying to look up that older question. A question like this in the middle of the day is bound to have about 20 of us trying to answer.