Open a URL using Task Scheduler

I use this script when I need a specific web page to open in the background, for example updating Dynamic DNS or other websites that I can open to force them to process.

Create a .vbs script using the following

Sub openwebsite(w)
On Error Resume Next
Dim objRequest
Dim URL
Set objRequest = CreateObject(“Microsoft.XMLHTTP”)
objRequest.open “POST”, w , false
objRequest.Send
Set objRequest = Nothing
End Sub

openwebsite “http://mywebsite
openwebsite “http://anotherwebsite

Add a new scheduled task to execute the .vbs script repeating regularly and running as the “SYSTEM” account

Open-a-URL-using-Task-Scheduler

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s