Using the PowerShell module SMlets you can easily change the Status of a Ticket inside System Center Service Manager.Here are the small bits of code to change the Status of a Manual Activity and a Service Request.
# Import the module Import-Module -Name smlets # Get a specific manual activity $ManualActivity = Get-SCSMObject -Class (Get-SCSMClass -Name System.WorkItem.Activity.ManualActivity$) -filter "ID -eq MA51163" # Change the status of the Manual Activity Set-SCSMObject -SMObject $ManualActivity -Property Status -Value Completed # Get a specific Service Request $ServiceRequest = Get-SCSMObject -Class (Get-SCSMClass -Name System.WorkItem.ServiceRequest$) -filter "ID -eq SR51160" # Change the status of the Service Request to Completed Set-SCSMObject -SMObject $ServiceRequest -Property Status -Value Completed
