Bulk Delete SCSM 2012 Work Items

SCSM 2012’de test olarak açılmış çağrıların silinmesi için aşağıdaki PowerShell kodlarını kullanabilirsiniz. Bu kodların çalışabilmesi için SCSM Management Server üzerine SCSM PowerShell Cmdlets kütüphanesini kurmanız gerekmektedir.

Incident için:

Import-Module SMLets
Get-SCSMObject -Class (Get-SCSMClass -Name System.WorkItem.Incident$) | Remove-SCSMObject -Force -Confirm

Service Request için:

Import-Module SMLets
Get-SCSMObject -Class (Get-SCSMClass -Name System.WorkItem.ServiceRequest$) | Remove-SCSMObject -Force -Confirm

Changes Request için:

Import-Module SMLets
Get-SCSMObject -Class (Get-SCSMClass -Name System.WorkItem.ChangeRequest$) | Remove-SCSMObject -Force -Confirm

Activity için:

Import-Module SMLets
Get-SCSMObject -Class (Get-SCSMClass -Name System.WorkItem.Activity$) | Remove-SCSMObject -Force -Confirm

Problem için:

Import-Module SMLets
Get-SCSMObject -Class (Get-SCSMClass -Name System.WorkItem.Problem$) | Remove-SCSMObject -Force -Confirm

Related Posts

Cireson Self Service Portal Database Migration

If you are planning to move the Service Manager database, you should also need to move the Cireson Service Desk Portal to the same instance. Stop the…

Service Manager Reporting Server Database Migration

In the previous post, I explained the steps of moving the Service Manager Data Warehouse databases to another SQL instance. In this post, I will share the…

Service Manager Data Warehouse Database Migration

Microsoft has documented in details how to move Service Manager Data Warehouse databases to another SQL instance. Do not attempt to move the Reporting Services database in…

In-place OS Upgrade of Service Manager Data Warehouse

In this post, I will show the steps for in-place upgrade of Service Manager Data Warehouse management server (2019) OS from Microsoft Server 2016 to 2019. The…

Installing Zebra printer driver with SCCM

In order to install Zebra printer driver to the computers with SCCM, you will first need to extract the driver content from the exe file. Deselect all…

In-place OS Upgrade of Service Manager Data Warehouse Server

In this post, I will show the steps for in-place upgrade of Service Manager Data Warehouse management server (1801) OS from Microsoft Server 2012 R2 to 2016….