Home Service Manager

Any way of deleting test Incedents from SCSM?

VikVik Member IT Monkey ✭

Hi Guys,

Is there a way of deleting incidents from previous tests from SCSM, before you move it to live?


Many thanks

Best Answer

  • VikVik Member IT Monkey ✭
    edited March 2022 Answer ✓

    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

Answers

  • VikVik Member IT Monkey ✭
    edited March 2022 Answer ✓

    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

Sign In or Register to comment.