Skip to content

Instantly share code, notes, and snippets.

@peterdalle
Created July 19, 2021 07:41
Show Gist options
  • Save peterdalle/551d3b6ab3960f5420475bb3c6685179 to your computer and use it in GitHub Desktop.
Save peterdalle/551d3b6ab3960f5420475bb3c6685179 to your computer and use it in GitHub Desktop.
Will simulate a scheduled service and run this URL every minute
$Url = "https://localhost:44399/cron.ashx?key=xxx"
do{
Write-Output "$(Get-Date)"
(Invoke-WebRequest $Url).Content
Write-Output ""
Start-Sleep -Seconds 60
}while(1 -eq 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment