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
Set objRequest = CreateObject(“Microsoft.XMLHTTP”) “POST”, w , false
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



Leave a Reply

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

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

Google photo

You are commenting using your Google 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 )

Connecting to %s