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

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

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 “

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

Leave A Comment

like what you see? 

Sign-up to our newsletter and never miss out on the latest blogs, events and tech news from the world of risual
Give it a try, you can unsubscribe anytime.