Starting the SCCM Remote Control Client from the Service Manager Console, Part 2 (aka “how to dynamically add information to tasks”)

A while ago I have written an article about how to create custom tasks. One question that came up was: “How can I bring information from an incident to the task (as a task parameter)”? This article shows how.

I will use the same goal as in this article. The goal is to add a tasks that will launch the SCCM Remote Control Client directly from the Service Manager Console. This time however, we want to directly add the affected computer that is listed in a specific incident. This saves you some clicks, manual inputs and therefore time.

Let’s start by creating a new task in the library. I will give it a meaningful name and choose “Incident” as target. The goal is to have this task ready whenever an Incident is selected.

image

I don’t wanna see the Task somewhere else, therefore I leave the category selection blank.

image

Now I choose the correct path to the executable (rc.exe) and define the parameters. The first parameter is “1” which means, that we will access the computer by using a computer name, not a Resource ID. The second parameter is the computer name itself. Because I want to use the computer name that is already added to the incident, I select the correct attribute from the browsing window.

Incident
Is related to configuration Item
Windows Computer
Principal Name

image

That’s it. After saving the new task I does exactly what I want. I choose an Incident that has an affected Item (Windows Computer). Now when I start the task it will automatically add the computer name as a task parameter and connect to it.

image

image

If an Incident does not contain a computer object, you must manually enter the name in a windows that pops up. If an incident contains more than one computer object, you must manually choose one of them.

image

Now feel free to try out your own dynamic tasks!

regards
Marcel

About Marcel Zehner

Microsoft Azure MVP
This entry was posted in SCSM and tagged , , , , , . Bookmark the permalink.

7 Responses to Starting the SCCM Remote Control Client from the Service Manager Console, Part 2 (aka “how to dynamically add information to tasks”)

  1. Gary says:

    Have you gotten this to work in SCSM 2012? I’ve been having the hardest time.

    • Marcel Zehner says:

      Hey Gary

      Sorry, I didn’t try this on SM12 so far. I will give Feedback when I find some time to test it.

      regards
      Marcel

  2. Hello Marcel!

    I’ve created a new task for Service Request. The task do the “reactivation” of the Service Request by changing the Status to “Submitted”.
    Now, I just need to grey out the button of this task with the same rule of the “Close” button, this way, the users can only click on the button if the service request is with the status “Completed”.
    How can I do that?

    Regards,

    • Marcel Zehner says:

      Hey

      Why don’t you just hide this task when configuring the user roles?

      Cheers
      Marcel

      • Hi,
        I don’t know if I understood well, but this taks must be accessed by the users.
        If I hide it, they won’t be able to click on it. Write? Or there is a way to hide for specific views?
        Regards,

    • Marcel Zehner says:

      Hey

      This is indeed possible, but you need some Visual Studio dev to accomplish this …

      Cheers
      Marcel

  3. Herb Winhoven says:

    Have you made this work when the CI is in the Affected Items field?

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 )

Facebook photo

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

Connecting to %s