Scheduling Processes/Reports without the Logi Scheduler using Windows Task Scheduler and Powershell
If you have a Logi process and task to run a report (or loop to send the report to multiple people), you can use the Logi Scheduler to automate the sending of the report on a periodic basis.
You can also alternately use Windows Task Scheduler and Powershell to do the same!
Create a simple 1 line Powershell script in Notepad and save with .ps1 extension:
start "http://<<ServerName>>/rdProcess.aspx?rdProcess=<<ProcessName>>&rdTaskID=<<TaskName>>"
Now you have the script you can schedule it using Windows Task Scheduler as set out in the following:
https://o365reports.com/2019/08/02/schedule-powershell-script-task-scheduler/
- 
            Refer to https://documentation.logianalytics.com/logiinfov12/content/process-tasks.htm#Calling 
 if you want to add Parameters to your task call:Calling a Task from a URLYou can also call a process task directly from a URL, using the following syntax: http://www.myReportSite.com/myLogiApp/rdProcess.aspx?rdProcess=myTasks&rdTaskID=taskUpdate&myParam=1 where rdProcess and rdTaskID are required and additional request variables, such as myParam, are optional. 1
- 
            You can even do it when you are using Logi's SecureKey for embedded reports. 
 Here's the Powershell script for doing that (also without opening browser):
 $processURL = "http://appurl.com/Analytics/rdProcess.aspx?rdProcess=EmailProcess&rdTaskID=tskEmailRpt"
 #Get Logi SecureKey
 $webresponse = Invoke-WebRequest -Uri "http://appurl.com/Analytics/rdTemplate/rdGetSecureKey.aspx?Username=domain\username&ClientBrowserAddress=10.20.xx.xx"
 $token = $webresponse.Content
 #Write-Host ($token)
 $newUrl = $processURL + "&rdSecureKey=" + $token
 #Write-Host ($newUrl)
 Invoke-WebRequest -Uri "$newUrl"1
Please sign in to leave a comment.
 
              
Comments
2 comments