############################################### ## Tableau Server Status: The Scheduled Task ## ############################################### #Note: the '-Once -At "1/31/2014 3:45pm" ' date is the date you choose to start running this script. $t = New-JobTrigger -Once -At "1/31/2014 3:45pm" -RepetitionInterval (New-TimeSpan -Hour 1) -RepetitionDuration ([TimeSpan]::MaxValue) Register-ScheduledJob -Name TsServerStatus -FilePath C:\\TsStatusAlerts.ps1 -Trigger $t