Created
September 11, 2014 14:41
-
-
Save lyonsun/9d201b3ec1fc8d8056ea to your computer and use it in GitHub Desktop.
power shell script to schedule a task that send http get to a url on command line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
schtasks /create /tn "MyAppDailyUpdate" /tr "powershell -ExecutionPolicy unrestricted -Command \"(New-Object Net.WebClient).DownloadString(\\\"http://localhost/cron.aspx\\\")\"" /sc DAILY /ru System |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment