HI ,
My requirement is to send Closed tickets details to the concern team (NOC) manager.I have already have one runbook which will send all open tickets details to the concern team.
=========
$securePassword = ConvertTo-SecureString "Lumeris@123" -AsPlainText -force
$credential = New-Object System.Management.Automation.PsCredential("test\administrator",$securePassword)
Invoke-Command -ComputerName scsm2.test.local -ScriptBlock{
Import-Module SMLets
$AfterDate = (get-date).AddHours(-2160).ToString(yyy-MM-dd HH:mm:ss)
Get-SCSMIncident -CreatedAfter $AfterDate | select ID,Title,Description,Priority,Urgency,Impact,TierQueue,Classification,Status,CreatedDate,LastModified,AssignedTo,AffectedUser
} -Credential $credential | select ID,Title,Description,Priority,Urgency,Impact,TierQueue,Classification,Status,CreatedDate,LastModified,AssignedTo,AffectedUser | export-csv C:\SCO\Automation\AllIncidents.csv -NoTypeInformation
====================
Please let me know how to setup custom report (Support group like NOC) in the same way.