Any way of deleting test Incedents from SCSM?
Hi Guys,
Is there a way of deleting incidents from previous tests from SCSM, before you move it to live?
Many thanks
Best Answer
-
Vik Member IT Monkey ✭
Ok, found something that can do it:
$IncNumber = "IR159"
Get-SCSMClassInstance -Class (Get-SCSMClass -Name System.WorkItem.Incident) | Where-Object {$_.ID -eq "$IncNumber"} | Remove-SCSMClassInstance
0
Answers
Ok, found something that can do it:
$IncNumber = "IR159"
Get-SCSMClassInstance -Class (Get-SCSMClass -Name System.WorkItem.Incident) | Where-Object {$_.ID -eq "$IncNumber"} | Remove-SCSMClassInstance