IT Knowledge Base

Technical Repository

HowTo: How to change the AssignedTo username for Incidents in System Center Service Manager 2012 R2

$Incident = “IR Number” $CurrentUsername = “This is the username that is currently in the AssignedTo field” $NewUsername = “The new username” $Domain = “NETBIOS Domain Name” $i = Get-SCSMObject (Get-SCSMClass System.WorkItem.Incident$) -Filter “Id -eq $Incident ” $u = Get-SCSMObject (Get-SCSMClass System.Domain.User$) | ?{$_.Domain -eq $Domain -and $_.Username -eq $CurrentUsername } $r = Get-SCSMRelationshipClass System.WorkItemAssignedToUser […]

Read More


HowTo: SCSM 2012 R2 – Delete All Incidents or a specific Incident

1. Download and install SMLets. http://smlets.codeplex.com 2. Open a Power Shell command line and type in the following: Import-Module smlets 3. Delete all Incidents. Get-SCSMObject –Class (Get-SCSMClass –Name System.WorkItem.Incident) | Remove–SCSMObject –Force If the above command does not work, use: Get-SCSMClassInstance -Class (Get-SCSMClass -Name System.WorkItem.Incident) | Remove-SCSMClassInstance 4. Delete a specific Incident Get-SCSMObject –Class (Get-SCSMClass […]

Read More


HowTo: SCSM 2012 R2 – Update Incident Ticket AssignedTo User

1. Open Notepad and paste the following code. Save the file as UpdateAssignedTo.ps1. $incident = “IR Number” $username = “This is assgnedto username” $domain = “Your domain netbios name ” $i = Get-SCSMObject (Get-SCSMClass System.WorkItem.Incident$) -Filter “Id -eq $incident” $u = Get-SCSMObject (Get-SCSMClass System.Domain.User$) | ?{$_.Domain -eq $domain -and $_.Username -eq $username} $r = Get-SCSMRelationshipClass System.WorkItemAssignedToUser […]

Read More


HowTo: Create and Edit System Center Service Manager 2012 R2 Lists

http://technet.microsoft.com/en-us/library/hh519706.aspx Using Lists to Customize Forms You can use lists in Service Manager to classify different objects, such as incidents, change requests, activities, or configuration items. A list represents a property of an object, and it includes one or more list items. Each list item represents a possible value for a property. Lists are used […]

Read More