Menu
CCMEXEC.COM – Enterprise Mobility
  • Home
  • General
  • Configuration Manager
  • Windows 10
  • Intune
  • GitHub
  • Windows 11
  • About the author
CCMEXEC.COM – Enterprise Mobility

Launching a task Sequence using an Application link in ConfigMgr 1706

Posted on September 8, 2017March 17, 2021 by Jörgen Nilsson

With the new feature in Configuration Manager 1706 that makes it possible to launch Software center and show the correct application from a direct link in Software Center which is great! We can copy the link and email it to the user for instance.

I have a customer that wanted to send out a mail with a link for the users to start they upgrade to Windows 10 (Yes, with clear instructions before that this will happen so they know it is not a virus.)

We can only use the direct link to launch software center and show applications not packages or Task Sequences which is what I wanted to do.It will look like this example for the user, launched from Explorer.

Here is how I did it should be just fine doing it with PS App Deployment Toolkit as well.

I created a new application with the with the following files, I took the “Runsilent” utility from the “Web Service for OS Deployment” that my colleague Johan Schrewelius wrote which basically suppresses all dialog’s from Powershell for instance. It can be found here: Onevinn – Applications (schrewelius.it)

There are a couple of things to keep in mind.

  • To launch the Task Sequence the application must be run with “Install as user” This will make it possible to use with PS App deployment toolkit as well and interact with the user for example.
  • To make it succeed and not fail, I added a registry key to it which is written to current user in the registry that it is successfully launched.

Wrote a little Powershell script to launch a Task Sequence, I am sure I found the function on some blog a while back but cannot find it now 🙁

The script I used, just change the name to match the Task Sequence you want to run. I will create a registry key called CCMEXEC\TSHasrun which we can use as detection method. The script can be downloaded here: Callts.ps1

We then add that script to the same folder as Runsilent.exe to make it run silent and add it to the runsilent.ini file.

In the application we use “Runsilent.exe” as a command line and “Install for User” as displayed below.

Then I deploy the application to a collection as a available so they can launch it from the link whenever they like.

I hope this is useful to someone and I am sure it can be improved and used to do other things as well.

  • Configuration Manager
  • Powershell
  • Runsilent.exe
  • Script
  • Upgrade
  • Windows 10
  • 5 thoughts on “Launching a task Sequence using an Application link in ConfigMgr 1706”

    1. Sean Lillis says:
      December 14, 2017 at 9:32 pm

      Great post Jörgen. Not sure but this might be the other blog post you mentioned: https://powersheller.wordpress.com/2012/05/24/sccm-2012-execute-task-sequence-with-powershell/

      Reply
    2. John Bryntze says:
      January 4, 2018 at 12:03 pm

      I love this, thanks a lot Jörgen!
      mini typo/change
      “‘n the application we use “Runsilent.exe” as a command line and “Install as User” as displayed below.’
      to be
      ‘In the application we use “Runsilent.exe” as a command line and “Install FOR User” as displayed below.’

      Reply
      1. Jörgen Nilsson says:
        January 11, 2018 at 2:35 pm

        Hi,
        Thanks for the feedback and that you like it! 😀
        Regards,
        Jörgen

        Reply
    3. Austin WongCarter says:
      October 15, 2018 at 6:44 pm

      Any chance we could get the silent.exe released in GitHub? Security groups are always wary of unknown executables…

      Reply
    4. Daniel says:
      May 9, 2019 at 8:03 pm

      Cambiar a español
      I am a follower of your blog, it is very helpful.
      I write to you because I follow the steps of this article to create an application that calls a task and it does not work for me, the funny thing is that before I worked with another application and now it does not work with either one.
      My environment is SCCM 1810 and Windows 10 1709, do you know why it fails?
      Thanks for your help

      Reply

    Leave a Reply Cancel reply

    Your email address will not be published. Required fields are marked *

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    My name is Jörgen Nilsson and I work as a Senior Consultant at Onevinn in Malmö, Sweden. This is my blog where I will share tips and stuff for my own and everyone elses use on Enterprise Mobility and Windows related topics.
    All code is provided "AS-IS" with no warranties.

    Tweets by ccmexec

    Recent Posts

    • Windows Servicing, Personal Teams and Success.cmd
    • Windows MDM Security Baseline – Settings Catalog
    • Configuring MS Edge Security Baseline v107 using Settings Catalog
    • Configuring Desktop App Installer using CSP and script?!
    • Customizing Taskbar and Start in Windows 11 22h2 with PowerShell

    ©2023 CCMEXEC.COM – Enterprise Mobility | WordPress Theme by Superb Themes
    This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.Accept Reject Read More
    Privacy & Cookies Policy

    Privacy Overview

    This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
    Necessary
    Always Enabled
    Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
    Non-necessary
    Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
    SAVE & ACCEPT