-
Notifications
You must be signed in to change notification settings - Fork 0
How to create reports with ScriptRunner
Generate reports with the ReportHtml module from Matthew Quickenden and ScriptRunner
Install "ReportHtml" on the ScriptRunner server
Install-module reporthtml
Get-WindowsFeature -name rsat-remoteaccess* |Install-WindowsFeature
New-Item -Path "C:\programdata\ScriptRunner" -Name "Reports" -ItemType "directory"
New-WebVirtualDirectory -Site "Default Web Site\scriptrunner" -Name reports -PhysicalPath c:\programdata\scriptrunner\reports
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest -Uri https://raw.githubusercontent.com/HeikoBrenn/ScriptRunner/master/scripts/New-ADReport.ps1 -OutFile C:\programdata\scriptrunner\scriptmgr\test\New-ADReport.ps1
The script can be found at: https://github.com/HeikoBrenn/ScriptRunner/blob/master/scripts/New-ADReport.ps1
Modify $ReportSavePath and $ReportBaseUri according to your infrastructure
The URL of the new report will be displayed as the result message