Book Image

Microsoft System Center 2016 Service Manager Cookbook - Second Edition

By : Steve Buchanan, Steve Beaumont, Anders Asp, Dieter Gasser, Andreas Baumgarten
Book Image

Microsoft System Center 2016 Service Manager Cookbook - Second Edition

By: Steve Buchanan, Steve Beaumont, Anders Asp, Dieter Gasser, Andreas Baumgarten

Overview of this book

Keep your organization up to speed with the Microsoft System Center 2016 Service Manager Cookbook. Over 100 practical recipes for SCSM 2016 give you all the tools to master IT service management.
Table of Contents (23 chapters)
Microsoft System Center 2016 Service Manager Cookbook - Second Edition
Credits
Foreword
About the Authors
About the Reviewers
www.PacktPub.com
Customer Feedback
Preface

Using SMLets to delete a work item


In this recipe, we will take a look at how you can use SMLets to delete a work item. This is something that you cannot perform from the console for several reasons. One of them being that this goes against all the rules of ITIL.

So why would someone need to delete a work item? Well, you might have created a couple of test work items to verify the production environment or to test a workflow, or something similar.

Getting ready

Make sure that you have downloaded and installed SMLets as described in the previous recipe, Downloading and installing SMLets.

You also need administrator rights within Service Manager to be able to delete a work item.

How to do it...

In this particular example, we will take a look at how to delete an incident. To do so, follow these steps:

  1. Log on to the Service Manager management server where you installed the SMLets and start Windows PowerShell ISE.

  2. In the ribbon menu of PowerShell ISE, click Show Script Pane Maximized, and then type the...