Delete Object Task

This Service Manager console task allows you to delete an object.

Simply go to Tasks located under Library and select Create Task.

2017-03-30_09-58-112017-03-30_09-58-18

(Leave all Categories blank)

2017-03-30_09-58-23

Full path to command:

C:\Windows\System32\WindowsPowerShell\v1.0\Powershell.exe

Parameters:

-NoExit -Command “Import-Module SMLets; Get-SCSMObject -Class (Get-SCSMClass -Name System.Entity) -Filter ‘FullName -eq “$Context/?$FullName$?”‘ | Remove-SCSMObject -Force -Confirm”

Working directory:

%windir%\system32

You will then have the ability to delete an object from the SCSM Console!

12

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s