Can anyone tell me how I can use windows scheduler on windows server to execute a page over the internet, specifically an asp.net file.
Asked
Active
Viewed 159 times
3 Answers
3
You can use a single line Powershell script to do this. Put this in a file with a .ps1 extension (such as RunWebPage.ps1):
(new-object System.Net.WebClient).DownloadString("http://www.mysite.com")
Then in your run box enter
powershell c:\RunWebPage.ps1
using the full path of wherever you save the script.

squillman
- 37,883
- 12
- 92
- 146
-
That's a much more elegant solution than mine, I'll have to give it a try here. – ColJL Aug 11 '11 at 07:56
1
You can do this in the run box
"c:\program files\internet explorer\IEXPLORE.EXE" "http://webaddress"
but it will only work if someone is logged on.

ColJL
- 246
- 1
- 2
-
-
-
I've done it just like coljil suggested -- with the task configured to run as a named user. Nobody needs to be logged on for it to work. – Chris_K Sep 10 '09 at 12:51
-
-
... that being said, I *think* you'll want to ensure that named user _has_ logged onto the box at least once before (seems like I had an issue once where no local profile stuff existed yet). – Chris_K Sep 10 '09 at 13:43
-
You could create a local account for this, giving it the least amount of rights needed. Another option is to create the task using the AT command (though this runs the task as the system account, so be careful). – Dustin Sep 10 '09 at 16:35