Service Manager PowerShell Script to close resolved cased after 2 days of inactivity

2017-12-08T17:24:51+00:00 March 11th, 2011|Azure, Cloud, Windows|

Just a quick PowerShell script which will close any case that have been Inactive for 2 days and are currently in a resolved state in Service Manager.

CMDLets from “http://smlets.codeplex.com/

Import-Module SMLets
Get-SCSMIncident -Status resolved -InactiveFor 2.00:00:00 | Set-SCSMIncident -Status Closed -Comment “Comment Here”