After Installing new Service Manager server to delete test incidents, and reset IR number follow this instruction:
Install the SMLets database on the SCSM server,
open the Powershell to removal of Incident events:
Install the SMLets database on the SCSM server,
open the Powershell to removal of Incident events:
Import-Module SMLets
Get-SCSMObject -Class (Get-SCSMClass -Name System.WorkItem.Incident$) | Remove-SCSMObject -Force -Confirm
Get-SCSMObject -Class (Get-SCSMClass -Name System.WorkItem.Incident$) | Remove-SCSMObject -Force -Confirm
Login to the Service Manager database (SQL Server):
select * from AutoIncrementAvailableRange
Select MT.TypeName,MT.ManagedTypeId,MTP.ManagedTypePropertyName,MTP.ManagedTypePropertyID,AIAR.FirstAvailableValue
from ManagedType as MT, ManagedTypeProperty as MTP, AutoIncrementAvailableRange as AIAR
where MT.ManagedTypeId = AIAR.ManagedTypeId and MTP.ManagedTypePropertyId = AIAR.ManagedTypePropertyId
All project number, is according to the table in the last line of data coding, that is to say, if you want to make Incident ID digital restart from the beginning of 1, change:
update AutoIncrementAvailableRange
set FirstAvailableValue = 1
where ManagedTypeId = 'F59821E2-0364-ED2C-19E3-752EFBB1ECE9' and ManagedTypePropertyId = '28B1C58F-AEFA-A449-7496-4805186BD94F'
*If youare using Datawarehouse Server , to reset reports, most easy way is to unregister dataworhouse server and install new server.
No comments:
Post a Comment