Support group and tier queue check for multiple tickets
The following example will help you modify the support group or tier queue for multiple tickets. Generally, most of us tend to select the wrong support groups and tier queues. It's very important to change the groups to the correct support group and tier queue. For this scenario, we need a list of incidents and service requests in any format of a file that PowerShell can understand and fetch the data from:
#Service Request – Correcting Support Group Import-Module SMLets # Class declaration for Service Request $Class = Get-SCSMClass –Name System.WorkItem.ServiceRequest $TList = Get-Content 'C:\ticket_list.txt' foreach ($T in $TList) { Get-SCSMObject -Class $Class -filter "Id -eq $T" | Set-SCSMObject -Property SupportGroup -Value "App Catalog" } #Incident – Correcting Tier Queue Import-Module SMLets # Class declaration for Incidents $Class = Get-SCSMClass –Name System.WorkItem.Incident $TList = Get-Content 'C:\ticket_list...